LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-20-2005, 05:32 AM   #1
mvo
Member
 
Registered: Apr 2005
Location: Delhi, India
Distribution: Mostly Fedora
Posts: 42

Rep: Reputation: 15
Autofs vs. fstab


Hi,

I use fstab for automounting my external HDD and other shares, even networkshares.

my questions, mostly for curiousity :

Can one, though it might not be desirable, automount an external HDD with autofs?

When is autofs recommandable to be used?
I haven't found situations where fstab didn't do the job.


thanks, Marcel
 
Old 12-20-2005, 06:51 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Autofs is useful for devices that are often installed after the machine is up and running. For instance, if you setup an external USB HD in autofs when you plug the drive in it'll automatically be detected and mounted on your running system. No need for any user commands. Similarly, you can make it automount CD's after insertion into the drive or any other removable media.

Typically fstab entries are mounted once at boot and then everything from there on out must be done through user interaction.
 
Old 12-20-2005, 07:27 AM   #3
mvo
Member
 
Registered: Apr 2005
Location: Delhi, India
Distribution: Mostly Fedora
Posts: 42

Original Poster
Rep: Reputation: 15
Extern USB HD:
It sounds good, untill now I did it with 'mount -t .... /dev/sda5' etc
Do you need to configure autofs to recognize ext USB HDD or does it do the job automatically?
 
Old 12-20-2005, 07:47 AM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
You need to configure it for the drive, yes, but there is nothing special for a USB drive vs. any other removable media.
 
Old 12-20-2005, 07:56 AM   #5
mvo
Member
 
Registered: Apr 2005
Location: Delhi, India
Distribution: Mostly Fedora
Posts: 42

Original Poster
Rep: Reputation: 15
this I do not understand, my removable media is recognized and auto-mounted also without problems when autofs is off. So what adds autofs to this?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab-sync conflicts with autofs? sohmc Linux - Software 3 09-03-2005 07:43 AM
Troubles disabling autofs / What keeps editing /etc/fstab?? powermonkey Fedora 0 04-30-2005 12:32 PM
how to mount fstab vs autofs rrich100 Red Hat 1 11-13-2003 11:46 PM
nfs mount with fstab vs autofs rrich100 Linux - Networking 2 11-13-2003 10:21 PM
Mounting NFS filesystem fstab vs autofs rrich100 Linux - Networking 0 11-13-2003 01:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:39 AM.

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