You are not logged in.

#1 2012-10-20 08:58:20

eshizhan
Member
Registered: 2012-03-26
Posts: 21

systemd-fsck boot message

systemd-fsck show message when boot evertime. What does meaning? And how to hidding them.

systemd-fsck[145]: /dev/sda4: clean, 112977/9296096 files, 185427/21217024 blocks
systemd-fsck[151]: /dev/sda1: clean, 345/26104 files, 34083/104388 blocks (check after next mount)

edit:
Sorry, I loss something. Full message is:

/dev/sda3: clean, 131838/991232 files, 1193255/3933482 blocks
systemd-fsck[145]: /dev/sda4: clean, 2977/296096 files, 85427/1217024 blocks
systemd-fsck[151]: /dev/sda1: clean, 345/26104 files, 34083/104388 blocks (check after next mount)

my lsblk:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0    20G  0 disk 
├─sda1   8:1    0   102M  0 part /boot
├─sda2   8:2    0 258.9M  0 part [SWAP]
├─sda3   8:3    0    15G  0 part /
└─sda4   8:4    0   4.7G  0 part /home

Last edited by eshizhan (2012-10-22 04:52:13)

Offline

#2 2012-10-21 06:29:06

jynnantonix
Member
Registered: 2012-09-07
Posts: 33

Re: systemd-fsck boot message

fsck stands for "file system check" [1].  systemd will check all of your filesystems every time you boot [2]. 

systemd-fsck[145]: /dev/sda4: clean, 2977/296096 files, 85427/1217024 blocks
systemd-fsck[151]: /dev/sda1: clean, 345/26104 files, 34083/104388 blocks (check after next mount)

These messages mean that there are no problems with your filesystems and they are "clean".  If there ever was a problem with any of your filesystems, these messages are how fsck will let you know so I don't think you want to hide them.

[1] https://wiki.archlinux.org/index.php/Fsck
[2] https://wiki.archlinux.org/index.php/Systemd#Automount

Offline

#3 2012-10-21 15:16:44

eshizhan
Member
Registered: 2012-03-26
Posts: 21

Re: systemd-fsck boot message

My kernel argument has 'quiet', So I think it should be hided when boot normal.

Offline

#4 2012-10-21 15:26:36

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: systemd-fsck boot message

if you really want to hide the output, it may be possible to override systemd-fsck@.service by copying it to /etc/systemd/system/ and changing StandardOutput to:

StandardOutput=null

Note however that I did not test this and it is a bad idea in general because the fsck output may be important if there are actual problems with your filesystem or even the hard drive itself.

edit:
better to set it to "journal" so you can at least see the output in the journal later.

Last edited by 65kid (2012-10-21 15:27:56)

Offline

#5 2012-10-22 02:00:19

eshizhan
Member
Registered: 2012-03-26
Posts: 21

Re: systemd-fsck boot message

Yes,But I don't understand why it's output when my filesystem is normal.

Offline

#6 2012-10-22 02:08:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: systemd-fsck boot message

I inadvertantly got some of the messages to go away when I changed the level of MaxLevelConsole= in journald.conf.  I used to have all my filesystem's fsck shown, and now that I have it set to err instead of debug, my / partition is the only one shown.  Maybe by changing it to 'emerg' or 0 might surpress it, but I have not tried.  I just thought it was probably good that I know that my filesystem is okay.

Offline

#7 2012-10-22 05:42:23

eshizhan
Member
Registered: 2012-03-26
Posts: 21

Re: systemd-fsck boot message

WonderWoofy, I try your way. The systemd-fsck message have been hided when I set MaxLevelConsole=notice.
However the message still show:

/dev/sda3: clean, 131838/991232 files, 1193255/3933482 blocks

I think it's not systemd-fsck output.

Offline

#8 2013-06-12 03:32:17

OlafLostViking
Member
From: Lost
Registered: 2013-01-30
Posts: 47

Re: systemd-fsck boot message

Out of curiosity, did you manage to get rid of this "clean" message?

Offline

#9 2013-06-12 04:07:16

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: systemd-fsck boot message

That is output from the initramfs.  I don't know that there is actually a way to get rid of this.  Though I guess you could edit the mkinitpcio scripts, but if you were to redirect to /dev/null for example, you wouldn't be able to see if things were totally f*cked up.  So it is probably a better idea to simply let it do its thing for now.  The issue has come up on the systemd mailing list.  There was a general concensus that the fsck binaries should work like other programs where a successful non-error run (exits with a 0 code) should not print anything, or at least the output should be optional in some way.  There was mention of trying to work with the upsteam filesystem devs to get this changed.

Offline

#10 2013-06-12 08:00:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,433

Re: systemd-fsck boot message

Offline

Board footer

Powered by FluxBB