The root partition is the core of every Linux system’s heart. This is the place where the operating system is stored. This is also the place where every single app are installed and important operations are performed. That’s why it’s really important that no data corruption happens to this part of the hard drive.

However, due to the nature of the hardware, data is prone to corruption. There can be any accidental data deletion or other problems that may cause the root partition lose important data, thus the system can’t boot anymore.

If you’re using CentOS/RHEL in your system or server, you can easily recover the data of a corrupted root partition from the “Rescue” mode.

Root partition corruption

If the partition is corrupted, you’ll get the following error:

It indicates that the data in the partition is corrupted. For recovering,

  • Boot the system from the CD/DVD of the same release of the installed system. After the system boots successfully from the ISO, run this command without quotes. It’ll look like this:

  • When asked, enter all the required information like keyboard layout, language and pertinent information for the system. When you’ll be asked for network device enabling, select “No”.
  • When you’ll be prompted to allow rescue environment mounting Oracle Linux installation under “/mnt/sysimage”, directory, select “Skip”.
  • Depending on the LVM usage on the system, run the following commands:

If not using LVM,

If using LVM,

After the process is complete, exit rescue mode, remove the CD/DVD or boot device from the system and reboot the machine normally.

It should work just fine. If the luck is still not in your favor, you may want to re-install the system.

Spread the love
  • 8
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here