First NFS entry in fstab not mounting at boot

Sam Sharpe lists.redhat at samsharpe.net
Sun May 16 14:37:04 UTC 2010


On 16 May 2010 13:05, BadMagic <badmagic at foo-unix.org> wrote:

> In my /etc/fstab, I've got 3 NFS entries:
>
> fs1:/data/unix     /unix        nfs     defaults    0 0
> fs1:/data/windows  /windows     nfs     defaults    0 0
> fs2:/storage1      /backup      nfs     defaults    0 0
>
> In this order,  'fs1:/data/unix' won't mount but the last 2 entries will.
>
> If I change the order to:
>
> fs2:/storage1      /backup      nfs     defaults    0 0
> fs1:/data/unix     /unix        nfs     defaults    0 0
> fs1:/data/windows  /windows     nfs     defaults    0 0
>
> and reboot, 'fs2:/storage1' won't  mount but the last 2 will.
>
> Basically, whichever entry goes first, doesn't get mounted.

Have you tried investigating the line *above* your first NFS entry?

I can imagine if you are editing it in a fixed-width terminal,
possibly there is no line ending after the line above the first NFS
mount - it just looks that way with line wrapping. If that's the case,
what you might actually have is something like:

tmpfs /tmp tmpfs defaults 0 0 fs1:/data/unix /unix nfs defaults 0 0

Which would also explain the behaviour you are reporting.

--
Sam


More information about the users mailing list