Boot and install centos Linux

Source: Internet
Author: User

Some time ago, I installed a system on the cluster and learned how to use a USB flash drive!
Many methods for installing Linux on hard disks on the Internet are provided by windows. You can add a boot menu to modify the boot. ini file of windows to install dual systems. However, it is not applicable when the system crashes or the computer does not have windows. After a long time, I finally got a solution.
Preparation: grub4dos, grubinst, ISO image file, USB flash disk, size depends on the system ISO file.
1. format the USB flash drive into FAT32 format;
2. Decompress grub4dos and copy gldr and menu. lst to the root directory of the USB flash drive. Modify menu. lst and add the following content:
Title install linux
Root (hd0, 0)
Kernel/vmlinuz
Initrd/initrd. img
3. Extract the isolinux folder from the ISO image file and copy initrd. IMG and vmlinuz to the root directory of the USB flash drive.
[Note] If the isolinux folder is included, change menu. lst to kernel/isolinux/vmlinuz, initrd/isolinux/initrd. IMG accordingly.
4. Use grubin and ST to write MBR to the USB flash drive.
5. Start the bios and set the USB flash drive as the first boot disk. After the instance is restarted, a system menu item is displayed. Select "install Linux" to start the installation. When you are prompted to browse the image file, select hard driver and partition it into your USB flash drive.

 

[Note] When the ISO image file is larger than 4 GB, The FAT32 partition cannot be placed, and can be placed in the ext3 format partition.

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.