LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 03-07-2004, 10:31 PM   #1
lemon_hou
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, 10:39 PM   #2
matthurne
Member
 
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, 11:55 PM   #3
lemon_hou
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 .
 
  


Reply


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 09:09 AM
USB storage devices difficult to mount and use jaakkop Slackware 4 11-16-2005 05:03 PM
Cannot mount usb storage under 2.6.9 stelmed Slackware 6 12-12-2004 09:34 AM
Errors trying to mount USB Mass Storage Device Ctawp Linux - Hardware 7 12-04-2003 02:32 AM
Trying to mount USB MP3 storage key (128Mb) hamster Linux - Hardware 5 04-06-2003 08:52 PM


All times are GMT -5. The time now is 06:14 PM.

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