On 2022-09-01 22:51 +0100, Mike wrote: > A long time, maybe 11 years ago, I built a NAS box based around comodity > hardware and the Debian of the day. It's currently been through several > apt-get dist-upgrades and currently running Debian 11 with loads of old > config grandfathered into it. > > It's a server, so runs 24x7 but every few months or so falls on its > arse. Periodically it wants to fsck the disks, either because they've > gone 20 mounts or so without a fsck or more often because they've gone > however many days it is without a fsck. > > This I can live with. I can even live with the fact that with several > TB file systems and quite a few files, the processs takes around fuor > hours. I'd just be nice to have some progress reported. While it > managed to spit details of any file system errors that have been found > and corrected, other than that it sits there utterly silent. For hours. > I can see that it's doing something as 1) it's expected behaviour and 2) > I can see the disk light solid on. Nevertheless, it would be nice to > see the progress bar indicting how it was getting along. > > Does aoyone have any idea how to enable this? I have no idea where to > look. I've had several attempts at finding the answer with a well-known > Internet search engine but while I've found many similar questions and > even sometimes the same one as I'm asking but so far an answer has > proved illusive. > > Does anyone have any suggestions for a solution or indeed where one may > look for one?
You probably want "ShowStatus=auto" in the [Manager] section of /etc/systemd/system.conf, or boot with the "systemd.show_status=auto" option. See the systemd manpage: ,---- | KERNEL COMMAND LINE | [...] | systemd.show_status | Takes a boolean argument or the constants error and auto. Can | be also specified without an argument, with the same effect as | a positive boolean. If enabled, the systemd manager (PID 1) | shows terse service status updates on the console during | bootup. With error, only messages about failures are shown, | but boot is otherwise quiet. auto behaves like false until | there is a significant delay in boot. Defaults to enabled, | unless quiet is passed as kernel command line option, in which | case it defaults to error. If specified overrides the system | manager configuration file option ShowStatus=, see systemd- | system.conf(5). `---- Cheers, Sven