天天看點

制作自己的Linux發行版CD光牒[轉]

制作自己的Linux發行版CD光牒

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

制作自己的Linux發行版CD光牒

一、制作可啟動的GRUBCD光牒。

$ 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目錄為鏡像目錄的啟動CD光牒.

二、制作可啟動的小核心LinuxCD光牒。

$ 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