xfs_info fails when mounted device name is specified as argument in RHEL 8

Solution Verified - Updated -

Issue

xfs_info fails with "contains a mounted filesystem" error when a mounted device name is specified as an argument.

$ xfs_info /dev/mapper/rhel-root 
xfs_info: /dev/mapper/rhel-root contains a mounted filesystem

fatal error -- couldn't initialize XFS library

Environment

  • Red Hat Enterprise Linux 8
  • xfsprogs-4.18.0-3.el8

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