I use to order
fsck by doing:
# touch /forcefsck
On Ubuntu Linux v14 I have found this method to check if, after rebooting, it was performed:
luis@Terminus:~$ sudo dumpe2fs /dev/sda7 | grep "mount" -i dumpe2fs 1.42.9 (4-Feb-2014) Last mounted on: / Default mount options: user_xattr acl Last mount time: Sun Feb 28 23:24:18 2016 Mount count: 1 Maximum mount count: -1
The trick is in the
Mount count data: it is supposed to tell the number of times the partition has been mounted after the last check. So a number of
1 after rebooting means it was just checked right now.
But on Kali Linux v2.0 it seems not to be working all right. This is the result after the same
touch /forcefsck command:
luis@Midnighter:~$ sudo dumpe2fs /dev/sdb8 | grep "mount" -i dumpe2fs 1.42.12 (29-Aug-2014) Last mounted on: / Default mount options: user_xattr acl Last mount time: Sun Feb 28 21:22:49 2016 Mount count: 82 Maximum mount count: -1
How could I confirm
fsck was performed?