Reinstall centos in centos

Source: Internet
Author: User
What should I do if the system crashes and no optical drive is available. The simplest way to think of it is to re-install the CentOS Mount disc mount-oloopcentos.iso/mnt/copy the boot file cp/mnt/isolinux/boot/-a in cenots with the iso disc file to add grub. conf content: titlecentos_setupr

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/ -a

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.