Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've added the following line to my /etc/fstab:

server:/srv/homes /home nfs rsize=8192,wsize=8192,timeo=14,intr,hard,auto 0 0

As you can see, /home needs to be mounted during the boot or users won't have an access to their home directory.

Unfortuately, Ubuntu seems to push mounting to the background and therefore /home is mounted approximately one minute after login screen appears. How can I make it wait for successful mount?

PS. I'm running Ubuntu 12.04

share|improve this question
I would try adding remote-filesystems, emitted by mountall.conf, to the "starts on" conditions of lightdm.conf. – enzotib Apr 26 '12 at 15:31
up vote 3 down vote accepted

In lightdm's upstart job (/etc/init/lightdm.conf), add a mounted event so it looks a bit like this:

start on ((filesystem
           and runlevel [!06]
           and started dbus
           and (drm-device-added card0 PRIMARY_DEVICE_FOR_DISPLAY=1
                or stopped udev-fallback-graphics))
           and mounted MOUNTPOINT=/home
          or runlevel PREVLEVEL=S)
share|improve this answer

I was experiencing a similar problem after upgrading to 12.04 and solved it by adding the nfsvers=3 option to the fstab entry for the NFS mount. The NFS filesystem was being exported using version 3 and there appears to be a problem in Ubuntu 12.04 and 11.10 with detecting that since version 4 is tried first. See the following bug report:

share|improve this answer
THANK you... this solved a major headache for me. – DevSolar Oct 13 '12 at 12:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.