Reinstall centos in centos
What should I do if the system crashes and no optical drive is available. The simplest method is to re-install CentOS with the iso CD file in cenots.
Attach a cd
Mount-o loop centos. iso/mnt/
Copy the Startup File
Cp/mnt/isolinux/boot/-
Edit and add grub. conf:
Title centos_setup root (hd0, 0) // determine the partition where your/boot is located, my/boot uses a separate partition kernel/isolinux/vmlinuz ro root =/isolinux. bin // if your/boot is not a separate partition, write/boot/isolinux/vmlinuz and/boot/isolinux. bin initrd/isolinux/initrd. img
Make sure your/partition has no important information to back up. Note that I am talking about/partition, not/directory !!!
Reboot
In grub, select "centos_setup". If there is no problem with the above operations, you will see the text installation interface. First, you will see the language selection: You must select the default English, otherwise... I won't talk about it anymore.