Auto mounting of USB devices
Hi,
I'm using a Knoppix->Debian HDD installation with kernel 2.4.26... I can't seem to get the system to automount USB devices such as a USB 2.0 flash memory or external hard drive? How do I do so? Does it have something to do with hot plug and if so, how do I configure it? Thanks in advance... CM |
Maybe you could make a script watch for changes in:
cat /proc/scsi/scsi and act according to the findings. Perl should do the job nicely for you. Sorry for not describing a specific solution. |
This is what I did to get my FC2 box to recognize USB drives (It should be pretty close in Debian but I'm not sure).
1. Make a directory in which you will mount the filesystem. Something like /mnt/USB will work just fine. 2. Add this line to your /etc/fstab file: /dev/sda1 /mnt/USB vfat noauto,users,rw 0 0 3. Plugin and enjoy. With this setup (If I've remembered all the steps correctly) I can get my Jumpdrive, Digital Camera, and Archos MP3 player to mount when I plug them in. After that if you wish you can make a link on your desktop. Using KDE just right click and Create New --> Device --> Hard Drive Device. Then configure the options to point to your /mnt/USB file. Hope this helps. |
all you need to do is:
(1) cd /mnt (2) mkdir usbdrive (3) add to /etc/fstab /dev/sdc1 /mnt/usbdrive vfat noauto,users,rw 0 0 (4) reboot (best) Under Redhat 8.0, the USB Flash device is automatically installed vi /var/log/messages and look for "flash" and :USB" (:set ignorecase first) this message from Redhat Linux 8.0 Netscape 7.1 over cable modem 90% of the work done by Redhat, 5% by linuxquestions.org thanks to my vendor Steve who sold me the USB 2.0 PCI card Got help from linuxquestions.org |
Will that work if the usb-device is inserted after booting ?
|
I'll have to try that.... today!
There is also a question : Should one dismount the device before unplugging? I may have left out a step in my previous post. Lower left arrow System Tools->Disk Managment->select the flas usb line and select "mount" |
This was EXACTLY what I was looking to do. FC2 is running, I just need to transport data back and forth!!!!! You guys are awesome!
|
All times are GMT -5. The time now is 08:57 PM. |