设为首页 友情链接
在线留言 发表文章
加入收藏 广告联系

刺猬首页

| 专案技术 | 网络技术 | 图形图象 | 网络编程 | 网页设计 | 操作系统 | 服务器 | 技术白皮书 | 在线实验室 | 刺猬论坛 |
小说专版  | 数据库 | 设计赏析 | 存储频道 | 网络安全 | 私服架设 |  Solaris | 网站评估 | PC维护技巧 | 下载中心 | 博 客 |
专   题: | Linux | java | cisco | 防病毒 | 刀片 | SOA | iscsi | ASP.NET | SQL | Oracle |
您现在的位置: IT公社 IT community >> Linux专题 >> Linux应用技巧 >> 教程正文 用户登录 新用户注册
专 题 栏 目
最 新 热 门
最 新 推 荐
相 关 文 章
在Debian操作系统下如何…
如何在Linux系统使用红外…
如何手动设置修改X-Wind…
如何在Linux/FreeBSD下玩…
如何利用Video4Linux获取…
如何用cdma 1x手机连接L…
解决fc5 linux系统通过学…
如何在Linux上建立DNS服…
Firewalking如何探测访问…
Linux网络环境下如何玩转…
  如何通过redhat CDROM制作DVD ROM         
如何通过redhat CDROM制作DVD ROM
 

英文的,harding整理来的,知道许多人要,谁有兴趣就翻译成中文,别忘记给我投放回来,谢谢啊:Linux联盟--xxlinux.com

Example :How to make your own RedHat 8.0 DVD from the CD ISO images

