Reinstall centos in centos

Source: Internet
Author: User

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.

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.