Mounting a USB Drive in FreeBSD

Posted Monday, October 10th 2011 in FreeBSD - Permalink

Mounting a USB drive in FreeBSD is quite simple. After inserting the device into the computer, you can check to make sure it was detected by running dmesg. This will show you which device file is associated with the device:

# dmesg  | tail -n 3
da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
da0:  Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers

This device uses the file /dev/da0. Look to see if there are mountable slices for this device:

# ls /dev/da0*
/dev/da0   /dev/da0s1

If no slices (e.g., /dev/da0s1) are shown run camcontrol devlist. Most USB devices are formatted with the FAT filesystem. To mount the device, use something like this:

# mount -t msdosfs /dev/da0s1 /mnt

List Posts Newest Posts Page 1Next Page