当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 5 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 记录一下,grub2 引导ubuntu iso 安装
帖子发表于 : 2015-02-10 23:20 
头像

注册: 2007-12-14 13:40
帖子: 49881
地址: 志虚国乌由市
系统: Winbuntu
送出感谢: 29
接收感谢: 413
代码:
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

安装flash 还是要用
代码:
sudo apt install adobe-flashplugin


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 记录一下,grub2 引导ubuntu iso 安装
帖子发表于 : 2015-02-10 23:27 
头像

注册: 2007-12-14 13:40
帖子: 49881
地址: 志虚国乌由市
系统: Winbuntu
送出感谢: 29
接收感谢: 413
代码:
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

安装flash 还是要用
代码:
sudo apt install adobe-flashplugin


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 记录一下,grub2 引导ubuntu iso 安装
帖子发表于 : 2015-02-11 13:31 

注册: 2009-08-04 16:33
帖子: 16882
送出感谢: 21
接收感谢: 1825
引用:
至于为什么这样

補充
https://help.ubuntu.com/community/Grub2/ISOBoot
https://help.ubuntu.com/community/Grub2 ... t/Examples


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 记录一下,grub2 引导ubuntu iso 安装
帖子发表于 : 2015-02-11 22:37 
头像

注册: 2010-10-27 20:43
帖子: 370
送出感谢: 2
接收感谢: 15
qy117121,
引用:
至于为什么这样,别问我,我不懂

2007年.4万八千贴.牛,


_________________
牛是牛顿的牛 毛是朱毛的毛


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 记录一下,grub2 引导ubuntu iso 安装
帖子发表于 : 2015-02-12 5:46 
头像

注册: 2007-12-14 13:40
帖子: 49881
地址: 志虚国乌由市
系统: Winbuntu
送出感谢: 29
接收感谢: 413
niumao 写道:
qy117121,
引用:
至于为什么这样,别问我,我不懂

2007年.4万八千贴.牛,

还没到4万八吧,灌水帖占大部分


_________________
冷轩信

渠月 · QY

本人只会灌水,不负责回答问题

无聊可以点一下→ http://u.nu/ubuntu

安装flash 还是要用
代码:
sudo apt install adobe-flashplugin


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 5 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 0 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译