【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
zlld
帖子: 82
注册时间: 2008-03-08 12:15

【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#1

帖子 zlld » 2009-08-24 16:36

我今天做了个从windows 用grub引导安装好的ubuntu系统。参考了很多的文章,觉得这个不错,按照不着去做。连接如下:
http://wiki.ubuntu.org.cn/index.php?tit ... nt=zh-hans

sda7(boot)
sda8(/)
sda9(/home)
查找到了自己的boot uuid列表如下:
lrwxrwxrwx 1 root root 10 2009-08-24 07:24 4d559da9-9bd4-4f96-bf3b-e4bd25c7dfdd -> ../../sda7
lrwxrwxrwx 1 root root 10 2009-08-24 07:25 659dccee-0121-4ca6-9200-e240cacf86d8 -> ../../sda8
lrwxrwxrwx 1 root root 10 2009-08-24 07:25 8d62b56f-23f2-41ea-9735-703a6eb25485 -> ../../sda9
进入windows添加grub和menu.list内容如下:
# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.

color black/cyan yellow/cyan
timeout 30
default /default

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2

title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 2
find --set-root /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2

title find and load IO.SYS of Windows 9x/Me
fallback 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2

title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst

title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst

title install Ubuntu 9.04
root(hd0,0)
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-desktop-amd64.iso
initrd /initrd.gz

title Ubuntu 9.04, kernel 2.6.28-11-generic
root(hd0,6)
kernel /vmlinuz-2.6.28-11-generic root=UUID=659dccee-0121-4ca6-9200-e240cacf86d8 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root(hd0,6)
kernel /vmlinuz-2.6.28-11-generic root=UUID=659dccee-0121-4ca6-9200-e240cacf86d8 ro single
initrd /initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
root(hd0,6)
kernel /memtest86+.bin
quiet


title commandline
savedefault --wait=2
commandline

title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

title back to dos
savedefault --wait=2
quit

title reboot
savedefault --wait=2
reboot

title halt
savedefault --wait=2
halt

title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

#title memdrive based on win98 partition (hd0,6)
#map --mem (hd0,6)+1 (hd0)
## map --mem (hd0,0)/win98.gz (hd0)
#map --hook
#chainloader (hd0)+1
#rootnoverify (hd0)
#savedefault --wait=2
更改了boot.ini文件,添加了ubuntu启动向。
保存后从新启动,选取ubuntu项,进入界面,出现了ubuntu的启动菜单
title Ubuntu 9.04, kernel 2.6.28-11-generic
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
title Ubuntu 9.04, memtest86+
可我选取点击进入就报错,说找不到文件,ERROR: file not found。 没有错误啊,已经都是按照分区的内容来分的了。
我都郁闷死了,。。请大侠指点下,那里有错误啊。。。
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#2

帖子 leeaman » 2009-08-24 16:50

如果你成功安装ubuntu的话,不写win下面的menu.lst,让它自己找还好过
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#3

帖子 adagio » 2009-08-24 16:50

代码: 全选

root (hd0,6)
少了空格
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
zlld
帖子: 82
注册时间: 2008-03-08 12:15

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#4

帖子 zlld » 2009-08-24 16:54

啊?有空格吗,我试下再回来。(希望是这个小问题)
zlld
帖子: 82
注册时间: 2008-03-08 12:15

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#5

帖子 zlld » 2009-08-24 17:03

试了,不行报错如下:
Filesystem type is ext2fs, partition type 0x83
Error 12: Invalid or unsupported executable format
硬盘可以启动iso的镜像文件啊。
title install Ubuntu 9.04
root(hd0,0)
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-desktop-amd64.iso
initrd /initrd.gz
硬盘启用iso文件么问题啊。可就是找不到安装的启动分区,为啥呢这是?
zlld
帖子: 82
注册时间: 2008-03-08 12:15

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#6

帖子 zlld » 2009-08-24 17:04

试了,不行报错如下:
Filesystem type is ext2fs, partition type 0x83
Error 12: Invalid or unsupported executable format
硬盘可以启动iso的镜像文件啊。
title install Ubuntu 9.04
root(hd0,0)
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-desktop-amd64.iso
initrd /initrd.gz
硬盘启用iso文件么问题啊。可就是找不到安装的启动分区,为啥呢这是?
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#7

帖子 wangdu2002 » 2009-08-24 17:09

要不先换grub4dos试试看。
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
zlld
帖子: 82
注册时间: 2008-03-08 12:15

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#8

帖子 zlld » 2009-08-24 17:16

好,去试grub4dos。
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#9

帖子 adagio » 2009-08-24 17:28

你的linux分区都是什么格式的?
grub什么版本?怎么装的?

如果使用grub4dos的话,要用最新的版本,否则不认ext4
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
zlld
帖子: 82
注册时间: 2008-03-08 12:15

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#10

帖子 zlld » 2009-08-24 17:29

我吐啊~~~~~,用了grum4dos就能够进去了。。。。
我只是用了grlbr这个文件区引导,开来缺少东西无法读取制定的分区文件。经验教训啊,开来挂在iso的读取方式不一样。
哎~~这年头,轻敌害死人啊。谁能想到是grub读取不了的问题啊,一直在对照分区的uuid或者是hd(x,x)写的有问题。

一下午的时间啊来搞这个引导,我哭死啊。。。。。。。。
上次由 zlld 在 2009-08-24 17:30,总共编辑 1 次。
头像
Hello World!
帖子: 3051
注册时间: 2008-06-23 15:19
系统: ���������
来自: 北欧某国
联系:

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#11

帖子 Hello World! » 2009-08-24 17:29

我想,应该是

代码: 全选

kernel /vmlinuz-2.6.28-11-generic root=UUID=4d559da9-9bd4-4f96-bf3b-e4bd25c7dfdd ro quiet splash
initrd /initrd.img-2.6.28-11-generic
而不是

代码: 全选

kernel /vmlinuz-2.6.28-11-generic root=UUID=659dccee-0121-4ca6-9200-e240cacf86d8 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
内核文件在/boot分区当中。
上次由 Hello World! 在 2009-08-24 17:31,总共编辑 1 次。
http://noie.name 网站改版中。
zlld
帖子: 82
注册时间: 2008-03-08 12:15

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#12

帖子 zlld » 2009-08-24 17:31

Hello World! 写了:我想,应该是

代码: 全选

kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=659dccee-0121-4ca6-9200-e240cacf86d8 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
而不是

代码: 全选

kernel /vmlinuz-2.6.28-11-generic root=UUID=659dccee-0121-4ca6-9200-e240cacf86d8 ro quiet splash
initrd /initrd.img-2.6.28-11-generic
楼上的我单独分了个boot区出来,如果没有这个,就应该是按你说的来写
头像
Hello World!
帖子: 3051
注册时间: 2008-06-23 15:19
系统: ���������
来自: 北欧某国
联系:

Re: 【崩溃边缘,继续解救】GRUB 引导ubuntu多次失败

#13

帖子 Hello World! » 2009-08-24 17:33

抱歉,是我弄错了,我已经改过来了。
应该是

代码: 全选

kernel /vmlinuz-2.6.28-11-generic root=UUID=4d559da9-9bd4-4f96-bf3b-e4bd25c7dfdd ro quiet splash
initrd /initrd.img-2.6.28-11-generic
因为内核文件在/boot分区当中而不在/当中。
http://noie.name 网站改版中。
回复