You are not logged in.

#1 2012-10-03 20:27:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Pure systemd setup - how to force a disk check through systemctl

On my pure systemd setup, /sbin/shutdown is of course symlinked to /usr/bin/systemctl and I am wondering what is the proper or easy method to force a disk check on reboot.  This was accomplished via the -F switch in the past, i.e. `shutdown -rF now` but the -F switch is not part of systemctl.  Back in the old days, one had to `sudo touch /forcefsck`prior to rebooting.  Is there a more elegant solution?

Thanks!


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-10-03 20:44:06

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Re: Pure systemd setup - how to force a disk check through systemctl

I think the only other option is to pass fsck.mode=force to the kernel command line (man systemd-fsck)

Offline

Board footer

Powered by FluxBB