Mounting USB Devices - jonatello/lab-musing GitHub Wiki

In FreeBSD, devices are mounted under /dev. To first identify a device, view dmesg like so while plugging it in:

dmesg | tail

You should be able to identify the device. In this example, we'll say "da0". We next want to identify the partition we will be mounting. A great tool to use is gpart:

gpart show da0

From the output you should be able to see the device, formatting, and partitions (normally directly under the "da0" column). In this example the device is an external USB drive which is formatted with GPT and the partition we want to mount is number 2 which is showing "ms-basic-data". The partition can be further identified under /dev for the full name to use:

ls /dev/da0*

In this case, /dev/da0p2. Due to the ms-basic-data formatting we'll need to use an NTFS driver to read/write the data:

pkg install fusefs-ntfs

If we now try to mount /dev/da0p2 to /mnt we will be met with an error, "failed to open fuse device: No such file or directory". Let's load the fuse driver:

kldload fuse

Now we should be able to successfully mount the partition with the following:

ntfs-3g /dev/da0p2 /mnt