[Freemint-list] dosfsck which marks filesystem clean? (Miro Krop??ek)

Peter Slegg p.slegg at scubadivers.co.uk
Mon Jun 5 23:14:24 MSD 2017


>
> Message: 1
> Date: Mon, 5 Jun 2017 08:48:21 +1000
> From: Miro Krop??ek <miro.kropacek at gmail.com>
> Subject: [Freemint-list] dosfsck which marks filesystem clean?
> To: freemint-list <freemint-list at mail.atariforge.org>
> Message-ID:
>     <CAN5rfbSx8JN4AdOxmykTrwETDGFeBAv4Wh5iv-YGe0HDOAfgHg at mail.gmail.com>
> Hi,
>
> as mentioned
> <https://github.com/freemint/freemint/pull/42#issuecomment-306017872> in
> the fix for the fsck issue, during my experiments I have realised that the
> dosfstools package and its dosfsck actually doesn't mark file system as
> clean when finishes!
>
> It respects the flag (i.e. if not dirty -> end with "file system clean"
> message) but doesn't set it. To your knowledge is there any other
> (mint/unix/tos/whatever) tool which actually *does* set this flag?
>
> Because right now it's a rather unsatisfactory situation, one time you
> forget to cleanly shutdown FreeMiNT (even without any Unix stuff) and for
> the rest of your life you're going to see the "unchecked fs, please use
> dosfsck" message.
>
> Of course, the right approach is to fix (or upgrade) the dosfstools package
> but it's not that easy, source code is .... rather hard to understand.
>

I always assumed that it was marked as dirty until a clean shutdown marks
it as clean. So that any unexpected power off leaves it marked as dirty
and it is checked at the next start.


Peter







More information about the Freemint-list mailing list