In my desktop I installed redhat 7 and after reboot it went to maintenance mode, After entering the password it is not allowing to do a file system scan for root and every time it boots enters to maintenance mode and not allowing to run xfs_repair command which is showing error as it is mounted.
# xfs_repair /dev/mapper/rhel-root
xfs_repair: /dev/mapper/rhel-root contains a mounted and writable filesystem.
fatal error -- couldn't initialize XFS library.
I tried to execute same command on other file systems which are not mounted and it is working fine.
Please help me.