Centos6.2 installation from USB flash drive

Source: Internet
Author: User
Centos6.2 from the U disk installation 0. prepare an 8 gb u disk, prepare centos iso, I use the iso of the dvd, can be from the camera...
Centos 6.2 0. prepare an 8 gb u disk, prepare centos iso, I use a dvd iso, can download from http://mirrors.ta139.com/centos/6/isos/x86_64/ 1. syslinux must be installed for the system that creates a USB flash drive. my version is 3.11.
2. the USB flash Disk is partitioned into www.2cto.com fdisk-l/dev/sdb Disk/dev/sdb: 8000 MB, 8000110592 bytes 255 heads, 63 sectors/track, 972 cylinders Units = cylinders of 16065*512 = 8225280 bytes Device Boot Start End Blocks Id System 8. /dev/sdb1*1 65 522081 B W95 FAT32/dev/sdb2 66 972 7285477 + c W95 FAT32 (LBA) format two partitions mkfs respectively. vfat/dev/sdb1 mkfs. ext2/dev/sdb2 mount DATA partition, mount the first iso, copy some DATA to the DATA partition, and then copy the iso to the DATA partition, then umount DATA partition mkdir-p/media/iso/media/DATA mount/dev/sdb2/media/DATA mount-o loop/path/to/CentOS-6.0-x86_64-bin-DVD1.iso/media/iso/cp -rv/media/iso/images/media/DATA cp-rv/path/to/CentOS-6.0-x86_64-bin-DVD *. iso/media/DATA umount/media/DATA overwrite the mbr of the USB flash disk. install syslinux and start the required kernel file www.2cto.com dd if =/usr/lib/syslinux/mbr. bin of =/dev/sdb syslinux-s/dev/sdb1 mkdir-p/media/BOOT 4. mount/dev/sdb1/media/BOOT
Cp/media/iso/isolinux. bin/media/BOOT/syslinux. bin cp/media/iso/isolinux. cfg/media/BOOT/syslinux. cfg cp/media/iso/isolinux/vmlinuz/media/BOOT cp/media/iso/isolinux/initrd. img/media/BOOT edit/media/BOOT/syslinux. cfg default CentOS prompt 0 label CentOS kernel vmlinuz append initrd = initrd. img method = hd: sdb2:/The final umount BOOT partition and iso have been tested. OK

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.