You are not logged in.
Pages: 1
I'm running linux-3.11.1-1-ARCH x86_64 fully updated. A recent systemd update advised to change the mkinitcpio setup. My hooks now look like this
HOOKS="base systemd autodetect modconf block filesystems keyboard fsck resume"
I've run mkinitcpio.conf and rebooted OK. However, I cannot now force fsck to run using a kernel parameter ie fsck.mode=force doesn't cause fsck to run.
I believe that even the normal fsck checking has stopped as dumpe2fs /dev/sda1 now shows
Mount count: 8
Maximum mount count: 5
How do I get the normal fsck checking to work?
Offline
Don't know if it's related but in: https://wiki.archlinux.org/index.php/Su … al_ramdisk
it says clearly that:
# resume must be placed after block and lvm2, but before filesystemsThe current "default" configuration I believe is to have rw in the kernel line and the fsck behaviour is defined in /etc/fstab, see the wiki.
About forcing check I can't tell...
Regards
Personal website: reboot.li
GitHub: github.com/rebootl
Offline
After I replaced the systemd hook by udev did mkinitcpio -p linux again and rebooted I find the fsck functionality is restored. So it seems like the systemd hook is breaking fsck behaviour somehow.
Offline
I just checked and mkinitcpio.conf from mkinitcpio-0.15.0-1-any.pkg.tar.xz has this line
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"
so perhaps the suspend wiki article is out of date.
Certainly fsck has been working with this HOOKS line
HOOKS="base udev autodetect modconf block resume filesystems keyboard fsck"
Offline
So after some more rebooting I find fsck.mode=force works with either of the mkinitcpio hooks
HOOKS="base udev autodetect modconf block resume filesystems keyboard fsck"
HOOKS="base udev autodetect modconf block filesystems keyboard fsck resume"
but not with
HOOKS="base systemd autodetect modconf block resume filesystems keyboard fsck"
HOOKS="base systemd autodetect modconf block filesystems keyboard fsck resume"
Offline
Rebooted after mkinitcpio -p linux with this in the config
HOOKS="base systemd autodetect modconf block filesystems keyboard fsck resume"
fsck.mode=force failed to work. I used sysadm to inspect the systemd hierarchy and don't see any task (even inactive) related to fsck. By inspection of the code I expected some service related to this /usr/lib/systemd/system/systemd-fsck@.service so I guess there may be something amiss with my systemd setup.
Offline
Stop bumping the thread: there is an edit button, please learn how to use it...
Offline
Pages: 1