-   Linux - General (
-   -   Automatically Mounting USB Storage Devices??? (

nalmo 08-07-2004 08:36 PM

Automatically Mounting USB Storage Devices???
I am a total newbie to linux and have a question about mounting usb devices.

I am running fedora core 2 and want to know is it possible to auto mount a usb device as soon as i plug it in to the usb port.
I noticed that this is already done with the cd-rom drives and thought it would be kind of funky to do the same with the usb devices.
I have a usb key and an external hd.

Thanks in advance.


foo_bar_foo 08-08-2004 12:46 PM

i think fedora uses autofs
take a look at
and see if you can use the cd entries as a template

nalmo 08-11-2004 06:47 AM

Cheers for the help. I'll give it a try.

nalmo 08-11-2004 12:05 PM

I tried out your advice editing /etc/fstab and it works perfectly. I now can just plug in my external hd and it will just appear on the desktop.

Thanks again for the info.

welson_sun 08-11-2004 03:49 PM

Can you post your modifications? I am using Redhat 9.

Linux.tar.gz 08-12-2004 09:04 AM

I've just installed submount, and it works fine with cdroms. Working on usb key now.

nalmo 08-13-2004 04:15 PM

Here is the entry that i added to the bottom of /etc/fstab :

/dev/sda1 /mnt/usb1 vfat auto,user,rw,exec 0 0

This site pretty much explains most things you need to know about editing /etc/fstab.

All times are GMT -5. The time now is 09:05 PM.