View Full Version : how to use USB disk in linux ?
black
07-07-2002, 10:08 PM
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 ???:confused:
starX
07-07-2002, 11:27 PM
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
black
07-07-2002, 11:49 PM
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.;)
starX
07-08-2002, 12:07 AM
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
black
07-08-2002, 01:35 AM
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.
black
07-09-2002, 05:11 AM
sorry to inform you all that I failed......:(
starX
07-10-2002, 06:33 PM
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
black
07-10-2002, 07:17 PM
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:
vsb.c: USB device 4 (vend/prod 0xdd81/0x1003) is not claimed by any active driver.
How could I get it ? :rolleyes:
starX
07-10-2002, 09:38 PM
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
black
07-10-2002, 10:09 PM
thanx~ ;) Always I have no idea when facing hardware. it's time learning soemthing about it, hoho~ :D
billholm
07-13-2002, 12:31 AM
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.:confused:
biosx
07-13-2002, 05:30 PM
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.:confused:
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.
billholm
07-15-2002, 11:56 PM
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.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.