LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2003, 12:28 PM   #1
Yocal
LQ Newbie
 
Registered: Aug 2003
Posts: 18

Rep: Reputation: 0
Exclamation Automounting { if present }


Hi,

Im mounting my maxtor-firewire disk using this command:

mount -t vfat -o defaults,umask=0,quiet /dev/sda1 /mnt/removable

Great - it works very fine... But - i would like to mount it every time i boot... Or my goal is (info: using RH9):

- Boot
- Check if disk is present (how??)
- If present, mount it using the above command.
- Tada

Is that some weird kind of scripting - or is there an easy way to do it


// Yoc.
 
Old 08-29-2003, 12:37 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Actually, fstab will do that for you

Code:
/dev/sda1  /mnt/removable  vfat  defaults,umask=0,quiet,auto  0   0
Should suffice as an entry in /etc/fstab

Cool
 
Old 08-29-2003, 12:41 PM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
You should add an entry in your /etc/fstab file. It works like this (an example):
#device- mnt point- fs type-options- dump-pass
/dev/sda1 /mnt/removable vfat defaults,umask=0,quiet 0 0
 
Old 08-29-2003, 12:44 PM   #4
Yocal
LQ Newbie
 
Registered: Aug 2003
Posts: 18

Original Poster
Rep: Reputation: 0
Hi,

Thanks! It seems to work

I just love this quick-replying forum
 
  


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
echo "blabla" in a script present present in /etc/rc.d/rc5.d/S96dinesh murugesan Linux - Newbie 3 04-14-2009 11:53 PM
ndiswrapper - driver present:harware present but no connection esteeven Linux - Wireless Networking 2 12-26-2004 05:06 PM
AutoMounting .???...............yes, Again :) hamoksh Linux - Newbie 7 08-15-2003 03:07 PM
automounting?? graffitici Linux - Hardware 6 07-04-2003 04:58 AM
AutoMounting dkc_ace Linux - Hardware 2 05-13-2003 02:57 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration