weird issue: double reboot required with errors on multi-partition system
hiya,
i have a strange issue whereby on file system errors that are corrected at boot time, i require a double reboot in order to fix the problem.
scenario:
1) computer or user goes awol and power-cycle is required or just actioned anyway with prejudice or by accident or "act of god".
2) fsck is run but there are errors that cannot be corrected, manual intervention is required.
[btw at present, i get an "access denied" avc error on login at
the emergency "type root password or press CONTROL-D to continue"
thing! i've had to enable forced fsck checking!]
2a) ... or a fsck is run in "forced" yes,yes,yes mode, see
/etc/default/rcS.
3) sometimes i get the "file system errors, reboot required" thing.
4) fsck is re-run after the optional reboot, this time it goes to do the other partitions.
5) this is the key: after the fsck, i find that commands like "wc" etc. which are on /usr (/dev/hda5) are "avc" denied access.
6) the system attempts to go into runlevel 2, and pauses for several minutes.
7) usually i get bored after 15 seconds of inactivity, press ctrl-alt-delete and it switches to runlevel 6.
more "avc" messages related to /usr (/dev/hda5) and /var (/dev/hda6) being completely inaccessible.
8) reboot - everything is fine.
now, why would file system errors cause _unrelated_ partitions to not be accessible?
*curious*.
l.
Signature · 14 lines
-- Information I post is with honesty, integrity, and the expectation that you will take full responsibility if acting on the information contained, and that, should you find it to be flawed or even mildly useful, you will act with both honesty and integrity in return - and tell me. -- <a href="http://lkcl.net"> lkcl.net </a> <br /> <a href="mailto:[email protected]"> [email protected] </a> <br /> -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 6 lines · Luke Kenneth Casson Leighton
2) fsck is run but there are errors that cannot be corrected, manual intervention is required.
[btw at present, i get an "access denied" avc error on login at
the emergency "type root password or press CONTROL-D to continue"
thing! i've had to enable forced fsck checking!]
Yes, we need some policy and/or code changes for sulogin in Debian.
Quoted 2 lines
now, why would file system errors cause _unrelated_ partitions to not be accessible?
Without knowing the AVC messages it's impossible to know (a null-modem cable and serial console is good for debugging this). But I guess that the source context is wrong.
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.