rhel cd镜像 制作 dvd

Introduction

This process allows one to create a DVD ISO image using the CD ISO's available from the Computer Science server.

Credit

This process was derived from the instructions for Red Hat 8 written by Mauriat Miranda at the MJMWIRED websitehere.

Notes

  • You will need all of the CD ISO images for the version of RHEL you want to create a Installation DVD ISO image for.
  • Make sure you have enough disk space for the ISO image – here are the approximate sizes for each DVD image:
    • 3.4G rhel-5-client-i386-dvd.iso
    • 4.0G rhel-5-client-x86_64-dvd.iso
    • 2.7G rhel-5-server-i386-dvd.iso
    • 3.2G rhel-5-server-x86_64-dvd.iso

Red Hat Enterprise 5 - i386 Workstation

  1. Create a working directory and switch to the directory.

    mkdir rhel5client-i386
    cd rhel5client-i386

  2. Create directories to mount each CD ISO to.

    mkdir {1,2,3,4,5,6}

  3. Mount each CD ISO (... is the path to each iso image)

    mount -o loop,ro .../rhel-5-client-i386-disc1.iso 1/
    mount -o loop,ro .../rhel-5-client-i386-disc2.iso 2/
    mount -o loop,ro .../rhel-5-client-i386-disc3.iso 3/
    mount -o loop,ro .../rhel-5-client-i386-disc4.iso 4/
    mount -o loop,ro .../rhel-5-client-i386-disc5.iso 5/
    mount -o loop,ro .../rhel-5-client-i386-disc6.iso 6/

  4. Copy isolinux and .discinfo from the first CD.

    cp -r 1/isolinux 1/.discinfo .

  5. Edit the .discinfo file and change the fourth line from '1' to '1,2,3,4,5,6'

    vim .discinfo

  6. Make the ISO image

    mkisofs -o ../rhel-5-client-i386-dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
    -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -x 1/.discinfo -x 1/isolinux -graft-points 1 \
    .discinfo=.discinfo isolinux/=isolinux \
    Client/=2/Client/ VT/=2/VT/ Workstation/=2/Workstation/ \
    Client/=3/Client/ VT/=3/VT/ Workstation/=3/Workstation/ \
    Client/=4/Client/ VT/=4/VT/ Workstation/=4/Workstation/ \
    Client/=5/Client/ VT/=5/VT/ Workstation/=5/Workstation/ \
    Client/=6/Client/ VT/=6/VT/ Workstation/=6/Workstation/

  7. (optional, but required if you want the 'media' validation check to work) Insert the MD5 sum onto the image for validation using 'implantisomd5' from the Red Hat Anaconda rpm package.

    implantisomd5 rhel-5-client-i386-dvd.iso

Red Hat Enterprise 5 - x86_64 Workstation

  1. Create a working directory and switch to the directory.

    mkdir rhel5client
    cd rhel5client

  2. Create directories to mount each CD ISO to.

    mkdir {1,2,3,4,5,6,7}

  3. Mount each CD ISO (... is the path to each iso image)

    mount -o loop,ro .../rhel-5-client-x86_64-disc1.iso 1/
    mount -o loop,ro .../rhel-5-client-x86_64-disc2.iso 2/
    mount -o loop,ro .../rhel-5-client-x86_64-disc3.iso 3/
    mount -o loop,ro .../rhel-5-client-x86_64-disc4.iso 4/
    mount -o loop,ro .../rhel-5-client-x86_64-disc5.iso 5/
    mount -o loop,ro .../rhel-5-client-x86_64-disc6.iso 6/
    mount -o loop,ro .../rhel-5-client-x86_64-disc7.iso 7/

  4. Copy isolinux and .discinfo from the first CD.

    cp -r 1/isolinux 1/.discinfo .

  5. Edit the .discinfo file and change the fourth line from '1' to '1,2,3,4,5,6,7'

    vim .discinfo

  6. Make the ISO image

    mkisofs -o ../rhel-5-client-x86_64-dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
    -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -x 1/.discinfo -x 1/isolinux -graft-points 1 \
    .discinfo=.discinfo isolinux/=isolinux \
    Client/=2/Client/ VT/=2/VT/ Workstation/=2/Workstation/ \
    Client/=3/Client/ VT/=3/VT/ Workstation/=3/Workstation/ \
    Client/=4/Client/ VT/=4/VT/ Workstation/=4/Workstation/ \
    Client/=5/Client/ VT/=5/VT/ Workstation/=5/Workstation/ \
    Client/=6/Client/ VT/=6/VT/ Workstation/=6/Workstation/ \
    Client/=7/Client/ VT/=7/VT/ Workstation/=7/Workstation/

  7. (optional, but required if you want the 'media' validation check to work) Insert the MD5 sum onto the image for validation using 'implantisomd5' from the Red Hat Anaconda rpm package.

    implantisomd5 rhel-5-client-x86_64-dvd.iso

