/usr/sbin/showfsck is in showfsck 1.4ubuntu4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/bin/sh
set -e
export LC_ALL=C
for part in `cat /proc/mounts | grep " ext[234]" | cut -d \ -f 1 | sort | uniq`; do
tune2fs -l $part > /dev/null 2>&1 ||
{
echo "Unable to access information for $part"
continue
}
MC=$(tune2fs -l $part | awk '/^Mount count:/ {print $3}')
MMC=$(tune2fs -l $part | awk '/^Maximum mount count:/ {print $4}')
NB=$(expr $MMC - $MC + 1)
if [ $NB = 1 ]; then
echo "***************************"
echo "***************************"
echo "* fsck at next mount for $part"
echo "***************************"
echo "***************************"
elif [ $NB -le 5 ]; then
echo "***************************"
echo "* $NB * /$MMC mount(s) until fsck for $part"
echo "***************************"
else
echo "$NB/$MMC mount(s) until fsck for $part"
fi
done
|