Am 2015-03-11 19:04, schrieb Jape Person:
Hi!

Because of the deprecated use of "# touch /forcefsck" as a method of
forcing a file system check on the partition containin /root at boot
time I posted here some time ago to see if there might be another way
to invoke the function.

touch /forcefsck is deprecated under systemd, but still supported.

What sysvinit's shutdown -F does, is simply create that flag file.
That parameter was removed from systemd's shutdown command, as its use is discouraged, but as said, still supported.

Run "touch /forcefsck" under systemd and it will happily check the file systems on next boot.


As for alternate ideas: I could think, that having update-grub generate an alternate grub entry, which adds fsck.mode=force to the kernel command line and which can be selected during boot, might be one idea.


For remote systems, where you don't have a sideband channel like iLO, you could use "grub-set-default", to choose the boot entry for the next boot. See man 8 grub-set-default.


Michael


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/3510a2eea12fb366829586aca37b1...@michaelbiebl.de

Reply via email to