Get the App
SLTechnology News&Howtos  ›  Servers  › 

CentOS7 delete / boot/initramfsxxx.img and try CD rescue mode repair

Shulou Source: shulou.com Published: 2022-06-03 06:10:51 09月21日 Update

CentOS7 delete / boot/initramfsxxx.img and try CD rescue mode repair

PPT put it here.

Download: https://www.lanzous.com/i5sfqrg password: 85z3

Delete / boot/initramfs-3.10.0-957.el7.x8664.IMG [root @ switch ~] # rm-f / boot/initramfs-3.10.0-957.el7.x8664.IMG II, restart will not work

Insert the CD and enter the repair mode (press esc for VMWare boot)

Fourth, choose to repair the CentOS7 system

V. the election continues.

Press enter

7. Cutting the root

Use mkinitrd repair to create the image file to be loaded into ramdisk

About this command:

[root@linux5 ~] # mkinitrd-- helpusage: mkinitrd [--version] [--help] [- v] [--preload] [--image-version] [--with=] [--nocompress] (ex: mkinitrd / boot/initramfs-3.10.0-957.el7.x86_64.img 3.10.0-957.el7.x86_64) mkinitrd / boot/initramfs- `uname-r`img `uname-r`

9. Execute synchronous sync

Synchronize memory to hard disk

10. Perform exit restart

11. Restart successfully

Tags: CD Mode synchronization attempt Rescue success memory Command password File Image hard disk system Select Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker NVidia macOS Xiaomi