LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Auto mounting of USB devices (https://www.linuxquestions.org/questions/linux-newbie-8/auto-mounting-of-usb-devices-194475/)

leecming 06-17-2004 02:20 AM

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

TroelsSmit 06-17-2004 06:52 PM

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.

Optimistic 06-17-2004 09:09 PM

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.

landonmkelsey 06-18-2004 11:47 PM

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

TroelsSmit 06-19-2004 03:20 AM

Will that work if the usb-device is inserted after booting ?

landonmkelsey 06-19-2004 01:49 PM

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"

Slyder42 08-05-2004 01:42 PM

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 03:00 AM.