Red Hat Enterprise 5 - i386 Server

  1. Create a working directory and switch to the directory.

    mkdir rhel5server-i386
    cd rhel5server-i386

  2. Create directories to mount each CD ISO to.

    mkdir {1,2,3,4,5}

  3. Mount each CD ISO (... is the path to each iso image)

    mount -o loop,ro .../rhel-5-server-i386-disc1.iso 1/
    mount -o loop,ro .../rhel-5-server-i386-disc2.iso 2/
    mount -o loop,ro .../rhel-5-server-i386-disc3.iso 3/
    mount -o loop,ro .../rhel-5-server-i386-disc4.iso 4/
    mount -o loop,ro .../rhel-5-server-i386-disc5.iso 5/

  4. Copy isolinux and .discinfo from the first CD.

    cp -r 1/isolinux 1/.discinfo .

  5. Edit the .discinfo file and change the fourth line from '1' to '1,2,3,4,5'

    vim .discinfo

  6. Make the ISO image

    mkisofs -o ../rhel-5-server-i386-dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
    -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -x 1/.discinfo -x 1/isolinux -graft-points 1 \
    .discinfo=.discinfo isolinux/=isolinux \
    Cluster/=2/Cluster/ ClusterStorage/=2/ClusterStorage/ Server/=2/Server/ VT/=2/VT/ \
    Cluster/=3/Cluster/ ClusterStorage/=3/ClusterStorage/ Server/=3/Server/ VT/=3/VT/ \
    Cluster/=4/Cluster/ ClusterStorage/=4/ClusterStorage/ Server/=4/Server/ VT/=4/VT/ \
    Cluster/=5/Cluster/ ClusterStorage/=5/ClusterStorage/ Server/=5/Server/ VT/=5/VT/

  7. (optional, but required if you want the 'media' validation check to work) Insert the MD5 sum onto the image for validation using 'implantisomd5' from the Red Hat Anaconda rpm package.

    implantisomd5 rhel-5-server-i386-dvd.iso

Red Hat Enterprise 5 - x86_64 Server

  1. Create a working directory and switch to the directory.

    mkdir rhel5server
    cd rhel5server

  2. Create directories to mount each CD ISO to.

    mkdir {1,2,3,4,5,6}

  3. Mount each CD ISO (... is the path to each iso image)

    mount -o loop,ro .../rhel-5-server-x86_64-disc1.iso 1/
    mount -o loop,ro .../rhel-5-server-x86_64-disc2.iso 2/
    mount -o loop,ro .../rhel-5-server-x86_64-disc3.iso 3/
    mount -o loop,ro .../rhel-5-server-x86_64-disc4.iso 4/
    mount -o loop,ro .../rhel-5-server-x86_64-disc5.iso 5/
    mount -o loop,ro .../rhel-5-server-x86_64-disc6.iso 6/

  4. Copy isolinux and .discinfo from the first CD.

    cp -r 1/isolinux 1/.discinfo .

  5. Edit the .discinfo file and change the fourth line from '1' to '1,2,3,4,5,6'

    vim .discinfo

  6. Make the ISO image

    mkisofs -o ../rhel-5-server-x86_64-dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
    -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -x 1/.discinfo -x 1/isolinux -graft-points 1 \
    .discinfo=.discinfo isolinux/=isolinux \
    Cluster/=2/Cluster/ ClusterStorage/=2/ClusterStorage/ Server/=2/Server/ VT/=2/VT/ \
    Cluster/=3/Cluster/ ClusterStorage/=3/ClusterStorage/ Server/=3/Server/ VT/=3/VT/ \
    Cluster/=4/Cluster/ ClusterStorage/=4/ClusterStorage/ Server/=4/Server/ VT/=4/VT/ \
    Cluster/=5/Cluster/ ClusterStorage/=5/ClusterStorage/ Server/=5/Server/ VT/=5/VT/ \
    Cluster/=6/Cluster/ ClusterStorage/=6/ClusterStorage/ Server/=6/Server/ VT/=6/VT/

  7. (optional, but required if you want the 'media' validation check to work) Insert the MD5 sum onto the image for validation using 'implantisomd5' from the Red Hat Anaconda rpm package.

    implantisomd5 rhel-5-server-x86_64-dvd.iso

Labels:
None

来自:

https://confluence.cornell.edu/display/NETADMINWIKI/RHEL5+DVD+ISO+HOWTO

参考:

http://colder.blog.163.com/blog/static/173946618201142992333846/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值