FreeBSD монтировать внешний NTFS usb диск

Кол-во просмотров: 200

Процедура: Шаги по монтированию диска NTFS

  1. Перед использованием файловой системы FUSE нам необходимо загрузить fusefs(5) модуль ядра:
    1. # kldload fusefs

      Используя sysrc(8) добавим модуль в автозагрузку:

      # sysrc kld_list+=fusefs
    2. Установить фактическую файловую систему NTFS:
      # pkg install fusefs-ntfs
    3. Наконец, нам нужно создать каталог, в который будет смонтирована файловая система:
      # mkdir /mnt/usb

      Форматирование диска

      Просмотр дисков в системе:

      ls /dev/ | grep da

      A workaround (from the the mentioned bug’s last comment) is to explicitly set the size of the partition at creation:

      Посмотреть разделы/диски:

      gpart show
      

      Destroy Partition/Drive:

      gpart destroy -F da3
      

      Create a GUID Partition Scheme:

      gpart create -s GPT da3
      

      Create a partition type (ntfs) and add the size (bytes, using “g” for GB):

      gpart add -t ms-basic-data -s 4000g da3
      

      Would be great if someone can tell how to get the exact available size

      The drive needs a NTFS Filesystem and perform a fast format:

      mkntfs --verbose --fast --label 4TB_HD /dev/da3p1
      

      Диск подготовили. Можно монтировать.

  1. Suppose a USB disk is plugged in. The disk partition information can be viewed with gpart(8):
    # gpart show da0
    =>	  63  1953525105  da0 MBR   (932G)
    	  63  1953525105    1 ntfs  (932G)
  2. We can mount the disk using the following command:
    # ntfs-3g /dev/da0s1 /mnt/usb/

    The disk is now ready to use.

  3. Additionally, an entry can be added to /etc/fstab:
    /dev/da0s1  /mnt/usb	ntfs mountprog=/usr/local/bin/ntfs-3g,noauto,rw  0 0

    Now the disk can be now mounted with:

    # mount /mnt/usb
  4. The disk can be unmounted with:
    # umount /mnt/usb/
Яндекс.Метрика