How to perform fsck in VyOS?

I have installed VyOS on a SSD which I want to check and verify for errors.

This is an easy task in normal linux distributions but none of the methods below worked on VyOS so whats the proper way of doing this?

  1. Adding "fsck.mode=force” to linux bootstring in /boot/grub/grub.cfg and reboot - failed!

  2. Adding empty file named “forcefsck” to the root like so: “sudo touch /forcefsck” and reboot - failed!

  3. Altering the partition itself by “sudo tune2fs -c 1 /dev/sda1” changes max mount count to 1 (so that fsck should be run each boot) and reboot - failed!

Doing “tune2fs -l /dev/sda1 | grep -i check” still says:

Last checked: Sun Jul 2 19:58:46 2023

Using VyOS 1.4-rolling-202308020317.

I have created this task regarding bug that fsck cannot be runned during boot: ⚓ T5498 fsck during boot doesnt work

1 Like