Summary: | =sys-kernel/gentoo-sources-3.12.7 systemd; kernel: tmpfs: No value for mount option 'strictatime' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tman <cornicx> |
Component: | [OLD] Core system | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | lxnay, systemd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
tman
2014-01-14 06:18:35 UTC
Added in 2009: http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=d0adde574b8487ef30f69e2d08bba769e4be513f Removed in 2010: http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=532490f0a5350fd92d838b7430a4c846bc8eac3f "MS_STRICTATIME clears MNT_RELATIME and MNT_NOATIME rather than setting any mount flag" would mean that you just will want to not pass any flag at all. Can you inspect /etc/fstab, /etc/mtab and /proc/mounts? (In reply to Tom Wijsman (TomWij) from comment #1) > Added in 2009: > http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/ > ?id=d0adde574b8487ef30f69e2d08bba769e4be513f > > Removed in 2010: > http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/ > ?id=532490f0a5350fd92d838b7430a4c846bc8eac3f > > "MS_STRICTATIME clears MNT_RELATIME and MNT_NOATIME rather than setting any > mount flag" would mean that you just will want to not pass any flag at all. > > Can you inspect /etc/fstab, /etc/mtab and /proc/mounts? i have inspeckt fstab and /proc/mounts. there is nothing special. so what the problem? # ls -la /proc/mounts lrwxrwxrwx 1 root root 11 15. Jan 07:44 /proc/mounts -> self/mounts # cat /etc/fstab # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/sda2 / ext4 discard,noatime,nodiratime 0 1 /dev/sda3 /boot ext2 discard,noatime,nodiratime 0 1 /dev/sdb5 /home ext4 noatime,nodiratime 0 1 /dev/sdb6 /mnt ext4 noatime,nodiratime 0 0 /dev/sdb7 none swap sw 0 0 /dev/sda1 /mnt/win ntfs-3g users,utf8=true 0 0 /dev/sdb1 /mnt/share ntfs-3g users,utf8=true 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 ro,user,noauto 0 0 What about /etc/mtab? Make sure /etc/mtab is set up as a symlink according to https://wiki.gentoo.org/wiki/Systemd#.2Fetc.2Fmtab as to avoid problems with mounting and mount options. ( On an irrelevant side note, noatime implies nodiratime according to http://lwn.net/Articles/245002/ so you might want to remove nodiratime from /etc/fstab. That code is still present today in http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/fs/inode.c ) (In reply to Tom Wijsman (TomWij) from comment #3) > What about /etc/mtab? lrwxrwxrwx 1 root root 17 2. Nov 00:17 /etc/mtab -> /proc/self/mounts /etc/mtab is already a symblink > ( On an irrelevant side note, noatime implies nodiratime according to > http://lwn.net/Articles/245002/ > so you might want to remove nodiratime from /etc/fstab. That code is still > present today in > http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/fs/ > inode.c ) does this means i have to romove all entries with noatime implies nodiratime in my /etc/fstab ? # cat /etc/fstab # <fs> <mountpoint> <type> <opts> <dump/pass> /dev/sda2 / ext4 discard 0 1 /dev/sda3 /boot ext2 discard 0 1 /dev/sdb5 /home ext4 0 1 /dev/sdb6 /mntext4 0 0 /dev/sdb7 none swap sw 0 0 /dev/sda1 /mnt/win ntfs-3g users,utf8=true 0 0 /dev/sdb1 /mnt/share ntfs-3g users,utf8=true 0 0 /dev/cdrom /mnt/cdrom udf,iso9660 ro,user,noauto 0 0 (In reply to tman from comment #4) > (In reply to Tom Wijsman (TomWij) from comment #3) > > What about /etc/mtab? > > lrwxrwxrwx 1 root root 17 2. Nov 00:17 /etc/mtab -> /proc/self/mounts > > /etc/mtab is already a symblink Hmm, this makes this an odd bug; that looks good. > does this means i have to romove all entries with noatime implies nodiratime > in my /etc/fstab ? No, as that enables access times; which is not what you want. Keep the lines and keep the word "noatime"; remove the word "nodiratime" only. i removed all the word "nodiratime". but i still get following errors: Jan 15 21:52:40 TuX kernel: tmpfs: No value for mount option 'strictatime' in addition to this also the error: "Failed mount /dev/shm" but strange that: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 124G 11G 107G 9% / none 12G 1012K 12G 1% /run udev 10M 0 10M 0% /dev tmpfs 12G 72K 12G 1% /dev/shm tmpfs 12G 0 12G 0% /sys/fs/cgroup tmpfs 12G 4,0K 12G 1% /tmp could it cant be a bug of systemd, because with kernel gentoo-sources-3.11. it boot without errors with /dev/shm. systemd is hard-coded to mount /dev/shm with strictatime: http://cgit.freedesktop.org/systemd/systemd/tree/src/core/mount-setup.c#n87 Also, recent versions of genkernel-next do it: https://github.com/Sabayon/genkernel-next/blob/master/defaults/initrd.d/00-devmgr.sh#L69 As described in bug 493346 comment 6 and bug 493346 comment 10, you may need to force genkernel-next to rebuild busybox or it will not recognize the strictatime mount option. its really the solution and duplicate bug report. thanks u very much for the patient support. solution: 1) emerge -1av genkernel-next busybox 2) set in /etc/genkernel.conf CLEAR_CACHE_DIR="yes" 3) regenerate with genkernel initramfs 4) reboot *** This bug has been marked as a duplicate of bug 493346 *** I believe genkernel should clear the cache automatically on install. Otherwise old, unpatched versions of busybox lay around in the cache that do not work correctly with the new init script. |