Centos8系统文件丢失,无法正常启动修改办法

背景

故障说明

  • 电脑或服务器突然断电导致系统文件丢失或损坏需进行修复。

image-20220802100626203

准备工具

  • VMware® Workstation 16 Pro
  • 镜像CentOS-8.5.2111-x86_64-dvd1.iso

修复步骤

  • 添加光盘进行

    image-20220802101355666
  • 系统开机按Esc键,出现启动菜单,选择第3项

    image-20220802101516712

  • 选择:Troubleshooting

    image-20220802101625660

  • 选择:Rescue a Centos Linux system

    image-20220802101723571

  • 选择:1) Continue

    image-20220802102109402
  • enter回车

    image-20220802103759052

  • centos8系统根目录在 /mnt/sysroot目录下,cd /mnt/sysroot


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!