LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (http://www.linuxquestions.org/questions/%2Absd-17/)
-   -   mounting a USB device (http://www.linuxquestions.org/questions/%2Absd-17/mounting-a-usb-device-420184/)

issey 02-27-2006 09:06 PM

mounting a USB device
 
hi guys.

i like to know how to mount a USB device on the openbsd38 system, i've been trying alot and had no success, this is the message taken from dmesg as i inserted the USB,
Quote:

uhub2: Prolific Technology Inc. USB Embedded Hub, class 9/0, rev 2.00/1.00, addr 2
uhub2: 1 port with 0 removable, self powered
umass0: Prolific Technology Inc. USB Mass Storage Device, rev 2.00/1.00, addr 3
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <USB 2.0 Flash Disk 1.00> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 248MB (507904 512 byte sectors: 64H 32S/T 248C)
can anyone tell me what the command is..

thanks :)

frob23 02-27-2006 09:34 PM

Code:

mount -t msdos /dev/da0 /mnt
That should take care of it.
And if it does you can add an entry to /etc/fstab to mount it whereever you'd like in the future.

halo14 02-27-2006 09:43 PM

actually... it will probably be da0s1... that's how my 1GB ScanDisk Cruzer works... and there is an easier command than mount -t msdos...
Code:

mkdir /mnt/usb (if it's not already there)
mount_msdosfs /dev/da0s1 /mnt/usb

;)

frob23 02-27-2006 10:03 PM

lol... right... forgot about the s1.

I'm not sure how much easier it is to remember "_fstype" as opposed to "-t fstype" but it's all the same.

issey 02-27-2006 10:50 PM

thanks guys... acctually halo14 is right, his code works, thanks a bunch guys....

by the way why i cudnt' mount with da0, why it has to be da0s1, can u shed some light

halo14 02-28-2006 07:45 AM

da0 is the blockdevice... s1 specifies the slice or as you would think of partition...

compared to linux:

usb drive, 1st partition: /dev/sda1
sda = usb drive | partition = 1

same thing on FreeBSD: /dev/da0s1
da0 = usbdrive | partition(slice) = s1

:)

issey 03-01-2006 03:16 AM

thanks halo14... that helped me alot


All times are GMT -5. The time now is 07:49 PM.