How to repair xfs/ext4 filesystem of root/system volume by interrupting initramfs boot in Red Hat Enterprise Linux 7?

Solution Verified - Updated -

Issue

  • The / filesystem is xfs formatted and is corrupted, this isn't letting OS boot appropriately and landing up into dracut# shell.
  • The rescue mode mounting to /mnt/sysimage doesn't help as well, it hangs forever since the mount to /mnt/sysimage goes into D State.
  • The rescue mode directly skip to shell option too doesn't help here since it too tries to mount the / filesystem to /mnt/sysimage somehow.
  • Is there any way to interrupt boot process and repair / filesystem during normal boot?

Environment

  • Red Hat Enterprise Linux 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In