How to create a fully automatic USB Flash Drive for centos6.2

Source: Internet
Author: User
Centos6.2 system automatic installation of U disk preparation 1 preparation a & gt; centos system Image: CentOS-6.2-x86_64-bin-DVD.isob & gt; 8GU disk a www.2cto. comc & gt; centso5.0 system vesamenu. c32 file d & gt; windows system...
Centos 6.2 automatic installation of U disk production 1 preparation work a> centos system Image: CentOS-6.2-x86_64-bin-DVD.iso B> 8G U disk a www.2cto.com c> centso5.0 system vesamenu. c32 file d> the automatic configuration file ks_centos.cfg 2 of syslinux.exe e> centos used in Windows system format the USB flash drive. the USB flash drive is divided into two areas: vfat of MB and other ext2 sudo fdisk/dev/sdb sudo mkfs. vfat/dev/sdb1 sudo mkfs. ext2/dev/sdb2 3 Copy File a> sudo mount/dev/sdb1/mnt/sdb1 sudo mount/dev/sdb2/dev/sdb2 sudo mount-o loop CentOS-6.2-x86_64-bin-DVD.iso/mnt/cen b> sudo cp-r/men/cen/images/mnt/sdbsudo cp CentOS-6.2-x86_64-bin-DVD.iso/mnt/sdb2 www.2cto.com c> sudo cp-r/mnt/cen/isolinux/mnt/sdb1 /syslinux sudo mv/mnt/sdb1/syslinux/isolinux. cfg/mnt/sdb1/syslinux. cfg sudo cp vesamenu. c32/mnt/sdb1/syslinux/(overwrite centos6.2 vesamenu. c32 file, otherwise it will be stuck on the press the enter interface) d> sudo cp ks_centos/mnt/sdb1/e> sudo cp syslinux.exe/mnt/sdb1 4 edit configuration a> vim/mnt/sdb1/syslinux. cfg label linux menu label ^ Install or upgrade an existing system menu default kernel vmlinuz append ks = hd: sda1:/ks_centos.cfg initrd = initrd. img B> go to the USB flash drive directory I syslinux.exe-m-a I in windos: generate the system file ldlinux. sys5 preparation complete attachment: content of the ks_centos file vim ks_cntos [plain] install www.2cto.com text # url -- url = ftp://192.168.68.254/centos Harddrive -- partition = sda2 -- dir = lang en_US.UTF-8 keyboard us network -- device eth0 -- bootproto dhcp rootpw -- iscrypted $1 $ JNve6BUI $ Ivm. export firewall -- disabled authconfig -- enableshadow -- enablemd5 selinux -- disabled timezone -- utc Asia/Shanghai bootloader -- location = mbr -- driveorder = sdb -- append = "rhgb crashkernel = auto quiet" # The following is the partition information you requested # Note that any partitions you deleted are not expressed www.2cto.com # here so unless you clear all partitions first, this is # not guaranteed to work clearpart -- all -- drives = sdb -- initlabel part/boot -- fstype ext3 -- size = 100 -- ondisk = sdb part swap -- size = 256 -- ondisk = sdb part/-- fstype ext3 -- size = 1 -- grow -- asprimary # volgroup VolGroup00 -- pesize = 32768 pv.2 # logvol swap -- fstype swap -- name = LogVol01 -- vgname = VolGroup00 -- size = 1024 -- grow -- maxsize = 2048 # logvol/-- fstype ext3 -- name = LogVol00 -- vgname = VolGroup00 -- size = 1024 -- grow % packages openssh-server vim % post -- interpreter =/bin/bash www.2cto.com rm-rf/etc/yum. repos. d/* echo '[centos6] name = centos6 baseurl = ftp://192.168.68.254/centos Enabled = 1 gpgcheck = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 '>/Etc/yum. repos. d/centos6.repo % end author kakane

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.