C1: Mounting network share at boot time fails

This forum is for supported devices using an ARMv7 Amlogic SoC.

C1: Mounting network share at boot time fails

Postby Holzhaus » Thu Sep 24, 2015 6:55 am

I want to mount an NFS share (myserver.lan) at boot time, but it always fails, because the DNS seems to take some seconds before it starts to work. (I can see in the logs that it fails to get the IP address belonging to the hostname)

Here's my /etc/fstab:
$this->bbcode_second_pass_code('', '
myserver.lan:/srv/nfs/hdd /mnt/nfs nfs nfsvers=3,udp,noatime,rsize=32768,wsize=32768,nolock,timeo=14,intr,_netdev,nofail 0 1
')

If I connect to the device via SSH some seconds after it booted, i can run "mount -a" and it the is mounted.

I also tried using a systemd mount unit with After=network.target, but that doesn't work either.

Any Ideas how to speed up DNS setup or delay the mounting until DNS starts to work?

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

Re: C1: Mounting network share at boot time fails

Postby WarheadsSE » Thu Sep 24, 2015 12:09 pm

You might want network-online.target.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: C1: Mounting network share at boot time fails

Postby gripped » Thu Sep 24, 2015 8:17 pm

I've struggled with a similar issue in the past and what worked for me was replacing _netdev with x-systemd.automount.
It's long ago and I can't remember if there were more steps sorry.
gripped
 
Posts: 22
Joined: Sat Nov 30, 2013 1:28 pm


Return to Amlogic

Who is online

Users browsing this forum: No registered users and 2 guests