Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 03-07-2004, 09:31 PM   #1
LQ Newbie
Registered: Mar 2004
Posts: 16

Rep: Reputation: 0
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 .
Old 03-07-2004, 09:39 PM   #2
Registered: May 2002
Distribution: Fedora Core
Posts: 41

Rep: Reputation: 15
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...
Old 03-07-2004, 10:55 PM   #3
LQ Newbie
Registered: Mar 2004
Posts: 16

Original Poster
Rep: Reputation: 0
thank you much ,
become my usb storage is used in a embeded board ,
you can't type mount etc .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux, usb-storage... how to mount them and see their partition table Saradas Programming 5 11-12-2008 08:09 AM
USB storage devices difficult to mount and use jaakkop Slackware 4 11-16-2005 04:03 PM
Cannot mount usb storage under 2.6.9 stelmed Slackware 6 12-12-2004 08:34 AM
Errors trying to mount USB Mass Storage Device Ctawp Linux - Hardware 7 12-04-2003 01:32 AM
Trying to mount USB MP3 storage key (128Mb) hamster Linux - Hardware 5 04-06-2003 07:52 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration