红联Linux门户
Linux帮助

SuSe Linux 9.3专业版5CD合成DVD的方法

发布时间:2006-02-18 11:21:05来源:红联作者:cooc
  在www.google.com上搜索好长时间找到把SuSe 9.3 Professional版5CD合成DVD的方法,已经测试用制作的ISO文件安装系统成功。
  
  制作方法如下(很漫长的过程 ):
  
  1、如果有光盘而没有ISO文件可以在Linux环境下按以下方法制作:
  
  #------------------------------------------------------------------------------
  #echo Please insert disk 1 of 5 and hit any key to continue.
  #read key
  #dd if=/dev/cdrom of=SUSE-9.3-Prof-i386-CD1.iso
  #echo Please insert disk 2 of 5 and hit any key to continue.
  #read key
  #dd if=/dev/cdrom of=SUSE-9.3-Prof-i386-CD2.iso
  #echo Please insert disk 3 of 5 and hit any key to continue.
  #read key
  #dd if=/dev/cdrom of=SUSE-9.3-Prof-i386-CD3.iso
  #echo Please insert disk 4 of 5 and hit any key to continue.
  #read key
  #dd if=/dev/cdrom of=SUSE-9.3-Prof-i386-CD4.iso
  #echo Please insert disk 5 of 5 and hit any key to continue.
  #read key
  #dd if=/dev/cdrom of=SUSE-9.3-Prof-i386-CD5.iso
  #------------------------------------------------------------------------------
  
  2、创建以下几个目录来mount光盘镜像
  
  mkdir CD1 CD2 CD3 CD4 CD5
  
  3、以loopback模式把ISO文件挂到创建的目录上:
  
  mount SUSE-9.3-Prof-i386-CD1.iso CD1 -o loop
  mount SUSE-9.3-Prof-i386-CD2.iso CD2 -o loop
  mount SUSE-9.3-Prof-i386-CD3.iso CD3 -o loop
  mount SUSE-9.3-Prof-i386-CD4.iso CD4 -o loop
  mount SUSE-9.3-Prof-i386-CD5.iso CD5 -o loop
  
  4、执行以下命令:
  
  cp -a CD1/boot .
  mkdir i586 i686 noarch
  
  # Create the NEW MD5SUMS as one file in order to allow SuSE to validate (thus install) all of the files from every CD and not just CD #1
  # For the i586 directory:
  cat CD1/suse/i586/MD5SUMS CD2/suse/i586/MD5SUMS CD3/suse/i586/MD5SUMS CD4/suse/i586/MD5SUMS CD5/suse/i586/MD5SUMS > i586/MD5SUMS
  # For the i686 directory:
  cat CD1/suse/i686/MD5SUMS CD2/suse/i686/MD5SUMS > i686/MD5SUMS
  # For the noarch directory:
  cat CD1/suse/noarch/MD5SUMS CD2/suse/noarch/MD5SUMS CD3/suse/noarch/MD5SUMS CD4/suse/noarch/MD5SUMS CD5/suse/noarch/MD5SUMS > noarch/MD5SUMS
  
  5、创建ISO文件(过程比较长):
  
  mkisofs -o SuSE_93_dvd.iso -b boot/loader/isolinux.bin -c boot/loader/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -l -P SuSE -r -T -V SuSE_9.3 -x CD1/boot -x CD1/suse/i586/MD5SUMS -x CD1/suse/noarch/MD5SUMS -x CD1/suse/i686/MD5SUMS -x CD2/suse/i686/MD5SUMS -x CD2/suse/i586/MD5SUMS -x CD2/suse/noarch/MD5SUMS -x CD3/suse/i586/MD5SUMS -x CD3/suse/noarch/MD5SUMS -x CD4/suse/i586/MD5SUMS -x CD4/suse/noarch/MD5SUMS -x CD5/suse/i586/MD5SUMS -x CD5/suse/noarch/MD5SUMS -graft-points CD1 boot/=boot suse/i586/MD5SUMS=i586/MD5SUMS suse/noarch/MD5SUMS=noarch/MD5SUMS suse/i686/MD5SUMS=i686/MD5SUMS suse/=CD2/suse suse/=CD3/suse suse/=CD4/suse suse/=CD5/suse media.2/=CD2/media.2 media.3/=CD3/media.3 media.4/=CD4/media.4 media.5/=CD5/media.5
  
  6、可以把ISO文件mount到一临时目录下看一下
  
  mkdir dvd
  mount SuSE_93_dvd.iso dvd -o loop
  
  7、现在就可以刻盘了 。
  
  8、注意:以上操作占用的硬盘空间非常大(7G左右),操作前请检查空间是否够用。
文章评论

共有 1 条评论

  1. shale 于 2006-07-22 11:15:20发表:

    不错,支持