USB thumbdrives are a convenient way of moving relatively small volumes of data around machines. FreeBSD fully supports such devices. Insert the thumbdrive into an open USB port and check to make sure FreeBSD detects its using the command below.
# dmesg | tail
USB drives are handled by the SCSI subsystem so look for output that would resemble the following:
ugen0.3: <vendor 0x0d7d> at usbus0umass0: <vendor 0x0d7d USB DISK 2.0, class 0/0, rev 2.00/0.50, addr 3> on usbus0umass0: SCSI over Bulk-Only; quirks = 0xc180umass0:2:0:-1: Attached to scbus2da1 at umass-sim0 bus 0 scbus2 target 0 lun 0da1: < USB DISK 2.0 1.16> Removable Direct Access SCSI deviceda1: Serial Number 073A0C251C0Bda1: 1.000MB/s transfersda1: 124MB (253952 512 byte sectors: 64H 32S/T 124C)da1: quirks=0x3<NO_SYNC_CACHE,NO_6_BYTE>
From the output above, we know the device is /dev/da1. You can also query the SCSI system to see if the device is found. Note this output also shows “da1”.
root@bsdbox:~ # camcontrol devlist<WDC WD400EB-00CPF0 06.04G06> at scbus0 target 0 lun 0 (pass0,ada0)<IOMEGA ZIP 100 12.A> at scbus0 target 1 lun 0 (pass1,da0)<LG CD-ROM CRD-8400B 1.03> at scbus1 target 0 lun 0 (cd0,pass2)<SONY CD-RW CRX220E1 6YS1> at scbus1 target 1 lun 0 (cd1,pass3)< USB DISK 2.0 1.16> at scbus2 target 0 lun 0 (da1,pass4)
root@bsdbox:~ # mkdir /media/usbroot@bsdbox:~ # mount -t msdosfs /dev/da1s1 /media/usb
root@bsdbox:~ # umount /media/usb
ugen0.3: <vendor 0x0d7d> at usbus0 (disconnected)umass0: at uhub0, port 2, addr 3 (disconnected)da1 at umass-sim0 bus 0 scbus2 target 0 lun 0da1: < USB DISK 2.0 1.16> s/n 073A0C251C0B detached(da1:umass-sim0:0:0:0): Periph destroyed