-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/etc/fstab down't work with RPI2 #824
Comments
It does at least mount nfs for me on RPI2:
|
Yes, with 3.18.6+ on RPI1 it works good. |
Can you add maxcpus=1 to end of cmdline.txt and report if it works? |
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 |
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... |
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..... |
@pirulloz I've got a USB ssd disk here, but it seems to be mounted just fine (without any cmdline.txt changes) |
@popcornmix rootdelay=10 makes /etc/fstab work for me. Will try with lower values later on. |
With rootdelay=10 it works fine. |
I can confirm |
@keithellis74 Look here: https://github.com/Hexxeh/rpi-firmware/commits/master
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. |
Hi, just tried to downgrade to 3.18.5 and get the following error. *** Updating kernel modules Keith Ellis
|
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 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 |
Ah yes, 67197d9d73c56570578cb2c6c188af263a37ecd9 predates the Pi2 builds. If that doesn't work without rootdelay then I suspect it has never worked. |
@popcornmix The reason I thought it had
Sorry for the confusion. |
I also had this problem when updating from the RPi B+ to RPi2 (even with updating everything properly). I had to login as root during the boot process and run mount -a and now it seems to mount all of my external drives properly on reboot without needing rootdelay. |
I think @popcornmix is right about /etc/fstab being parsed before the disks have been identified due to the parallelization of the boot process. |
After trying all night, I want to say thanks to this thread. rootdelay of 5 is working for me too! |
Mounting a separate |
commit 91905b6 upstream. When the parport_pc module is removed from the system, all parport devices are iterated in parport_pc_exit and removed by a call to parport_pc_unregister_port. Note that some parport devices have its 'struct device' parent, known as port->dev. And when port->dev is a platform device, it is destroyed in parport_pc_exit too. Now, when parport_pc_unregister_port is called for a going port, drv->detach(port) is called for every parport driver in the system. ppdev can be one of them. ppdev's detach() tears down its per-port sysfs directory, which established port->dev as a parent earlier. But since parport_pc_exit kills port->dev parents before unregisters ports proper, ppdev's sysfs directory has no living parent anymore. This results in the following warning: WARNING: CPU: 1 PID: 785 at fs/sysfs/group.c:219 sysfs_remove_group+0x9b/0xa0 sysfs group ffffffff81c69e20 not found for kobject 'parport1' Modules linked in: parport_pc(E-) ppdev(E) [last unloaded: ppdev] CPU: 1 PID: 785 Comm: rmmod Tainted: G W E 3.18.0-rc5-next-20141120+ raspberrypi#824 ... Call Trace: ... [<ffffffff810aff76>] warn_slowpath_fmt+0x46/0x50 [<ffffffff8123d81b>] sysfs_remove_group+0x9b/0xa0 [<ffffffff814c27e7>] dpm_sysfs_remove+0x57/0x60 [<ffffffff814b6ac9>] device_del+0x49/0x240 [<ffffffff814b6ce2>] device_unregister+0x22/0x70 [<ffffffff814b6dac>] device_destroy+0x3c/0x50 [<ffffffffc012209a>] pp_detach+0x4a/0x60 [ppdev] [<ffffffff814b32dd>] parport_remove_port+0x11d/0x150 [<ffffffffc0137328>] parport_pc_unregister_port+0x28/0xf0 [parport_pc] [<ffffffffc0138c0e>] parport_pc_exit+0x76/0x468 [parport_pc] [<ffffffff81128dbc>] SyS_delete_module+0x18c/0x230 It is also easily reproducible on qemu with two dummy ports '-parallel /dev/null -parallel /dev/null'. So switch the order of killing the two structures. But since port is freed by parport_pc_unregister_port, we have to remember port->dev in a local variable. Perhaps nothing worse than the warning happens thanks to the device refcounting. We *should* be on the safe side. Signed-off-by: Jiri Slaby <[email protected]> Reviewed-by: Takashi Iwai <[email protected]> Tested-by: Martin Pluskal <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Jiri Slaby <[email protected]>
Hello,
Thank you for your help. |
I'm having the same issue as well. Interestingly, trying to mount the drives through |
I'm having the same problem with nfs mounts in /etc/fstab. They don't mount on boot, but "mount -a" works fine after booting. rootdelay doesn't fix it. kernel 4.1.4-v7+ |
1 similar comment
I'm having the same problem with nfs mounts in /etc/fstab. They don't mount on boot, but "mount -a" works fine after booting. rootdelay doesn't fix it. kernel 4.1.4-v7+ |
Not sure why someone duplicated my comment. That wasn't me. |
Because I had the exact same error! But let me change it, just for you: nfs mounts in /etc/fstab doesn't work at boot time, but mount -a works after booting. rootdelay did not help. The kernel i'm using is 4.1.4-v7+ |
here you can see the problems with timings of wpa-suplicant and mount-nfs. I think that's the problem |
I'm using wired ethernet, so it's nothing to do with wpa. |
I'm using wired ethernet too. The nfs timeout at boot time exist anyway. |
NFS4 requires idmapd, did you configured it right? |
Having the same issue as DavidCWGA and lathoub. No solution or workaround yet? |
Solved it by adding the package |
|
@pirulloz Does this work for you with jessie? |
I'm trying to mount an nfs volume via /etc/fstab, and installing usbmount did not help. uname -a |
Try adding "noauto,x-systemd.automount" to your mount options in fstab. |
adding the options worked great! So, that says, don't use fstab to auto mount the volume, but ask systemd to do it? |
Yes. Obviously this only works if you're using systemd. |
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 - /root/mount_drives.sh:
|
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. |
Agreed with @DavidCWGA - not only is this an ugly hack, please be aware that |
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. |
Hello,
/etc/fstab doens't work in RPI2. Simply it doesn't mount anything.
You can see here a lot of people with this problem:
http://www.raspberrypi.org/forums/viewtopic.php?f=28&t=99491
The text was updated successfully, but these errors were encountered: