LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 11:28 AM   #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, 11:37 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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, 11:41 AM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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, 11:44 AM   #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



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 10:53 PM
ndiswrapper - driver present:harware present but no connection esteeven Linux - Wireless Networking 2 12-26-2004 04:06 PM
AutoMounting .???...............yes, Again :) hamoksh Linux - Newbie 7 08-15-2003 02:07 PM
automounting?? graffitici Linux - Hardware 6 07-04-2003 03:58 AM
AutoMounting dkc_ace Linux - Hardware 2 05-13-2003 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:59 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
Open Source Consulting | Domain Registration