ericnie

 

CentOS经常出现一些像

Cannot mkdir: Structure needs cleaning

的文件系统错误,而且在正常模式下无法umount来进行修复。很多时候只能在rescue模式下进行。

 

  • 先进入centos的rescue模式

键入e,然后在倒数第二行加入

systemd.unit=rescue.target

然后Ctrl+X进去命令行模式

 

  • 修复文件系统

在/boot下运行

xfs_repair -d  /dev/mapper/cl-root

完成后reboot.

 

分类:

技术点:

相关文章:

  • 2021-11-05
  • 2021-12-07
  • 2021-11-11
  • 2021-11-28
  • 2021-07-10
  • 2021-09-30
  • 2021-11-16
猜你喜欢
  • 2021-06-17
  • 2021-09-05
  • 2021-07-11
  • 2021-04-18
相关资源
相似解决方案