menu.list參考格式。
注意:開機代號一律使用(hd0,*)開頭。*為不同的分割磁區,若只有一個磁區則為(hd0,0)
單一磁區
default 5
timeout 10
splashimage=/boot/grub/gnu-tux-usb.xpm.gz
## End Default Options ##
title ttylinux
kernel /boot/ttylinux/isolinux/bzImage load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=8192 ro root=/dev/ram0
initrd /boot/ttylinux/isolinux/filesys
title Damn Small Linux 4.2.5
kernel (hd0,4)/dsl-4.2.5/boot/isolinux/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 noprompt nomce noapic quiet knoppix_dir=/dsl-4.2.5/KNOPPIX BOOT_IMAGE=knoppix
initrd (hd0,4)/dsl-4.2.5/boot/isolinux/minirt24.gz
title slax 6.0.7
kernel (hd0,4)/slax-6.0.7/boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 from=/slax-6.0.7/ changes=/slax-6.0.7/slax
initrd (hd0,4)/slax-6.0.7/boot/initrd.gz
title slax 6.0.7 lightening fast (loads slowly; need 1G or more RAM)
kernel (hd0,4)/slax-6.0.7/boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 from=/slax-6.0.7/ changes=/slax-6.0.7/slax copy2ram
initrd (hd0,4)/slax-6.0.7/boot/initrd.gz
title slax 6.0.7 forgetful (recover to clean state at each boot)
kernel (hd0,4)/slax-6.0.7/boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 from=/slax-6.0.7/
initrd (hd0,4)/slax-6.0.7/boot/initrd.gz
title otg linux (Taiwan education edition)
kernel (hd0,4)/isolinux/vmlinuzlive boot=casper splash noquiet ip=frommedia break=nobreak persistent noprompt
initrd (hd0,4)/isolinux/initrdlive.img
多重詞區
default 0
timeout 10
splashimage=/boot/grub/gnu-tux-usb.xpm.gz
## End Default Options ##
title ttylinux
kernel /boot/ttylinux/isolinux/bzImage load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=8192 ro root=/dev/ram0
initrd /boot/ttylinux/isolinux/filesys
title Damn Small Linux 4.2.5
kernel (hd0,4)/boot/isolinux/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce noapic quiet BOOT_IMAGE=knoppix
initrd (hd0,4)/boot/isolinux/minirt24.gz
title slax 6.0.7
kernel (hd0,5)/boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/slax/
initrd (hd0,5)/boot/initrd.gz
title otg linux (Taiwan education edition)
kernel (hd0,6)/isolinux/vmlinuzlive boot=casper splash noquiet ip=frommedia break=nobreak noprompt
initrd (hd0,6)/isolinux/initrdlive.img
# title Edubuntu
# kernel (hd0,7)/casper/vmlinuz file=/cdrom/preseed/edubuntu.seed boot=casper quiet splash --
# initrd (hd0,7)/casper/initrd.gz
開始將各種LiveCD解壓縮放入隨身碟:
由於使用單一分割磁區,因此將各個不同的linux版本分別放到不同的資料夾
以我自己做的(DSL, Puppy, Slax)為例子
DSL:放在/dls/
Slax:放在/myslax/
Puppy:放在/puppy/
title DSL
kernel (hd0,0)/dsl/boot/isolinux/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 nomce noprompt quiet knoppix_dir=/dsl/knoppix BOOT_IMAGE=knoppix
initrd (hd0,0)/dsl/boot/isolinux/minirt24.gz
title Slax6.0.7
kernel (hd0,0)/myslax/boot/vmlinuz from=/myslax/ ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/myslax/slax/
initrd (hd0,0)/myslax/boot/initrd.gz
title Puppy Linux
kernel (hd0,0)/puppy/vmlinuz pmedia=/dev/sda1
initrd (hd0,0)/puppy/initrd.gz
PS:各版本的boot資料夾中參考isolinux.cfg 然後轉成 menu.lst格式,kernel後面的參數不懂就上網問問。有些版本要指定資料夾才能順利開機,如
Slax:...from=/myslax/...changes=/myslax/slax/
DSL:...knoppix_dir=/dsl/knoppix...
Puppy: ...pmedia=/dev/sda1
Ubuntu系列(參考) :
注意:a.)映像檔裡面的./disk資料夾一定要複製出來
b.)映像檔裡面所有的檔案一定要複製在隨身碟的根目錄,不可以放在自訂的資料夾。不
然會不能進入系統
menu.lst這樣寫:
##########################
title ubuntu810
root (hd0,0)
kernel /casper/vmlinuz file=/preseed/ubuntu.seed boot=casper all_generic_ide floppy=off irgpoll quiet splash --
initrd /casper/initrd.gz
###########################
ps: all_generic_ide floppy=off irgpoll不一定要加,如果開機有進入busybox再加進來,我的測試是不加也可以開機
參考網頁:
Slax
Ubuntu正體中文
沒有留言:
張貼留言