Usb Hdd?
I just got Debian Sarge installed, and have many questions. One at a time I guess. I've got a 20 GB USB HDD formatted FAT32, that I'd like to use on my debian system as well. It works under knoppix, but when i plug it into my Deb system, there's no handy notification of new hardware found, nothing to indicate that i even plugged it in. Any clues as to where to start? I really have no clue, but seem to remember someone mentioning the /etc/hotplug folder as pertaining to this? and maybe MODPROBE? Am i gonna have to edit FSTab? And then when i'm done using it, how to safely unmount it(umount?)?
I'm running Debian Sarge, 2.4(not sure) kernel. If I left anything else out, Let me know and I'll fill you in as best i can. One thing i gotta say is, using the net install, downloading a 50 MB ISO, and then watching it download the other 1.5 GB is pretty damn cool. Made me feel 1337 even. ;) |
Quick Method
Might as well try the fast test:
(as root) Code:
# mkdir /media/usb Anyway... here's some of the other info you wanted: Information about the drive (for 2.4 kernels) lives in /proc/bus/usb To find out what devices are attached to USB, do: Code:
# cat /proc/bus/usb/devices Code:
# cat /proc/scsi/scsi Code:
# modprobe usb-uhci usb-storage Code:
/dev/sda1 /media/usbkey auto rw,user,noauto 0 0 1) add the right modules to /etc/modules to be automatically loaded at boot. 2) install something like supermount or autofs to handle mounting and unmounting (I don't know for sure, but I've heard that hotplug is not the ideal solution, though you may be able to make do with it). |
Thanks! I'm gonna try this after work tonight.
Could you decipher that FSTab line for me? |
Re: Quick Method
koheleth, maybe you (or someone else) can help me with a similar problem I'm having. I have a USB HDD I'm trying to use with Knoppix. (It works fine with FC2.) The drive shows up in /proc/bus/usb/devices and in the output of lsusb and dmesg. It doesn't show up in /proc/scs/scsi, nor can I mount it. (I tried /dev/sd[abcd].)
lsmod shows usb-storage, usb-uhci and usbcore loaded, if that's any help. Thanks in advance. |
Heres some stuf I have learned messing with USB devices. Some kernel releases may not work with some USB controllers or USB storage devices. Then the next release may see all and work fine. Then the next may not work with the controller again. Later release the controller is fine then the storage device does not. Some devices may work some may not. Currently 2.6.10-fc2 kernel works very well for me It sees and works well with all of my current hardware. The 2.6.9 would see all my hardware ( Printers, 20 storage drive, couple of sandisk cards) but would not my removable MP3 player in the notebook. It new there was something there but failed to recognise it. Kernel 2.6.7 seen it and so does 2.6.10, but 2.6.9 does not. Might see what version each use and go from there. On might even compile a kernel of the same release as the knoppix on fc3 and see if the stitution can be duplicated.
Brian1 " Google the Linux way @ http://www.google.com/linux " |
The quick test gets:
Code:
P2:/home/david# mkdir /media/usb Code:
P2:/home/david# cat /proc/bus/usb/devices Code:
Attached devices: Typing simply 'mount' gives: Code:
/dev/hda1 on / type ext3 (rw,errors=remount-ro) Code:
P2:/proc/bus/usb/001# mount -t vfat /dev/sdb1 /media/usb -Dave |
Uh- Oh. Having trouble with umount.
Code:
P2:/media/usb# umount /media/usb Quote:
|
You are in the /media/usb directory, so it won't umount. :p
"cd" to another directory first. |
All times are GMT -5. The time now is 11:20 PM. |