代码:
menuentry 'Grub4Dos' {
insmod ntfs
insmod fat
search --set -f /boot/grub/MyFeng.gif
ntldr /grldr
boot
}
menuentry "Search and boot ubuntu (/boot/grub/core.img)" {
insmod ext2
insmod reiserfs
insmod xfs
insmod jfs
search --set -f /boot/grub/core.img
multiboot /boot/grub/core.img
}
menuentry "Search and boot ubuntu (/boot/grub/i386-pc/core.img)" {
insmod ext2
insmod reiserfs
insmod xfs
insmod jfs
search --set -f /boot/grub/i386-pc/core.img
multiboot /boot/grub/i386-pc/core.img
}
menuentry "Search and boot ubuntu (/@/boot/grub/i386-pc/core.img)" {
insmod ext2
insmod reiserfs
insmod xfs
insmod jfs
search --set -f /@/boot/grub/i386-pc/core.img
multiboot /@/boot/grub/i386-pc/core.img
}
menuentry '安装win10' {
insmod ntfs
insmod fat
search --set -f /boot/grub/MyFeng.gif
ntldr /bootmgr
boot
}
menuentry "安装 Ubuntu" {
insmod part_msdos
insmod fat
insmod ntfs
insmod loopback
search --set -f /boot/grub/MyFeng.gif
loopback loop0 /ubuntu-14.04-desktop-amd64.iso
linux /ubuntu/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-14.04-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8
initrd /ubuntu/initrd.lz
}
menuentry "安装Ubuntu2" {
insmod part_msdos
insmod fat
insmod ntfs
search --set -f /boot/grub/MyFeng.gif
linux /ubuntu/vmlinuz.efi boot=casper iso-scan/filename=/ubuntu-14.04-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8
initrd /ubuntu/initrd.lz
}
代码:
timeout 30
default 0
fallback 0
splashimage /boot/grub/xpm.gz
fontfile /boot/grub/g4dfonts/fonts
title [01] elementaryos-amd64
find --set-root /elementary/vmlinuz
kernel /elementary/vmlinuz boot=casper iso-scan/filename=/elementary/elementaryos-stable-amd64.20130810.iso quiet locale=zh_CN.UTF-8
initrd /elementary/initrd.lz
title [02] 安装WIN10
find --set-root /elementary/vmlinuz
chainloader /bootmgr
title 【3】启动Ubuntu /boot/grub/core.img
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot
title 【4】启动Ubuntu /boot/grub/i386-pc/core.img
find --set-root /boot/grub/i386-pc/core.img
kernel /boot/grub/i386-pc/core.img
boot
title 【5】启动Ubuntu /@/boot/grub/i386-pc/core.img
find --set-root /@/boot/grub/i386-pc/core.img
kernel /@/boot/grub/i386-pc/core.img
boot