/dev/shm mounted twice on -current
Hi,
Code:
$ cat /proc/mounts -- Best regards, Andrzej Telszewski |
Well spotted. Looks like rc.udev mounts it before /etc/mtab gets cleared out, and then it gets mounted again by 'mount -a' later on.
This should fix it: Code:
--- rc.S.orig 2016-02-08 23:15:45.715960963 +0000 |
Quote:
Code:
Code:
|
Hi,
/dev/shm should be drwxrwxrwt, which is the case on my system. Is your different? -- Best regards, Andrzej Telszewski |
Quote:
Code:
$ ls -la /dev/ | grep shm |
Upgraded, chose to overwrite with new config files, and rebooted, but..
Code:
bash-4.3$ ls -la /dev/ | grep shm Quote:
Only now I see Sep 23 2008 shm What the.. :/ |
Quote:
EDIT: Have you a entry for /dev/shm in fstab? |
Thanks. Yes I do..
Code:
tmpfs /dev/shm tmpfs defaults 0 0 |
Have you checked whether the /dev/shm mount is actually being done? (grep 'shm' /proc/mounts).
If it's not, then it's possible that the second unintended mount was masking a failure of the first, though why it might be failing I couldn't say. |
Code:
bash-4.3$ grep 'shm' /proc/mounts Now it's back with drwxr-xr-t 2 root root 40 Sep 23 2008 shm |
initrd, perhaps?
|
Just an observation regarding rc.udev:
One thing I noticed is that the mount for /dev/shm in rc.udev doesn't include a '-n' but the rootfs will be 'ro' at this point. On modern kernels devtmpfs will be pre-mounted before rc.S or even the initrd get involved (CONFIG_DEVTMPFS_MOUNT=y). The unmounting of pts and shm in order to mount devtmpfs and the later remounting of shm and pts in rc.udev seems not at-all 'KISS', especially given that the rootfs will be 'ro' at this point: introducing other obstacles to be worked around. So, I'm wondering whether it might not be better all round to leave /dev/shm and /dev/pts for 'mount -a' to do (once rootfs has gone 'rw') and maybe even strip out all this dancing around with devtmpfs and related mounts from rc.udev completely. Even if shm and pts are required this early in boot (are they?) and can't be left for 'mount -a', then I suggest it's better to promote their mounting into rc.S where all the other mounting activity resides. IMO it would be cleaner for rc.udev to just concern itself with udevd and not devtmpfs, /dev/shm or /dev/pts. |
Quote:
|
Clearly something is not quite right with your system. /proc/mounts shows that /dev/shm is mounted, yet your ls -l shows a date of 2008 and non-default permissions, which doesn't make sense for a tmpfs created at boot time.
A few other things to check: That devtmpfs is mounted on /dev /etc/rc.d/rc.udev is 755, and has a md5sum of efc795ae7830f3ad598b6db170569e28 /lib/udev/devices/shm doesn't exist (in fact on my box the directory is empty). That you haven't got anything funky in your rc.local. |
Quote:
Code:
bash-4.3$ grep 'devtmpfs' /proc/mounts Code:
bash-4.3$ ls -l /etc/rc.d/rc.udev Code:
bash-4.3$ md5sum /etc/rc.d/rc.udev Code:
bash-4.3$ cat /etc/rc.d/rc.local Quote:
|
All times are GMT -5. The time now is 04:50 AM. |