Record a CentOS8 system reinstallation brought by rm -rf /*-Dell R750

background

When deleting all the files in a temporary folder, I originally wanted it, but when rm -rf *my head was dizzy, I rm -rf /*typed it up! I started to delete files in an instant,
Insert picture description here
but it was too late to quickly Ctrl+C. Most of the files in the home directory were deleted, and SSH could not be connected. Because the data was not too much, I planned to go to the computer room to reinstall the server.

Download IOS and burn to U disk

Insert picture description here

Start installing CentOS8 on Dell R750

  • It’s worth noting that, just before starting the installation, it is best to use the original system to clear a part of the disk and reserve space for the system to install
  • Reference blog 1

Insert picture description here

(1) Confirm whether the CD-ROM drive can be recognized in F2/SYSTEM BIOS/BOOT SETTING/BOOT SEQUENCE, and the U disk boot item is activated

  • Press F2 continuously when booting to enter the directory F2/SYSTEM BIOS/BOOT SETTING/BOOT SEQUENCEInsert picture description here

(2) Press F11 to select boot from CD-ROM or U disk

操作:F2/BootSettting/One short BIOS Boot Menu

Insert picture description here

Insert picture description here

Insert picture description here
Click to run for a while and enter the installation interface

(3) Confirm that the installation ISO file comes from your own USB flash drive, otherwise there will be a problem of not being able to find the file TimeOut!

Insert picture description here

  • Move to the second item test &Install
  • Press the Tap key (some e-keys) to edit the command line:
vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet

//将上面的命令改成:
vmlinuz initrd=initrd.img linux dd quiet
  • Check your hard disk information in the list displayed by ctrl+x, you can clearly know which one is your U disk (generally the several formats displayed as NTFS are the drive letter of your computer, and the other one is you U disk, 记下你的U盘的盘符名字 我的就是sdc4)
    Insert picture description here

  • Use ctrl+alt+del to restart the computer, repeat the above steps this time

vmlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 quiet

//改成
vmlinuz initrd=initrd.img inst.stage2=hd:/dev/sdc4(刚才记住的U盘盘符) quiet
  • ctrl+x wait for the installer to start, and install CentOS

(4) Configuration of the installation interface

  • Refer to Blog 1
    After the above operations, we have entered the visual operation interface, and only need a simple configuration to complete the installation!

Insert picture description here
Insert picture description here

Insert picture description here
Insert picture description here

Finished with flowers!
Insert picture description here

Prevent rm -rf /*

Reference blog

Guess you like

Origin blog.csdn.net/weixin_44307065/article/details/107965919