LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (http://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   how to mount a usb storage automatic ? (http://www.linuxquestions.org/questions/linux-hardware-18/how-to-mount-a-usb-storage-automatic-154802/)

lemon_hou 03-07-2004 10:31 PM

how to mount a usb storage automatic ?
 
Hi , everybody

I have a usb disk , it's filesystem is vfat .
my os is redhat 72,
now , I use the usb disk always type the command :
mount -t vfat /dev/sda1 /mnt/usb

is there any way that when I insert the usb disk ,
linux can mount it automatic ?
through bash script or c programming ?

thanks a lot .

matthurne 03-07-2004 10:39 PM

Well I don't know about having it mount it automatically when you stick the card in...not likely...but it would make things easier if you stuck this in your /etc/fstab:

/dev/sda1 /mnt/usb auto noauto,user 0 0

Then as any user, when you want to mount it, just type:

mount /mnt/usb

Easier at least...

lemon_hou 03-07-2004 11:55 PM

thank you much ,
become my usb storage is used in a embeded board ,
you can't type mount etc .


All times are GMT -5. The time now is 11:08 PM.