You are not logged in.

#1 2017-02-03 01:11:50

crankshaft
Member
Registered: 2013-04-29
Posts: 20

can't get fsck to run during boot

I have tried this on several installations of ARCH and are unable to get fsck to run during bootup.

Here's the guide I followed: https://wiki.archlinux.org/index.php/fsck

I have changed by kernel boot line to this:

APPEND root=/dev/sda1 rw vga=current fsck.mode=force fsck.repair=yes quiet loglevel=0

I have set the check frequency to 1 (every boot) with this:

tune2fs -c 1 /dev/sda1

and checked it is set with this:

dumpe2fs -h /dev/sda1 | grep -i 'mount count'
dumpe2fs 1.43.3 (04-Sep-2016)
Mount count:              1
Maximum mount count:      1

And still after a reboot, there is no evidence of FSCK being executed:

journalctl -b | grep fsck
Feb 03 09:04:33 PURE-DEV kernel: Kernel command line: BOOT_IMAGE=../vmlinuz-linux root=/dev/sda1 rw vga=current fsck.mode=force fsck.repair=yes quiet loglevel=0 initrd=../initramfs-linux.img

Any suggestions on why FSCK refuses to run ??

Offline

#2 2017-02-03 14:20:45

solstice
Member
Registered: 2006-10-27
Posts: 235
Website

Re: can't get fsck to run during boot

You have not followed the wiki page you refer to.

You must either use ro in kernel boot paramenter to force systemd to fsck the filesystems or use fsck hook in /etc/mkinitcpio.conf (and mkinitcpio -p linux) to force initramfs to run fsck.

Offline

Board footer

Powered by FluxBB