您的位置:首页 > 运维架构 > Linux

用mkisofs制作可启动的linux光盘

2006-08-23 12:10 369 查看
在我的另一篇文章“制作一张最小系统的gentoo安装光盘”里介绍了,可以在现有iso文件基础上添加进自己想要的包,从而无网络安装最小linxu系统。

这篇文章介绍怎么把这张光盘制作出来。下面的英文是我的制作文档记录,我对他做几点解释。

1. mkisofs在windows和unix系统下都可以运行,而且方式是一样的,下面有常用参数的介绍。制作isolinux的iso一定要按着下面的参数来做,否则不成功。

2. 我是在gentoo的基础上制作的这张光盘,你可以完全制作自己的img,自己的启动内核,自己的软件包,把他们加到光盘里。但是那个工作量可不小啊。

how to make a bootable CD?

You must have the following things:

1. the boot img or bin file, my is isolinux.bin
2. mkisofs(unix or windows platform).download URL:http://www.geoshock.com/cdrtools/
3. any package you want, I want the kernel and common softwares.

step to make a iso file can boot:
1. install mkisofs
2. mkdir one directory, such as "gentoo"
3. copy the boot img file and other packages into "gentoo" directory. My boot img file is in the isolinux directory and named isolinux.bin.
my directory tree, sample as the following:
gentoo
isolinux
isolinux.bin
boot.cat
f1.msg
stage
stage1.2006.0-x86.tar.bz2
snapshot
portage-2.0.6.tar.bz2
kernel
linux-2.4.33.tar.bz2
linxu-2.6.15.tar.bz2
readme.txt
mkisofs.txt
4. make iso file using command as following:
mkisofs -o gentoo.iso -J -r -v -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V "Gentoo linux x86" gentoo

-o the iso file you want
gentoo the directories you want add to iso file
-J Joliet
-r Rock Ridge
-b the boot image file
-no-emul-boot the boot image file do not need the standard size
other para is necessary for the isolinux bootable CD.
Before run the command, please cd into "gentoo"'s parent directory, otherwise,you must indicate the absolute path of the file in the command.

haha, the last step is burn the iso to one CD disk.
Enjoy yourself.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: