LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 02-27-2006, 09:06 PM   #1
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Rep: Reputation: 15
Exclamation 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

Last edited by issey; 02-27-2006 at 09:17 PM.
 
Old 02-27-2006, 09:34 PM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
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.
 
Old 02-27-2006, 09:43 PM   #3
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
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
 
Old 02-27-2006, 10:03 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
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.
 
Old 02-27-2006, 10:50 PM   #5
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Original Poster
Rep: Reputation: 15
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

Last edited by issey; 02-27-2006 at 10:52 PM.
 
Old 02-28-2006, 07:45 AM   #6
halo14
Senior Member
 
Registered: Apr 2004
Location: Surprise, AZ
Distribution: Debian | CentOS | Arch
Posts: 1,103

Rep: Reputation: 45
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

 
Old 03-01-2006, 03:16 AM   #7
issey
Member
 
Registered: Mar 2005
Location: Maldives
Distribution: debian, freeBSD, openBSD, ubuntu, opensuse
Posts: 78

Original Poster
Rep: Reputation: 15
thanks halo14... that helped me alot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting USB pen drives by device id ProtoformX Slackware 1 10-04-2005 07:52 AM
Mounting a recognized USB device harisund Linux - Hardware 2 09-24-2005 08:07 AM
Mounting a USB device jaakkop Linux - Hardware 4 05-29-2005 05:50 AM
mounting usb device (muvo2) YBA^[x] Slackware 20 12-21-2004 08:14 AM
Mounting USB device Valhalla Linux - Hardware 17 12-11-2004 02:19 PM


All times are GMT -5. The time now is 03:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration