[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Easymint filesystem checks



On Sat, 1 Jan 2011 10:12:38 , Peter Slegg <p.slegg> wrote:
>     for drv in $ext2drives; do
>         echo; echo "Checking filesystem on drive $drv."
>         fsck.ext2 -p -C - $drv:
>         if [ $? -ge 2 ]; then
>             echo
>             echo "Warning: e2fsck FAILED ($?)"
>             echo "         Starting single user shell. Fix the"
>             echo "         filesystem on drive $drv by running fsck.ext2"
>             echo "         and REBOOT!"
>             echo
>             sh -si < /dev/console > /dev/console 2>&1
>         fi
>     done
>
>

I do find it a bit bizarre that Easymint loads fstab and then checks
that drive is ok.

How does Linux handle this ? Would it make sense to generate fstab during
boot ?

Peter