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
  • XFS Filesystem

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.