fsck without password?
Todd Lyons
tlyons at ivenue.com
Thu Apr 26 09:53:55 CDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Apr 25, 2007 at 02:52:47PM -0400, David Hubbard wrote:
>Is there a way to set a server, maybe via fstab or
>boot parameter, to let it do an fsck after a dirty
>shutdown without needing the root password and
>only stopping if something that can't be auto-repaired
>requires acknowledgement?
Assuming you use RHEL or CentOS (you didn't state, so I'm guessing):
1) Force a fsck no matter what:
touch /forcefsck
2) Force a fsck only if appears to "shut down uncleanly":
echo 'AUTOFSCK_DEF_CHECK=yes' >> /etc/sysconfig/autofsck
FWIW, I simply opened up /etc/rc.sysinit and did a search for fsck and
looked at the script to see what variables/files do what.
- --
Regards... Todd
we're off on the usual strange tangents. next will be whether
it is ethical to walk in your neighbor's open house if they're
running ipv6:-). --Randy Bush
Linux kernel 2.6.17-6mdv 4 users, load average: 0.13, 0.08, 0.08
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFGML0DY2VBGxIDMLwRAun4AJ486Xf4b6h+Qoxt54ScBW8dn4SpDwCfZ8rc
dU4Kzfv+xQEmJy4P/6VIM0w=
=Qvyz
-----END PGP SIGNATURE-----
More information about the Linux-PowerEdge
mailing list