记录一下,grub2 引导ubuntu iso 安装

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
qy117121
论坛版主
帖子: 50586
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

记录一下,grub2 引导ubuntu iso 安装

#1

帖子 qy117121 » 2015-02-10 23:20

代码: 全选

menuentry "安装 Ubuntu" {
insmod part_msdos
insmod fat
insmod ntfs
insmod loopback
search --set -f /ubuntu/vmlinuz.efi 
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 /ubuntu/vmlinuz.efi 
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
}
两种代码都试验过可用,当然我只是测试了14.04 amd64 的iso,
代码应该都是来自论坛里,只是我从来记不住这些,所以自己发个帖,添加到置顶里 :em03

至于为什么这样,别问我,我不懂
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 [email protected]
头像
qy117121
论坛版主
帖子: 50586
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 记录一下,grub2 引导ubuntu iso 安装

#2

帖子 qy117121 » 2015-02-10 23:27

代码: 全选

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
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 [email protected]
头像
niumao
帖子: 392
注册时间: 2010-10-27 20:43

Re: 记录一下,grub2 引导ubuntu iso 安装

#4

帖子 niumao » 2015-02-11 22:37

qy117121,
至于为什么这样,别问我,我不懂
2007年.4万八千贴.牛,
牛是牛顿的牛 毛是朱毛的毛
头像
qy117121
论坛版主
帖子: 50586
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 记录一下,grub2 引导ubuntu iso 安装

#5

帖子 qy117121 » 2015-02-12 5:46

niumao 写了:qy117121,
至于为什么这样,别问我,我不懂
2007年.4万八千贴.牛,
还没到4万八吧,灌水帖占大部分
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 [email protected]
回复