tcat
Posts: 28
Joined: Wed Oct 18, 2017 11:23 am

file systems check

Sat Jun 23, 2018 12:14 pm

Hi,

I am on late raspbian stretch, I use default two partition install, /boot (vfat) and /(ext4).

It seems the root file system check is disabled between mounts.
$ tune2fs -l /dev/mmcblk0p2 gives

Code: Select all

Mount count:              23
Maximum mount count:      -1
Last checked:             Thu Nov  3 18:16:43 2016
$ cat /boot/cmdline.txt gives

Code: Select all

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=... rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
/boot is vfat, but what triggers file system check on it?

Many thanks.
Tomas

sora03
Posts: 169
Joined: Mon Dec 29, 2014 4:11 pm
Contact: Website

Re: file systems check

Sat Jun 23, 2018 12:27 pm

Hi, mine triggers fileystem checks on boot but the tune2fs still reports that it checked the long time ago. the fsck should check the root partitoin if the vfat (boot) is /dev/mmcblk0p1 then the root fs is on /dev/mmcblk0p2 and fsck will only check if needed, for example a power failure.
FLOSS enthusiast, Debian user (linux-libre)

tcat
Posts: 28
Joined: Wed Oct 18, 2017 11:23 am

Re: file systems check

Sat Jun 23, 2018 12:56 pm

Hi,

Yes I see, /etc/fstab gives order (fs_passno) in which the partitions are checked. What I miss is fsck.log in /var/log, does not exist on my system.

Tomas

tcat
Posts: 28
Joined: Wed Oct 18, 2017 11:23 am

Re: file systems check

Sat Jun 23, 2018 1:09 pm

Hi,

Looking further in /var/log I spotted daemon log. It seems file systems checks are triggered by systemd daemon and logged therein.

Code: Select all

Jun 23 12:26:10 raspberrypi systemd-fsck[219]: fsck.fat 4.1 (2017-01-24)
Jun 23 12:26:10 raspberrypi systemd-fsck[219]: /dev/mmcblk0p1: 162 files, 44277/
86872 clusters
...
Jun 23 13:35:37 raspberrypi systemd-fsck[91]: e2fsck 1.43.4 (31-Jan-2017)
Jun 23 13:35:37 raspberrypi systemd-fsck[91]: rootfs: clean, 94307/1865344 files
, 934116/7704832 blocks
Tomas

Return to “Advanced users”

Who is online

Users browsing this forum: DirkS and 25 guests