Re: SAMBA -- automatic remounting



On 2006-03-31, John-Paul Stewart <jpstewart@xxxxxxxxxxxxxxxx> wrote:
Beware of the difference between these two fstab lines:

//server/share /mnt/somewhere smbfs auto,user=me 0 0
//server/share /mnt/somewhere autofs defaults 0 0

The first example will automatically mount the smbfs filesystem at boot
time.

....or when mount -a is run. :)

The second example, where the *filesystem* type is specified as
*autofs* is (I believe) what Keith was referring to when he suggested
automount.

Actually, I've never used an fstab entry like that; typically I call the
automount program from a boot script:

automount /auto file /etc/auto.nfs

with a proper auto.nfs config file. Many distros have tools that make
configuring an automount ''easier'' (or, IMO, obfuscate configuring an
automount, but perhaps that's just me).

So, to the OP, one way or another you need the automount program to get
the desired behaviour; the auto flag in fstab is not what you think it
is.

--keith

--
kkeller-usenet@xxxxxxxxxxxxxxxxxxxxxxxxxx
(try just my userid to email me)
AOLSFAQ=http://wombat.san-francisco.ca.us/cgi-bin/fom
see X- headers for PGP signature information

.



Relevant Pages

  • [opensuse] Co-existing in a dynamic network Howto?
    ... I have several computers running SuSE and use fstab to do a number of automounts of file systems that exist on other computers within our network. ... I use fstab to define what I want automounted, so as to be able to run some scripts that access available remote file systems during boot up. ... during boot up, if the automount process finds one computer that does not exist, it times out and seems to give up on mounting any of the rest of the computers in the list. ...
    (SuSE)
  • Re: howto mount usb hd at boot automatically
    ... something to do with fstab but I am unsure of what else I need to do. ... It came as Fat32 format. ... ext3 which automounts at boot. ... asked for mount point and hey presto automount. ...
    (uk.comp.os.linux)
  • Re: mount Win partitions
    ... i really doubt that there is graphical tool that will set Linux to automount ... In /etc/fstab you put the partitions that you want to be mounted on boot. ... Now just save the file and reboot, ...
    (Fedora)
  • howto mount usb hd at boot automatically
    ... I would like to do is have it automount at boot I know its something to ... ideally like to change that to be a Linux ext3 if it could be done whilst ... If its not broke must be Linux ...
    (uk.comp.os.linux)