You are not logged in.

#1 2013-09-21 10:39:07

replabrobin
Member
Registered: 2010-05-06
Posts: 240

fsck.mode=force stopped working

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

#2 2013-09-21 11:05:26

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: fsck.mode=force stopped working

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 filesystems

The 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

#3 2013-09-21 11:06:12

replabrobin
Member
Registered: 2010-05-06
Posts: 240

Re: fsck.mode=force stopped working

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

#4 2013-09-21 11:39:20

replabrobin
Member
Registered: 2010-05-06
Posts: 240

Re: fsck.mode=force stopped working

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

#5 2013-09-21 11:50:25

replabrobin
Member
Registered: 2010-05-06
Posts: 240

Re: fsck.mode=force stopped working

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

#6 2013-09-21 19:25:33

replabrobin
Member
Registered: 2010-05-06
Posts: 240

Re: fsck.mode=force stopped working

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

#7 2013-09-21 19:47:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: fsck.mode=force stopped working

Stop bumping the thread: there is an edit button, please learn how to use it...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB