ODROID-C1: Automounting NFS via /etc/fstab not working

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

ODROID-C1: Automounting NFS via /etc/fstab not working

Postby Holzhaus » Sat Feb 14, 2015 7:22 pm

I'm currently experiencing a strange problem: Automounting an NFS share via /etc/fstab at boot time is not working.

After a fresh reboot, I always have to mount the share manually:

$this->bbcode_second_pass_code('', '$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
/dev/mmcblk0p2 swap swap defaults 0 0
pogoplug:/srv/nfs4/hdd /mnt/nfs nfs nfsvers=3,udp,noatime,timeo=14,intr,_netdev,nofail,auto 0 1

$ systemctl status nfs-client.target
● nfs-client.target - NFS client services
Loaded: loaded (/usr/lib/systemd/system/nfs-client.target; enabled; vendor preset: disabled)
Active: active since Sa 2015-02-14 20:17:14 CET; 1min 57s ago

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 12G 6,3G 4,9G 57% /
devtmpfs 420M 0 420M 0% /dev
tmpfs 424M 0 424M 0% /dev/shm
tmpfs 424M 1,4M 422M 1% /run
tmpfs 424M 0 424M 0% /sys/fs/cgroup
tmpfs 424M 0 424M 0% /tmp
tmpfs 85M 0 85M 0% /run/user/1000

$ sudo mount -a

$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 12G 6,3G 4,9G 57% /
devtmpfs 420M 0 420M 0% /dev
tmpfs 424M 0 424M 0% /dev/shm
tmpfs 424M 1,4M 422M 1% /run
tmpfs 424M 0 424M 0% /sys/fs/cgroup
tmpfs 424M 0 424M 0% /tmp
tmpfs 85M 0 85M 0% /run/user/1000
pogoplug:/srv/nfs4/hdd 15G 4,3G 9,7G 31% /mnt/nfs
')

Thanks in advance,
Jan
Holzhaus
 
Posts: 62
Joined: Wed Jan 21, 2015 12:40 pm

Re: ODROID-C1: Automounting NFS via /etc/fstab not working

Postby WarheadsSE » Sat Feb 14, 2015 7:34 pm

$this->bbcode_second_pass_code('', 'noauto,x-systemd.automount,x-systemd.device-timeout=10')

This should help. Otherwise, you need to make sure it is trying to mount only after the network is fully up and present.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ODROID-C1: Automounting NFS via /etc/fstab not working

Postby Holzhaus » Sun Feb 15, 2015 7:32 pm

Thanks, but that didn't work.

I also tried to create a systemd mount unit, which fails too. Looks like DNS resolution does not work when network-online.target is reached, but it should. Any ideas how to fix that? The unit does work if I ssh to the C1 and start it manually.

$this->bbcode_second_pass_code('', '$ cat /etc/systemd/system/mnt-nfs.mount
[Unit]
Description=Pogoplug NFS mount
Requires=network-online.target
After=network-online.target
Before=kodi.service

[Mount]
# The share we want mount
What=pogoplug:/srv/nfs4/hdd
Where=/mnt/nfs
Options=nfsvers=3,udp,noatime,timeo=14,intr,_netdev,nofail
Type=nfs

[Install]
WantedBy=multi-user.target

$ sudo systemctl status mnt-nfs.mount
[sudo] Passwort für jan:
● mnt-nfs.mount - Pogoplug NFS mount
Loaded: loaded (/etc/systemd/system/mnt-nfs.mount; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since So 2015-02-15 20:08:23 CET; 11min ago
Where: /mnt/nfs
What: pogoplug:/srv/nfs4/hdd
Process: 224 ExecMount=/bin/mount -n pogoplug:/srv/nfs4/hdd /mnt/nfs -t nfs -o nfsvers=3,udp,noatime,timeo=14,intr,_netdev,nofail (code=exited, status=32)

Feb 15 20:08:23 odroid-c1 mount[224]: mount.nfs: Failed to resolve server pogoplug: Name or service not known
Feb 15 20:08:23 odroid-c1 systemd[1]: mnt-nfs.mount mount process exited, code=exited status=32
Feb 15 20:08:23 odroid-c1 systemd[1]: Failed to mount Pogoplug NFS mount.
Feb 15 20:08:23 odroid-c1 systemd[1]: Unit mnt-nfs.mount entered failed state.')
Holzhaus
 
Posts: 62
Joined: Wed Jan 21, 2015 12:40 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 16 guests