Red Hat has finally created a DVD version of their distribution for US
consumers. (They've had one in Europe for a while, I understand.)
For 8.0, though, it seems that you have to buy RedHat 8.0 Professional
to get the DVD, and RedHat is not presently offering an ISO image of
the DVD for download.

After reading some of the anaconda source code, I have figured out how
you can make your own DVD from the CD ISO images. I've done this,
written it to a DVD+RW disc, had it pass its Media check, and
successfully installed from it.

The idea is simple, which is a testament to the flexibility of Red
Hat's installation system. There's a file on the root of each CD
called .discinfo that contains information including which discs'
contents are represented. The CDs each contain only a single number
here, but the installation software will accept a comma-separated list
of numbers. The sequence of commands below will create an ISO image
that consists of the combined contents of the five discs + the
documentation disc (in a docs subdirectory) and is bootable and
suitable for being installed from. If you don't care about docs, omit
the docs/=Psyche-docs argument, and don't bother with the docs ISO.
If you don't care about sources, omit the SRPMS/= arguments and
dispense with discs 4 and 5.

These instructions require you to have enough disk space for the
resulting ISO image, but if you have a DVD burner and don't care about
installing the media checksum so that you can test the media from
install (not really that important if you have verified the checksums
of the original images, unless you're concerned about errors resulting
from the actual DVD creation process itself), you can pipe the output
of mkisofs directly to your burning software and not worry about the
intermediate disk space.

So here are the steps. These steps create a DVD image that is usable
from a Unix system. Add the -J and -T flags to the mkisofs command if
you want something that you can read from Windows as well. Add
-V "Label" if you want to create a volume label.

1. Go to a place on your drive with about 3.5 GB free. This is
  needed for the final ISO image only. You'll need a 2.4 kernel to
  create a file > 2 GB. If you're running Red Hat, This works on a
  7.1 system or newer.

2. Create directories on which to mount the ISO images using loop
  device mounts:

  mkdir Psyche-i386-disc{1,2,3,4,5} Psyche-docs

3. Mount the ISO images using a loop device mount:

  mount -o ro,loop .../Psyche-i386-disc1.iso Psyche-i386-disc1
  mount -o ro,loop .../Psyche-i386-disc2.iso Psyche-i386-disc2
  # etc. -- repeat for the remaining discs that you want
  # Replace ... with the path to your ISO images.

4. Copy the isolinux directory and the .discinfo from disc1 to the
  current directory:

  cp -a Psyche-i386-disc1/isolinux Psyche-i386-disc1/.discinfo .

5. Edit the .discinfo file, replacing the fourth line with 1,2,3,4,5
  if you are creating an image with all five discs or with 1,2,3 if
  you are just using the three install discs.

6. Create the iso image. I'm separating this mkisofs command into
  multiple lines ending with \ for clarity. You can type it that
  way or as a long command. I explain this command at the end.

  mkisofs -o Psyche-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 Psyche-i386-disc1/.discinfo -x Psyche-i386-disc1/isolinux \
    -graft-points Psyche-i386-disc1 .discinfo=.discinfo isolinux/=isolinux \
    RedHat/=Psyche-i386-disc2/RedHat RedHat/=Psyche-i386-disc3/RedHat \
    SRPMS/=Psyche-i386-disc3/SRPMS SRPMS/=Psyche-i386-disc4/SRPMS \
    SRPMS/=Psyche-i386-disc5/SRPMS docs/=Psyche-docs

7. (Optional) If you want to create a media checksum for the
  installation software to look at when you do a media test during
  install, then following these additional steps:

  a. Install the anaconda source rpm located on disc5 and cd /usr/src/redhat

  b. Comment out the BuildPreReq line in SPECS/anaconda.spec

  c. Run rpmbuild -bp SPECS/anaconda.spec

  d. Go to BUILD/anaconda-8.0/isomd5sum

  e. Run "make"

  f. Run ./implantisomd5 .../Psyche-i386-dvd.iso (where ... is
    replaced with the path to your new ISO image). This step
    will take several minutes and not provide any feedback while
    it runs.

Now burn the resulting ISO image to a DVD.

Here's the mkisofs command explained:

  # Write the output to Psyche-i386-dvd.iso
  mkisofs -o Psyche-i386-dvd.iso \

    # Set up the DVD to be bootable using an El Torito boot image.
    # This comes from the RELEASE_NOTES file on disc 1.
    -b isolinux/isolinux.bin -c isolinux/boot.cat \
    -no-emul-boot -boot-load-size 4 -boot-info-table \

    # Use Rock ridge extensions (to support long file names, etc.).
    # Exclude all TRANS.TBL files on the original disc. If you want
    # to access this disc from Windows, add -J to create Joliet
    # extensions and -T to create new TRANS.TBL files in place of
    # the ones you're omitting.
    -R -m TRANS.TBL \

    # Omit the .discinfo and isolinux files from disc1
    -x Psyche-i386-disc1/.discinfo -x Psyche-i386-disc1/isolinux \

    # Use Psyche-i386-disc1 (minus above exclusions) as the root.
    # Graft the .discinfo and isolinux directories from the current
    # directory to .discinfo and isolinux on the new disc. Also
    # graft in the RedHat and SRPMS directories from the remaining
    # discs. Include the entire contents of the docs disc in the
    # docs subdirectory.
    -graft-points Psyche-i386-disc1 .discinfo=.discinfo isolinux/=isolinux \
    RedHat/=Psyche-i386-disc2/RedHat RedHat/=Psyche-i386-disc3/RedHat \
    SRPMS/=Psyche-i386-disc3/SRPMS SRPMS/=Psyche-i386-disc4/SRPMS \
    SRPMS/=Psyche-i386-disc5/SRPMS docs/=Psyche-docs

Linux联盟收集整理

频道声明:本频道的文章除部分特别声明禁止转载的专稿外,可以自由转载.但请务必注明出出处和原始作者 文章版权归本频道与文章作者所有.对于被频道转载文章的个人和网站,我们表示深深的谢意。

原始作者:佚名 录入时间:2007-1-3 3:45:54
信息来源:不详 投稿信箱:itqoo@126.com
教程录入:itqoo    责任编辑:itqoo 
  • 上一个教程:

  • 下一个教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)
    - 关于我们 - 合作伙伴 - 友情链接 - 广告刊登 - 投稿热线 - 在线留言版权声明联系方式 -
    IT公社版权所有 粤ICP备05127012号
    Copyrigh@2005-2006 itqoo.com.Inc All Rights Reserved  推荐分辨率 1024*768
    联系站长:E-Mail:itqoo@126.com     MSN:urchincc@hotmail.com    QQ:点击这里给我发消息
    特别感谢:亿太网络提供空间支持