You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, my suspicion was that /etc/fstab is being parsed before the disks have been identified (possibly through different parts of boot being done in parallel). There must be a way of ensuring /etc/fstab only occurs after disks are identified...
I can confirm rootdelay=5 works fine for me.
Just as a bit of background, I did not have this problem with kernel 3.18.5 but when upgrading to 3.18.7 was when the issues started. All kernel versions worked find in a Pi rev 2 model B
sudo rpi-update 96f2257f57196817ebb030096993823be721fb27
will get the initial 3.18.5 kernel. Try to identify the first kernel that fails to mount disk without rootdelay.
—
Reply to this email directly or view it on GitHub.
Ok, I had a play about this morning. I downgraded to 3.18.6 using commit 3f11b3fb1f390b60daa22f2ca2ecda5266295a84 and still had the same problem. It booted using rootdelay=5 but once removed it failed to boot again.
I then tried to downgrade to 3.18.5 using commit 67197d9d73c56570578cb2c6c188af263a37ecd9 (with the missing modules) This applies without any errors but upon reboot with rootdelay=5. uname -a reports kernel version 3.18.6 which is rather confusing. When rootdelay=5 is removed is fails to boot agian.
you could simply write a cron under root that runs mount -a on reboot.
This is a super-ugly hack. Until the problem is fixed for real (and given this issue is closed, they're clearly not in any hurry) the "noauto,x-systemd.automount" mount options are the best solution.
you could simply write a cron under root that runs mount -a on reboot.
Agreed with @DavidCWGA - not only is this an ugly hack, please be aware that @reboot literally means reboot - and not a clean system start after a previous shutdown.
Thanks, ziesemer, for keying me in on that. I hadn't realized @reboot only works sometimes. As for the more elegant option of using systemd, I've tried installing it and adding the options above, but then my cifs shares won't mount at all. As I've already spent 1 1/2 hours looking into systemd, and trying different options, I think for now I'll just settle for putting "mount -a" in my /etc/rc.local, which seems to be working.
Activity
notro commentedon Feb 11, 2015
It does at least mount nfs for me on RPI2:
popcornmix commentedon Feb 11, 2015
@pirulloz
Does same /etc/fstab mount okay on Pi1 with 3.18 kernel?
@notro any guesses?
pirulloz commentedon Feb 11, 2015
Yes, with 3.18.6+ on RPI1 it works good.
popcornmix commentedon Feb 11, 2015
Can you add maxcpus=1 to end of cmdline.txt and report if it works?
pirulloz commentedon Feb 11, 2015
I've tried. With that command it works fine.....
But now am i limited to 1 core? I don't know how that line works
popcornmix commentedon Feb 11, 2015
Yes, my suspicion was that /etc/fstab is being parsed before the disks have been identified (possibly through different parts of boot being done in parallel). There must be a way of ensuring /etc/fstab only occurs after disks are identified...
pirulloz commentedon Feb 11, 2015
ok.... i understand..... so i wait for a patch from you :)
If you need some support please let me know. I can do some tests.....
notro commentedon Feb 11, 2015
Similar issue: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/367782
popcornmix commentedon Feb 11, 2015
@pirulloz
can you remove maxcpus and add rootdelay=10 to cmdline.txt?
If that fixes it does a smaller number work?
I've got a USB ssd disk here, but it seems to be mounted just fine (without any cmdline.txt changes)
rutger1140 commentedon Feb 11, 2015
@popcornmix rootdelay=10 makes /etc/fstab work for me. Will try with lower values later on.
pirulloz commentedon Feb 11, 2015
With rootdelay=10 it works fine.
With rootdelay=5 it works fine
With rootdelay=2 it doesn't work
keithellis74 commentedon Feb 15, 2015
I can confirm
rootdelay=5works fine for me.Just as a bit of background, I did not have this problem with kernel
3.18.5but when upgrading to3.18.7was when the issues started. All kernel versions worked find in a Pi rev 2 model Bpopcornmix commentedon Feb 16, 2015
@keithellis74
Can you confirm that downgrading kernel avoids the requirement of rootdelay?
Look here: https://github.com/Hexxeh/rpi-firmware/commits/master
each firmware update has a git hash (hex number) at the end of the URL. Run:
To get a specific version. E.g.
will get the initial 3.18.5 kernel. Try to identify the first kernel that fails to mount disk without rootdelay.
keithellis74 commentedon Feb 16, 2015
Hi, just tried to downgrade to 3.18.5 and get the following error.
*** Updating kernel modules
cp: cannot start '//root/.rpi-firmware/modules/*': No such file or directory
Keith Ellis
keithellis74 commentedon Feb 17, 2015
Ok, I had a play about this morning. I downgraded to 3.18.6 using commit 3f11b3fb1f390b60daa22f2ca2ecda5266295a84 and still had the same problem. It booted using
rootdelay=5but once removed it failed to boot again.I then tried to downgrade to 3.18.5 using commit 67197d9d73c56570578cb2c6c188af263a37ecd9 (with the missing modules) This applies without any errors but upon reboot with
rootdelay=5.uname -areports kernel version 3.18.6 which is rather confusing. Whenrootdelay=5is removed is fails to boot agian.15 remaining items
andre-dierker commentedon Sep 21, 2015
I'm using wired ethernet too. The nfs timeout at boot time exist anyway.
andre-dierker commentedon Sep 21, 2015
NFS4 requires idmapd, did you configured it right?
luispablo commentedon Sep 25, 2015
Having the same issue as DavidCWGA and lathoub. No solution or workaround yet?
luispablo commentedon Sep 26, 2015
Solved it by adding the package
usbmount. Hope it helps...popcornmix commentedon Oct 29, 2015
@pirulloz Does this work for you with jessie?
Does installing usbmount help?
afspear commentedon Jan 29, 2016
I'm trying to mount an nfs volume via /etc/fstab, and installing usbmount did not help.
sudo mount -adoes work.uname -a
Linux raspberrypi 4.1.15-v7+ #831 SMP Tue Jan 19 18:39:46 GMT 2016 armv7l GNU/LinuxDavidCWGA commentedon Jan 29, 2016
Try adding "noauto,x-systemd.automount" to your mount options in fstab.
afspear commentedon Jan 29, 2016
adding the options worked great! So, that says, don't use fstab to auto mount the volume, but ask systemd to do it?
DavidCWGA commentedon Jan 29, 2016
Yes. Obviously this only works if you're using systemd.
randoogle commentedon Feb 8, 2016
you could simply write a cron under root that runs mount -a on reboot. Add in a sleep just in case things aren't ready yet. Worked for me.
$sudo su -
#crontab -e
@reboot /root/mount_drives.sh/root/mount_drives.sh:
DavidCWGA commentedon Feb 8, 2016
This is a super-ugly hack. Until the problem is fixed for real (and given this issue is closed, they're clearly not in any hurry) the "noauto,x-systemd.automount" mount options are the best solution.
ziesemer commentedon Feb 8, 2016
Agreed with @DavidCWGA - not only is this an ugly hack, please be aware that
@rebootliterally means reboot - and not a clean system start after a previous shutdown.randoogle commentedon Feb 9, 2016
Thanks, ziesemer, for keying me in on that. I hadn't realized @reboot only works sometimes. As for the more elegant option of using systemd, I've tried installing it and adding the options above, but then my cifs shares won't mount at all. As I've already spent 1 1/2 hours looking into systemd, and trying different options, I think for now I'll just settle for putting "mount -a" in my /etc/rc.local, which seems to be working.