You are not logged in.

#1 2014-03-23 11:42:58

AKL
Member
Registered: 2008-07-29
Posts: 69

[SOLVED] NFS in fstab doesn't work

Hi,

after reading the wiki for several hours I am stuck:

etc/fstab:

192.168.0.233:/mnt/z1   /mnt    nfs     user    0 0

Note that file system is nsf, not nfs4 because the server doesn't support it. I also tried the server name instead of the IP and options like noauto or _netdev to retain the mounting until the network is up. Doesn't matter, the result is always the same:

journalctl -b:

mount.nfs: mount system call failed
mnt.mount mount process exited, code=exited status=32
Failed to mount /mnt.
Dependency failed for Remote File Systems.
Unit mnt.mount entered failed state.

Of course restarting mnt.mount works like a charm, as does mounting manually.

I also tried autofs, which worked fine until I plugged in a 3 GB usb drive, so I would prefer to get mounting via fstab working instead of fixing the autofs issue.

Thanks!

Last edited by AKL (2014-03-24 16:57:17)


Endut! Hoch Hech!

Offline

#2 2014-03-23 12:49:06

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] NFS in fstab doesn't work

This is just half a guess, and probably not the issue here; but I thought I'd mention it nonetheless (just in case).

If you're using NetworkManager, give this a read/try.


Burninate!

Offline

#3 2014-03-23 13:12:21

AKL
Member
Registered: 2008-07-29
Posts: 69

Re: [SOLVED] NFS in fstab doesn't work

Thanks, but no, NetworkManager is not involved, just dhcpcd.


Endut! Hoch Hech!

Offline

#4 2014-03-23 14:09:07

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED] NFS in fstab doesn't work

According to https://bbs.archlinux.org/viewtopic.php?id=158200; it might be caused by rpc-statd.service not running when the mount is attempted

Offline

#5 2014-03-23 14:50:05

AKL
Member
Registered: 2008-07-29
Posts: 69

Re: [SOLVED] NFS in fstab doesn't work

Rpc-statd is running and the dependencies seem to be correct. How can I check the order in which the services are started?


Endut! Hoch Hech!

Offline

#6 2014-03-23 16:59:58

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: [SOLVED] NFS in fstab doesn't work

AKL wrote:

Rpc-statd is running and the dependencies seem to be correct. How can I check the order in which the services are started?

You should be able to see the order in your systemd journal (simply query'ing for "systemd" should give you all the loglines of services starting during boot).


Burninate!

Offline

#7 2014-03-23 20:20:23

Walston_Tempest
Member
From: Brighton UK
Registered: 2014-03-17
Posts: 5

Re: [SOLVED] NFS in fstab doesn't work

I was looking at the same issue in a post that has been closed now. Try these options in fstab

noauto,x-systemd.automount
ip.address.of.host:/export/path/to/sharename /path/to/mount/sharename     nfs   noauto,x-systemd.automount    0 0

Last edited by Walston_Tempest (2014-03-23 20:22:52)

Offline

#8 2014-03-23 20:51:34

AKL
Member
Registered: 2008-07-29
Posts: 69

Re: [SOLVED] NFS in fstab doesn't work

That did it, thanks!


Endut! Hoch Hech!

Offline

#9 2014-03-24 16:22:42

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] NFS in fstab doesn't work

please mark your thread as solved


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB