Re: How often should I fsck my ext3 partition?



Mike McCarty wrote:
A related question is how to do it without taking the machine down
uncleanly or fiddling an arcane file somewhere. I've thought about
perhaps doing...

To my understanding it's not a good idea to do a fsck to a mounted filesystem. If your question is 'how to _force_ a fsck without _forcibly_ taking down the machine uncleanly', the answer could be:

shutdown -rF now

this will bring the machine down cleanly, forcing a fsck on reboot.

It still involves rebooting the system, though.

Johannes


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: The ext3 way of journalling
    ... If these reasons are good ones then the correct way to really handle this would be to do regular background scrubbing during runtime; ideally with metadata checksums so that you can actually detect all corruption. ... Leave some extra space in your LVM volume group (enough for 1 snapshot over the time it takes to do an FSCK). ... If it succeeds you can adjust the "last checked" date to the time when the snapshot was taken and if it fails you can schedule an FSCK at next reboot. ...
    (Linux-Kernel)
  • Re: Printer not working after a short circuit
    ... > system will reboot when you leave the shell. ... Give root password for maintenance or type Control-D to ... Run fsck manually. ... > entire file system and prompted me as to whether or not to continue. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Spontaneous unclean reboots
    ... I would still fsck / just to make sure there are no errors, ... I'm going to do that from the Knoppix cd I have, ... Did you run a checksum on the Opera download before installing it? ... It shouldn't have reboot at all, ...
    (alt.os.linux)
  • Re: [SLE] Booting Problem
    ... CONTROL-D will exit from this shell and REBOOT the system. ... except rebooting during the installation. ... 'fsck failed' again. ... writes and reads to every block on the partition. ...
    (SuSE)
  • Re: [SLE] Booting Problem
    ... CONTROL-D will exit from this shell and REBOOT the system. ... except rebooting during the installation. ... 'fsck failed' again. ... writes and reads to every block on the partition. ...
    (SuSE)