[xfs_repair repair system disk file system damage] mount: /dev/mapper/centos_k3-home: cannot read superblock

foreword


When we use a cloud server or a virtual machine, the xfs file system is damaged, how to repair it?

File system damage in xfs format is a relatively common scenario. It often occurs after events such as forced restart, abnormal shutdown, software conflicts, and accidental deletion of files. The system disk is prone to file system damage. At this time, we need to use xfs_repair to repair it.

xfs_repairxfsA system disk that can repair the format (assuming the partition to be repaired is /dev/sda1)

xfs_repair /dev/sda1

If an error is reported after execution, you can add the L parameter

 

Guess you like

Origin blog.csdn.net/weixin_46152207/article/details/130961823