FS#13157 - /etc/rc.sysinit should distinguish between a cancelled and a failed fsck(8)
Attached to Project:
Arch Linux
Opened by Petar Bogdanovic (pebo) - Sunday, 08 February 2009, 12:12 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 20 February 2009, 00:18 GMT
Opened by Petar Bogdanovic (pebo) - Sunday, 08 February 2009, 12:12 GMT
Last edited by Aaron Griffin (phrakture) - Friday, 20 February 2009, 00:18 GMT
|
Details
Just because $fsckret is greater than 1 doesn't mean that
fsck failed.
I just missed my train because I quickly needed that one file and there was no way to cancel fsck without rebooting the system or falling back into a limited root shell. From man fsck: ``32 - Fsck canceled by user request'' So if $fsckret is 32, let me boot.. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Friday, 20 February 2009, 00:18 GMT
Reason for closing: Implemented
Additional comments about closing: In git
Friday, 20 February 2009, 00:18 GMT
Reason for closing: Implemented
Additional comments about closing: In git
If it was the periodic check you could disable it with tune2fs (see options -c and -i).
If you cancel it this way, does it at least re-fsck on the next boot?
That should not be a problem if the fs has a journal since the journal usually gets replayed before fsck. If there is no journal, rw-mounting a somehow damaged fs could do some more harm I guess..
> If you cancel it this way, does it at least re-fsck on the next boot?
Yes.
Yup, sorry. Had no arch to test it.
> I guess we can add this, with the stat_fail included.
I'm rewriting this rc.sysinit part as we speak but if someone else already did it, let me know..
Merged view: http://smokva.net/arch/rc.sysinit
http://projects.archlinux.org/?p=initscripts.git;a=commitdiff;h=e932c3406acf105c99e159ca0610768fbfb49b1a
Hoping users don't abuse it.
My only concern is about _possible_ abuses.
Every Windows user I know indefinitely aborts the file system check triggered by power failure or system block. Anyway, they should do what they want with their machines.
And if an uneducated linux user wish to indefinitely abort the periodic fsck I'm sure will find the way to disable it.
So +1 from me.