[HELP] GRUB Error

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
头像
Angus_Yann
帖子: 1736
注册时间: 2008-03-20 23:29
来自: ZJU

[HELP] GRUB Error

#1

帖子 Angus_Yann » 2009-05-02 12:30

:em19
I wanted to install gfxboot so removed grub last night
but it said "Can't find /boot/grub/stage1"
so I

代码: 全选

sudo apt-get insatll grub
BUT
Loading GRUB, please wait
Error 2
What can i do :em20
Now i'm under LiveCD
What Have I tried:
grub> find /boot/grub/stage1
(hd0,0)

grub> root (hd0,0)

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
ubuntu@ubuntu:~$ root (hd <-------TAB twice
hd hdparm
ps. There's menu.lst renamed "menu.rar"in attachment
附件
menu.rar
(4.5 KiB) 已下载 42 次
80后俊男一枚,Arch党,软件洁癖,标准果粉,萝莉控
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
头像
jioyo源
帖子: 3476
注册时间: 2008-10-08 13:48

Re: [HELP] GRUB Error

#2

帖子 jioyo源 » 2009-05-02 13:02

:em20 一只眼看到又该骂了……找他去,看看他的签名……
--------------------------------------
论坛精华贴全集:http://forum.ubuntu.org.cn/viewtopic.php?f=48&t=199845
book:http://forum.ubuntu.org.cn/viewtopic.php?f=21&t=198286
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: [HELP] GRUB Error

#3

帖子 adagio » 2009-05-02 13:20

首先声明,我从来没有骂过人 :em20
去这里打字
http://dict.cn/ime/
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
shellex
帖子: 2180
注册时间: 2007-02-18 19:33
系统: OSX
来自: lyric.im
联系:

Re: [HELP] GRUB Error

#4

帖子 shellex » 2009-05-02 13:22

jioyo源 写了::em20 一只眼看到又该骂了……找他去,看看他的签名……
说英文是允许的嘛...
既然你诚心诚意地问了
我就大慈大悲地告诉你
为了防止世界被破坏
为了维护世界的和平
贯彻爱与真实的罪恶
可爱而又迷人的反派角色
武藏,小次郎
我们是穿越银河的火箭队,白洞白色的明天在等着我们。就是这样!!喵~~
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: [HELP] GRUB Error

#5

帖子 adagio » 2009-05-02 13:23

title Ubuntu 9.04, kernel 2.6.28-11-generic
root (hd0,0)
uuid d75e2864-57c3-4441-89e9-bcdaaae88c39
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d75e2864-57c3-4441-89e9-bcdaaae88c39 ro locale=zh_CN splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root (hd0,0)
uuid d75e2864-57c3-4441-89e9-bcdaaae88c39
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=d75e2864-57c3-4441-89e9-bcdaaae88c39 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
root (hd0,0)
uuid d75e2864-57c3-4441-89e9-bcdaaae88c39
kernel /boot/memtest86+.bin
quiet
语法错了,把红色部分干掉试试。
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
shellex
帖子: 2180
注册时间: 2007-02-18 19:33
系统: OSX
来自: lyric.im
联系:

Re: [HELP] GRUB Error

#6

帖子 shellex » 2009-05-02 13:29

我想这么做应该是可以的。
进入你的liveCD
将你硬盘上的root和boot挂载. 比如 /mnt/ 和 /mnt/boot
进入chroot环境到你硬盘上的linux:sudo chroot /mnt
然后在你的chroot环境中apt-get install grub.
然后grub-install /dev/sda
啊那个/sda你的硬盘设备。自己改。
既然你诚心诚意地问了
我就大慈大悲地告诉你
为了防止世界被破坏
为了维护世界的和平
贯彻爱与真实的罪恶
可爱而又迷人的反派角色
武藏,小次郎
我们是穿越银河的火箭队,白洞白色的明天在等着我们。就是这样!!喵~~
头像
Angus_Yann
帖子: 1736
注册时间: 2008-03-20 23:29
来自: ZJU

Re: [HELP] GRUB Error

#7

帖子 Angus_Yann » 2009-05-02 13:29

好吧,事情是这样的:
昨天晚上我想美化grub,就想装gfxboot,
但是根据教程要find ,但是它说Error 15, Can't find /boot/grub/stage1,
我只好重新装grub,看似好了,也能find /boot/grub/stage1是(hd0,0),
可在启动时出现了Error2,然后就不知道怎么办,
对于menu.lst和fxtab也不敢乱改 :em79
80后俊男一枚,Arch党,软件洁癖,标准果粉,萝莉控
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
头像
shellex
帖子: 2180
注册时间: 2007-02-18 19:33
系统: OSX
来自: lyric.im
联系:

Re: [HELP] GRUB Error

#8

帖子 shellex » 2009-05-02 13:30

adagio 写了: 语法错了,把红色部分干掉试试。
啊?哪有错?
既然你诚心诚意地问了
我就大慈大悲地告诉你
为了防止世界被破坏
为了维护世界的和平
贯彻爱与真实的罪恶
可爱而又迷人的反派角色
武藏,小次郎
我们是穿越银河的火箭队,白洞白色的明天在等着我们。就是这样!!喵~~
头像
Angus_Yann
帖子: 1736
注册时间: 2008-03-20 23:29
来自: ZJU

Re: [HELP] GRUB Error

#9

帖子 Angus_Yann » 2009-05-02 13:42

shellex 写了:我想这么做应该是可以的。
进入你的liveCD
将你硬盘上的root和boot挂载. 比如 /mnt/ 和 /mnt/boot
进入chroot环境到你硬盘上的linux:sudo chroot /mnt
然后在你的chroot环境中apt-get install grub.
然后grub-install /dev/sda
啊那个/sda你的硬盘设备。自己改。
从GParted看是sda,但
ubuntu@ubuntu:~$ sudo grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
附件
gp.jpg
80后俊男一枚,Arch党,软件洁癖,标准果粉,萝莉控
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
头像
shellex
帖子: 2180
注册时间: 2007-02-18 19:33
系统: OSX
来自: lyric.im
联系:

Re: [HELP] GRUB Error

#10

帖子 shellex » 2009-05-02 13:50

看看这个文件是什么:

代码: 全选

$ cat /boot/grub/device.map
既然你诚心诚意地问了
我就大慈大悲地告诉你
为了防止世界被破坏
为了维护世界的和平
贯彻爱与真实的罪恶
可爱而又迷人的反派角色
武藏,小次郎
我们是穿越银河的火箭队,白洞白色的明天在等着我们。就是这样!!喵~~
头像
Angus_Yann
帖子: 1736
注册时间: 2008-03-20 23:29
来自: ZJU

Re: [HELP] GRUB Error

#11

帖子 Angus_Yann » 2009-05-02 13:54

shellex 写了:看看这个文件是什么:

代码: 全选

$ cat /boot/grub/device.map
ubuntu@ubuntu:~$ cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda
80后俊男一枚,Arch党,软件洁癖,标准果粉,萝莉控
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
头像
shellex
帖子: 2180
注册时间: 2007-02-18 19:33
系统: OSX
来自: lyric.im
联系:

Re: [HELP] GRUB Error

#12

帖子 shellex » 2009-05-02 14:17

嗯。好像没看出什么问题来
既然你诚心诚意地问了
我就大慈大悲地告诉你
为了防止世界被破坏
为了维护世界的和平
贯彻爱与真实的罪恶
可爱而又迷人的反派角色
武藏,小次郎
我们是穿越银河的火箭队,白洞白色的明天在等着我们。就是这样!!喵~~
头像
Angus_Yann
帖子: 1736
注册时间: 2008-03-20 23:29
来自: ZJU

Re: [HELP] GRUB Error

#13

帖子 Angus_Yann » 2009-05-02 14:19

这是我的fstab文件,这里有什么问题吗?

# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sda1 :
UUID=d75e2864-57c3-4441-89e9-bcdaaae88c39 / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sda2 :
UUID=51aef7c1-c971-408b-9642-5f197f118a27 /home ext3 relatime 0 2
# Entry for /dev/sda3 :
UUID=49360260-329c-4850-bd5c-40a7c99c1388 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
80后俊男一枚,Arch党,软件洁癖,标准果粉,萝莉控
欢迎Follow我的Twitter:@AngusYann <--点击前请自学[穿·墙·术]
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: [HELP] GRUB Error

#14

帖子 wangdu2002 » 2009-05-02 14:24

帮顶,我也想知道这个问题怎么解决,不过改menu。lst应该可以先试下滴。还是等Billbear老大来指导下。 :em06
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: [HELP] GRUB Error

#15

帖子 adagio » 2009-05-02 16:08

看看UUID和路径、内核文件名有没有错
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
回复