This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I fsck manually

I get an error message when rebooting about some root file structure being corrupted.  It boots up too fast to read the message and I haven't had a chance to look through the boot logs to find out which directory is borked.  I ran fsck at the prompt and it asked if I wanted to continue and irreversible damage could happen if I ran fsck on a mounted volume so I pressed N for no.  I tried booting into the repair or safe mode but there is no repair or safe mode, it goes right back to the selection menu.

How do I run fsck to correct this corruption?  Will restoring from a backup clean things up?


This thread was automatically locked due to age.
  • I get an error message when rebooting about some root file structure being corrupted.  It boots up too fast to read the message and I haven't had a chance to look through the boot logs to find out which directory is borked.  I ran fsck at the prompt and it asked if I wanted to continue and irreversible damage could happen if I ran fsck on a mounted volume so I pressed N for no.  I tried booting into the repair or safe mode but there is no repair or safe mode, it goes right back to the selection menu.

    How do I run fsck to correct this corruption?  Will restoring from a backup clean things up?


    If you are comfortable at the unix command prompt or at the least a careful person. Enable shell access from the management/system settings preferences.

    Then  from a unix system or a putty

    $ssh ipaddress.of.astro.box -l loginuser -p sshport_number
    $ sudo -i
    password: rootpassword
    # chdsk -options as required.
  • There is no chdsk in linux.  It's called e2fsck
  • Your can do one of the following:

    1. Log into the console/shell as root, and run the command `touch /forcefsck` and reboot.  All partitions will run a full fsck during boot.
    2. Backup your configuration, reinstall from scratch and restore your backup.
    3. Boot system from any recent Linux distribution rescue CD or live CD (many install disks these days have a rescue mode or live mode built in) and use that to manually fsck all the partitions on the drives.