Child pages
  • Checking and repairing file systems
Skip to end of metadata
Go to start of metadata

Table of Contents

Forcing fsck at next reboot

General

  1. Check /etc/fstab; the last column for the FSes you want to check must not be 0 (requirement not confirmed but does no harm).
  2. Ensure that /etc/default/rcS has FSCKFIX set to yes (requirement not confirmed but does no harm).

Checking a single file system

ext2, 3 and 4

Use tune2fs to:

  1. Ensure the max_mounts_count is >0 (option -c to set)
  2. Ensure the number of mounts since the last check is greater than max_mounts_count (option -C to set)

JFS

TBC

Checking all file systems

  1. Create a signal file (it will be removed after fscking has finished):
        echo y > /forcefsck
  • No labels