FSTAB Auto Mount
Simon Ives
simon at simonives.info
Thu Oct 16 11:39:51 BST 2008
On Tue, 2008-10-14 at 20:25 -0700, daniel sobey wrote:
> You are mounting the file system before the network is up, use _netenv
> to mount when the network status changes instead of auto. ie
>
> //10.1.1.2/E /media/windows_e cifs
> _netenv,credentials=/etc/smbcredentials,uid=1000,file_mode=0770,dir_mode=0770,rw 0 0
>
> With the new network manager they have changed how the network starts
> slightly to allow you to connect to wireless without being logged in
> to a gui etc so it has changed some of these things.
I entered the "_netenv" option in the place the "auto" option, saved the
file and when I booted up this morning no shares auto mounted. I can't
comment on whether or not the cifs shares would have auto mounted as the
Windows box wasn't switched on. The file server, however, is always on
so should have mounted.
Later when the Windows box was on I executed "sudo mount -a" which
mounted the cifs shares fine (so I'm assuming they will be mounted at
boot if the machine is on for the moment) but it seems that the
"_netenv" option doesn't work with nfs shares. The following error is
returned for the nfs share:
"mount.nfs: an incorrect mount option was specified"
Is this an nfs specific error and how should I address it?
The relevant nfs line in /etc/fstab now reads:
# -- Entry for File Server :
#
10.1.1.4:/home /media/file_server nfs
_netenv,rw,rsize=8192,wsize=8192,timeo=14,intr
Thanks.
--
Simon Ives
simon at simonives.info
www.simonives.info
Please consider the environment before printing this email or any
attachments.
More information about the ubuntu-au
mailing list