[TriLUG] Maintenance of a systemd machine

Ken Mink via TriLUG trilug at trilug.org
Sat Jan 7 17:13:32 EST 2017


On 01/07/2017 03:28 PM, Brian McCullough via TriLUG wrote:
> Folks,
>
> I hope that everybody is having a FUN snow ( ?? ) day.  Here, SouthWest
> of Raleigh in Apex, it was mostly ice with a dusting of snow on top, but
> I hear that others had more of the white stuff.
>
>
>
>
> In any case, I have a Debian SystemD machine where I need to run fsck on
> various filesystems, such as /var and /usr.
>
> Unfortunately, with a normally-running system, that is impossible, since
> those filesystems, and others, are mounted and in use.
>
> Even re-booting and choosing Recovery Mode gets me into a fully-mounted
> running system.
>
> Any suggestions for getting the system "almost" shut down so that I can
> run fsck on critical systems?
>
>
> Thanks,
> Brian
>
>
If you are looking for the equivalent to fsck -fy at boot time, here's 
what I do on debian systems.

Edit /etc/default/rcS and change FSCKFIX=no to yes. Then touch 
/forcefsck and reboot. That should cause a fsck on all filesystems.



More information about the TriLUG mailing list