Unable to mount XFS volume

Solution Verified - Updated -

Issue

  • When trying to boot the operating system, the following error message is thrown:

    Failed to mount /sysroot
    
  • When tried to execute xfs_repair /dev/sda2, got the error:

    xfs_repair: error - read only 0 of 512 bytes
    

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • XFS Filesystem

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content