centos 6.2系統全自動安裝u盤的製作

來源:互聯網
上載者:User


centos 6.2系統全自動安裝u盤的製作 1 準備工作    a> centos 系統鏡像 : CentOS-6.2-x86_64-bin-DVD.iso     b> 8G 隨身碟一個  www.2cto.com      c> centso5.0系統的vesamenu.c32 檔案     d> windows系統下使用的syslinux.exe      e> centos的自動設定檔案ks_centos.cfg 2 格式化u盤,將u盤分為兩個區 --500M的vfat  和 其他的ext2   sudo fdisk  /dev/sdb    sudo mkfs.vfat  /dev/sdb1    sudo mkfs.ext2 /dev/sdb2 3 複製檔案   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/sdb2          sudo 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/syslinux.cfg          sudo cp vesamenu.c32  /mnt/sdb1/syslinux/     (覆蓋centos6.2的vesamenu.c32檔案,否則卡在 press the enter 介面)     d> sudo cp ks_centos  /mnt/sdb1/     e> sudo cp syslinux.exe  /mnt/sdb1 4  編輯配置    a>  vim /mnt/sdb1/syslinux/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> 在windos 系統下 進入u盤目錄I            syslinux.exe -m -a  I:            產生系統檔案ldlinux.sys5  製作完成     附:  ks_centos 檔案內容            vim  ks_cnetos[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.MDR3QnxIn8yeZQD0h0      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     作者 kakane

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.