C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-07-2002, 10:08 PM   #1
flashing vampire
 
black's Avatar
 
Join Date: May 2002
Posts: 563
Question how to use USB disk in linux ?

in win2k, when I plug in the USB disk, the system would search for new hardware, and after a few seconds the USB disk bacome available. But in linux nothing happened when it was plugged in, what should I do ???
__________________
Never end on learning~
black is offline   Reply With Quote
Old 07-07-2002, 11:27 PM   #2
Registered User
 
Join Date: Aug 2001
Posts: 202
try running kudzu to see if it can find the device. I bet it won't be able to, in which case you'll have to manually mount it:

mount -t disk_fs /dev/usb mount_point

where disk_fs is the file system that the disk uses (presumably vfat since you were using it under widows), and mount_point is a mount point you've created to serve as the hard drives root (/mnt/usb_hd, for example).

Of course, this presumes that your usb is working properly.

starX
www.axisoftime.com
starX is offline   Reply With Quote
Old 07-07-2002, 11:49 PM   #3
flashing vampire
 
black's Avatar
 
Join Date: May 2002
Posts: 563
Quote:
Originally posted by starX
try running kudzu to see if it can find the device. I bet it won't be able to, in which case you'll have to manually mount it:

mount -t disk_fs /dev/usb mount_point

where disk_fs is the file system that the disk uses (presumably vfat since you were using it under widows), and mount_point is a mount point you've created to serve as the hard drives root (/mnt/usb_hd, for example).

Of course, this presumes that your usb is working properly.

starX
www.axisoftime.com
thanx starX~

by the way, we could omit the -t disk_fs, yes ? I think Linux would find its right type automatically.
__________________
Never end on learning~
black is offline   Reply With Quote
Old 07-08-2002, 12:07 AM   #4
Registered User
 
Join Date: Aug 2001
Posts: 202
don't count on it.

Mounting file systems is rather specific buisiness. You can TRY using "auto", but I would be willing to bet you'll get a lot farther using "vfat" or "msdos". In any case, you can't just omit the -t fs_type unless you have a line describing it in /etc/fstab already, and the fact that you have a problem mounting the drive would lead me to think that you don't.

starX
www.axisoftime.com
starX is offline   Reply With Quote
Old 07-08-2002, 01:35 AM   #5
flashing vampire
 
black's Avatar
 
Join Date: May 2002
Posts: 563
Quote:
Originally posted by starX
don't count on it.

Mounting file systems is rather specific buisiness. You can TRY using "auto", but I would be willing to bet you'll get a lot farther using "vfat" or "msdos". In any case, you can't just omit the -t fs_type unless you have a line describing it in /etc/fstab already, and the fact that you have a problem mounting the drive would lead me to think that you don't.

starX
www.axisoftime.com
thanx for your suggestions. starX

I'll try to mount it on when at home.
__________________
Never end on learning~
black is offline   Reply With Quote
Old 07-09-2002, 05:11 AM   #6
flashing vampire
 
black's Avatar
 
Join Date: May 2002
Posts: 563
sorry to inform you all that I failed......
__________________
Never end on learning~
black is offline   Reply With Quote
Old 07-10-2002, 06:33 PM   #7
Registered User
 
Join Date: Aug 2001
Posts: 202
Okay, but the next question is why did you fail? See if you can isolate whether USB (my personal bet) is the problem, or it's the hard drive kit.

starX
www.axisoftime.com
starX is offline   Reply With Quote
Old 07-10-2002, 07:17 PM   #8
flashing vampire
 
black's Avatar
 
Join Date: May 2002
Posts: 563
Quote:
Originally posted by starX
Okay, but the next question is why did you fail? See if you can isolate whether USB (my personal bet) is the problem, or it's the hard drive kit.

starX
www.axisoftime.com
linux said he needs somewhat drive first, here is the message:

PHP Code:
vsb.cUSB device 4 (vend/prod 0xdd81/0x1003is not claimed by any active driver
How could I get it ?
__________________
Never end on learning~
black is offline   Reply With Quote
Old 07-10-2002, 09:38 PM   #9
Registered User
 
Join Date: Aug 2001
Posts: 202
Excellent question, I've never encountered this error before, and at this point I would think it's safe to say this is no longer a programming question. Try going over to www.linux.org and reading some of their HOWTOs, and checking on hardware/usb boards, lists, etc. Questions like this probably belong on those sorts of sites to begin with, seeing as how your question really doesn't have much to do with programming per se.

best of luck,

starX
www.axisoftime.com
starX is offline   Reply With Quote
Old 07-10-2002, 10:09 PM   #10
flashing vampire
 
black's Avatar
 
Join Date: May 2002
Posts: 563
thanx~ Always I have no idea when facing hardware. it's time learning soemthing about it, hoho~
__________________
Never end on learning~
black is offline   Reply With Quote
Old 07-13-2002, 12:31 AM   #11
Registered User
 
billholm's Avatar
 
Join Date: Apr 2002
Posts: 225
Question

Hey guys, about mounting, how come I can't mount a floppy or hd device when I'm not logged in as root? Is that supposed to be only for the superusers? I can't use my floppy that way.
__________________
All men are created equal. But some are more equal than others.

Visit me at http://www.angelfire.com/my/billholm
billholm is offline   Reply With Quote
Old 07-13-2002, 05:30 PM   #12
Registered User
 
biosx's Avatar
 
Join Date: Aug 2001
Posts: 230
Quote:
Originally posted by billholm
Hey guys, about mounting, how come I can't mount a floppy or hd device when I'm not logged in as root? Is that supposed to be only for the superusers? I can't use my floppy that way.
Make sure that mount is in your /bin directory. Sometimes commands are just symbolically linked from the /bin and /sbin directory. It sounds like mount is in the /sbin dir (in the root users path) but not symbolically linked to the /bin (in everybody elses path) directory.

Go into the /bin dir and type file mount and see what comes up. It should either give a bunch of info on the architecture and the program itself or say 'symbolic link to /sbin/mount'.

If you get an error, then log in as root and make a symlink from /sbin/mount to /bin/mount like so:
ln -s /sbin/mount /bin/mount.

Good luck

ONE NOTE: On my slackware box, the mount in the /sbin dir is actually a symlink from the /bin dir. This might be different for other distributions.
biosx is offline   Reply With Quote
Old 07-15-2002, 11:56 PM   #13
Registered User
 
billholm's Avatar
 
Join Date: Apr 2002
Posts: 225
Lightbulb

Oh I see! I'll try that when I get home. And by the way, mine is a DosLinux distribution. It's somewhat related to Loop Linux, and I think the only 'mount' in there is located in the /bin directory.
__________________
All men are created equal. But some are more equal than others.

Visit me at http://www.angelfire.com/my/billholm
billholm is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux writing often on main disk mynickmynick Linux Programming 17 04-07-2009 02:05 PM
USB Linux - live or no? sean General Discussions 7 12-23-2008 10:56 AM
Windows system disk on an USB storage: possible? BrownB Tech Board 1 11-10-2006 04:34 AM
installing linux for the first time Micko Tech Board 9 12-06-2004 05:15 AM
Formatting Output Aakash Datt C++ Programming 2 05-16-2003 08:20 PM


All times are GMT -6. The time now is 12:29 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22