Hi,
i use and NAS (based on freeNAS) in my network for central storing of files, the NAS is configured to share its volumes using NFS.
So my pc (openSUSE 13.1) is or was configured to automout the NFS shares during boot using this fstab:
....
192.168.0.10:/mnt/volume1/jack/Musik /home/jack/Musik nfs auto 0 0
192.168.0.10:/mnt/volume1/jack/Bilder /home/jack/Bilder nfs auto 0 0
this worked perfectly up someone plugged the power cable from the NAS. Fortunately the NAS does not seemed to to be damaged.
Anyway if i reboot my pc now and try to access the shares (logged in as user: jack) i get the message:
mount: only root can mount …
And it is true if i manually try to mount using: sudo mount /jack/Bilder
it works!
So what is the problem here, why did it worked yesterday and not anymore?
Starting LSB: NFS client services...
[32m OK [[0m] Reached target Host and Network Name Lookups.
Starting /etc/init.d/boot.local Compatibility...
[32m OK [[0m] Started /etc/init.d/boot.local Compatibility.
[32m OK [[0m] Started LSB: NFS client services.
[32m OK [[0m] Reached target Remote File Systems (Pre).
Mounting /home/jack/Bilder...
Mounting /home/jack/Musik...
Starting SuSEfirewall2 phase 2...
[1;31mFAILED[[0m] Failed to mount /home/jack/Bilder.
See 'systemctl status home-jack-Bilder.mount' for details.
[1;33mDEPEND[[0m] Dependency failed for Remote File Systems.
[1;33mDEPEND[[0m] Dependency failed for Postfix Mail Transport Agent.
And “systemctl status home-jack-Bilder.mount” shows this:
home-jack-Bilder.mount - /home/jack/Bilder
Loaded: loaded (/etc/fstab)
Active: failed (Result: exit-code) since Do 2014-11-27 11:03:47 CET; 5min ago
Where: /home/jack/Bilder
What: 192.168.0.10:/mnt/volume1/jack/Bilder
Process: 885 ExecMount=/bin/mount 192.168.0.10:/mnt/volume1/jack/Bilder /home/jack/Bilder -t nfs -o auto (code=exited, status=32)
One the client? Would not restarting the pc would do the same? And it is not that i cannot share the mount at all, it just does not work during boot. Manually it is working right away.
But to make it super awesome, add two options: ‘noauto comment=systemd.automount’ . Then what happens is the share gets mounted as soon as something tries to access it…but not before. So boot runs as fast as possible, and as soon as you actually try to access the share, it gets mounted. Thanks, systemd!
I tried a lots of different otpions but nothing worked, the noauto, systemd.automount is no option because i need this to work during boot already.
And it did worked a few days ago, for over 5 months without problem, so why does it stop now?
Is not there anybody that can interpret the logs i posted above?