Saturday, November 29, 2008

Mount flash drive in OpenBSD 4.4

As OpenBSD101 notes, "USB drives usually show up as (emulated) SCSI drives."


But, how do you know which drive? You have two choices. First, you can take a look at the console output. If you insert the drive at the XDM login stage, the console will react, and the output will be preserved following your login. Second, you can type dmesg | grep sd, and it will tell you which sdX device is associated with the flash drive. In my case, it was /dev/sd1. So, as root, I did the following:


mkdir /mnt/flashdrive


mount /dev/sd1i /mnt/flashdrive

No comments: