Support Center > Search Results > SecureKnowledge Details
How to check the hard drive integrity in Gaia/SecurePlatform OS with the 'fsck' command Technical Level
Solution

Check the hard drive / partition integrity if you see an error that indicates any of the following:

  • Possible corruption of data on the hard drive
  • Failure of the hard drive / partition (e.g., message "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY"),
  • The partition's becoming read-only (check with "cat /proc/mounts" command)

Note: During the boot process, you will see a screen with the following message:

Press any key to see the boot menu [Booting in 5 seconds]

Be ready to hit a key! Otherwise, the system will require a full boot-up and another reboot.

 

To check the integrity of a hard drive in the Gaia/SecurePlatform OS:

  1. Connect to the machine over console (serial).

  2. Reboot the machine.

  3. Press a key on the "Press any key to see the boot menu" screen. This should open the Check Point Boot Menu.

  4. Choose the "Start in maintenance mode".

  5. Enter the Expert mode credentials.

  6. Unmount the file system:

    # umount -a

  7. Run the relevant 'fsck' commands:

    1. Check, update bad block list, but do NOT repair:

      # fsck -f -n -c -v

    2. Repair automatically:

      # fsck -f -p -C -v

      Note: If inconsistencies are detected, 'fsck' may require the user to remove the '-p' flag from the syntax. In such a case, use the 'fsck -f -y' command instead to assume 'yes' to all questions.

                    # fsck -f -C -v -y

8. Synchronize data on disk with memory and reboot the machine:

      # sync ; sync ; reboot

 

Related solutions:

Give us Feedback
Please rate this document
[1=Worst,5=Best]
Comment