> Source: [sk92442](https://support.checkpoint.com/results/sk/sk92442)

# sk92442 - How to check the hard drive integrity in Gaia/SecurePlatform OS with the 'fsck' command

| Property | Value |
|----------|-------|
| Solution ID | sk92442 |
| Date Created | 2013-02-28 |
| Last Modified | 2025-12-04 |
| Technical Level | General |
| Products | Security Gateway, Security Management Server |
| Versions | R81.20, R81.10 (EOS), R81 (EOS) |
| OS | Gaia |

## Solution

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

* Possible corruption of data on the hard drive
* Failure of the hard drive partition (example: message "`UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY`")
* The partition's becoming read-only (check with "`cat /proc/mounts`" command)

**Note:** In kernel 3.10, Check Point supports EXT3 and XFS file systems,  
Before proceeding to the next steps, check the file system type on your computer by running this command in expert mode:  

`# df -T`  

You will find the file system type in */dev/mapper/vg_splat-lv_current* (below the "Type" column).  

**Note**: XFS is a journaling file system. It does a self file system check on each boot. If needed, it repairs and fixes possible disk corruptions automatically.

However, if you wish to check/repair the XFS file system manually, follow the steps below, but mind steps 7-8 accordingly.

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

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

**Be ready to press a key!** If you do not press a key, the system will require a full boot-up and another reboot.

**To check the integrity of a hard drive:**

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. The Check Point Boot Menu now opens.  

4. Select the **`"Start in maintenance mode"`** .  

5. Enter the Expert mode credentials.  
   **Note** : In version R81.20 and above, enter the GRUB password. See [sk118973](https://support.checkpoint.com/results/sk/sk118973).   

6. Unmount the file system:  

   **`# umount -a`**   

7. Check to see what type of file system you have:
   1. `# df -T`
      1. If EXT3, go to next step

      2. If XFS, go to step 9

8. For the EXT3 file system, run the applicable '`fsck`' commands (skip this step if you have a XFS file system):  

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

      **`# fsck -f -n -c -v`**   

   2. If you get an error that the flags -c and -n cannot be used together, remove the -n flag.
   3. Repair automatically:  

      **`# fsck -f -p -c -v`**   

      **Note** : If you detect inconsistencies, '`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`  

   4. In case the issue is with the */dev/mapper/vg_splat-lv_log* filesystem, repair it with the following command:  

      `# fsck -y /dev/mapper/vg_splat-lv_log`  

      **Note:** In this case, the error will usually indicate an issue with orphaned inodes, and the filesystem will not appear in the output of the `'df' `command.   

9. For the XFS file system, run the relevant '`xfs_repair`' commands (skip this step if you have an EXT3 file system):  

   A.Determine which file system you want to check/repair:  

   `# df -T`  

   You must specify the selected file system in the next sub step.  

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

   `# xfs_repair -n /dev/mapper/vg_splat-lv_log`  

   (replace "`/dev/mapper/vg_splat-lv_log`" with the desired file system)  

   C. Repair automatically:  

   `# xfs_repair /dev/mapper/vg_splat-lv_log`  

   (replace "`/dev/mapper/vg_splat-lv_log`" with the desired file system)  

   <br />

   **Important Note** :   
   Running `xfs_repair` on mounted file system (such of lv_current) is not recommended, and may result in unexpected behavior. Make sure you back up the data present in the filesystem before you repair the mounted filesystem.  
   If you wish to proceed on a mounted file system, specify the "-d" flag:  
   `# xfs_repair -d /dev/mapper/vg_splat-lv_log`

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

`# sync ; sync ; reboot`

**Related solutions:**

* [sk102664 - "Console Error: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY." during boot on IP appliance running Gaia OS](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk102664)
* [sk97251 - Using the Check Point Appliance Hardware Diagnostic Tool](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk97251)
* [sk65205 - How to install SecurePlatform / Gaia from a USB device on Check Point appliance and Open Servers using ISOmorphic Tool](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk65205)
* [sk101163 - "Read-only file system" error when trying to edit or remove a file](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk101163)
* [sk106973 - "How to boot IP Appliance running Gaia OS into Maintenance Mode from CLI"](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk106973)

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
