Centos6 installation-create and install a USB flash drive in the centos environment

Source: Internet
Author: User
Fc16 doesn't know how to break it. it's so fragile. Try centos6. There is an 8 gb usb flash drive on hand, so we are going to use it to install it, so as not to burn the disk. Because the download is amd64-bin-dvd, more than 4G, some of the previous methods are not good AH. The direct dd on the rhel official website is not successful. Also tried w...

 

Fc16 doesn't know how to break it. it's so fragile. Try centos6.

 

There is an 8 gb usb flash drive on hand, so we are going to use it to install it, so as not to burn the disk.

 

Because the download is amd64-bin-dvd, more than 4G, some of the previous methods are not good AH. The direct dd on the rhel official website is not successful. I also tried fc live-usb-create on winxp.

 

I searched for the howto/installfromusbkey according to centos and did not solve the problem. now I look back, it should be because the intermediate operation is incorrect and I don't want to verify it any more.

 

Thanks to the convenience of image search, I chose extlinux. I found the archlinux wiki to have complete steps, but I need to change the directory name to extlinux.

 

The general steps are as follows:

 

1. Fdisk: Format and set the startup flag as needed.

 

2. Mkfs. ext4, extlinux can recognize ext4.

 

3. Mount/dev/sdb1 (this is my device)/mnt

 

4. Mkdir/mnt/extlinux

 

5. Extlinux-I/mnt/extlinux)

 

6. Dd if =/usr/share/syslinux/mbr. bin of =/dev/sdb (there are a bunch of parameters in archlinux wiki -- forget it)

 

7. Copy the files in the isolinux directory in the dvd. mv isolinux. cfg extlinux. conf (ah, it's different from syslinux. cfg)

 

8. Copy the dvd. iso file to the USB flash drive. it has nothing to do with the Directory (no verification, just copy it)

 

9. Create an images directory under the Directory where iso is located, and copy install. img in iso to it (add product. img in rhel to select pkg, but it is not found in iso)

 

10. Reboot, hard disk installation, select install. img ...... to start installation ....

 

A few minutes later, I looked back and went straight to reboot. it was already installed. I really didn't have the chance to choose to install other software packages for me. I still want to install a desktop.

 

Well, look for product. img ....

 

Author ganqi

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.