Is there a way to force fsck to run at boot on an encrypted LVM drive?
The usual methods aren't working, such as adding a file named forcefsck to the root.
The usual methods aren't working, such as adding a file named forcefsck to the root.
Add fsck.mode=force
to grub commandline.
This is the output from dmesg | grep 'fsck'
[ 0.000000] Command line: BOOTIMAGE=/vmlinuz-4.15.4-300.fc27.x8664 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.luks.uuid=luks-2ef8e9f4-a691-4007-91d1-04d34cb4dd4f rd.lvm.lv=fedora/swap rhgb quiet LANG=enGB.UTF-8 fsck.mode=force [ 0.000000] Kernel command line: BOOTIMAGE=/vmlinuz-4.15.4-300.fc27.x8664 root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root rd.luks.uuid=luks-2ef8e9f4-a691-4007-91d1-04d34cb4dd4f rd.lvm.lv=fedora/swap rhgb quiet LANG=enGB.UTF-8 fsck.mode=force
Asked: 2018-02-20 09:06:38 -0600
Seen: 396 times
Last updated: Feb 20 '18