天天看点

制作自己的Linux发行版光盘[转]

制作自己的Linux发行版光盘

http://blog.chinaunix.net/u/24390/showart_337761.html

制作自己的Linux发行版光盘

一、制作可启动的GRUB光盘。

$ mkdir iso # 新建一个iso目录,这将作为LiveCD的镜像目录.

$ mkdir -p iso/boot/grub #在iso目录中创建boot/grub子目录

$ cp /usr/share/grub/i386-redhat/stage2_eltorito iso/boot/grub

$ mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \

-boot-load-size 4 -boot-info-table -o teach.iso iso #制作以iso目录为镜像目录的启动光盘.

二、制作可启动的小内核Linux光盘。

$ cp /boot/vmlinuz-2.6.15-1.2054_FC5 iso/book

$ mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \

-boot-load-size 4 -boot-info-table -o teach.iso iso

grub> root (cd)

grub> kernel /boot/vmlinuz-2.6.15-1.2054

grub> boot

http://www.anyter.com/bbs/dispbbs.asp?boardID=16&ID=429&page=1