分页: 1 / 2

[HELP] GRUB Error

发表于 : 2009-05-02 12:30
Angus_Yann
: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

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:02
jioyo源
:em20 一只眼看到又该骂了……找他去,看看他的签名……

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:20
adagio
首先声明,我从来没有骂过人 :em20
去这里打字
http://dict.cn/ime/

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:22
shellex
jioyo源 写了::em20 一只眼看到又该骂了……找他去,看看他的签名……
说英文是允许的嘛...

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:23
adagio
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
语法错了,把红色部分干掉试试。

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:29
shellex
我想这么做应该是可以的。
进入你的liveCD
将你硬盘上的root和boot挂载. 比如 /mnt/ 和 /mnt/boot
进入chroot环境到你硬盘上的linux:sudo chroot /mnt
然后在你的chroot环境中apt-get install grub.
然后grub-install /dev/sda
啊那个/sda你的硬盘设备。自己改。

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:29
Angus_Yann
好吧,事情是这样的:
昨天晚上我想美化grub,就想装gfxboot,
但是根据教程要find ,但是它说Error 15, Can't find /boot/grub/stage1,
我只好重新装grub,看似好了,也能find /boot/grub/stage1是(hd0,0),
可在启动时出现了Error2,然后就不知道怎么办,
对于menu.lst和fxtab也不敢乱改 :em79

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:30
shellex
adagio 写了: 语法错了,把红色部分干掉试试。
啊?哪有错?

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:42
Angus_Yann
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.

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:50
shellex
看看这个文件是什么:

代码: 全选

$ cat /boot/grub/device.map

Re: [HELP] GRUB Error

发表于 : 2009-05-02 13:54
Angus_Yann
shellex 写了:看看这个文件是什么:

代码: 全选

$ cat /boot/grub/device.map
ubuntu@ubuntu:~$ cat /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda

Re: [HELP] GRUB Error

发表于 : 2009-05-02 14:17
shellex
嗯。好像没看出什么问题来

Re: [HELP] GRUB Error

发表于 : 2009-05-02 14:19
Angus_Yann
这是我的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

Re: [HELP] GRUB Error

发表于 : 2009-05-02 14:24
wangdu2002
帮顶,我也想知道这个问题怎么解决,不过改menu。lst应该可以先试下滴。还是等Billbear老大来指导下。 :em06

Re: [HELP] GRUB Error

发表于 : 2009-05-02 16:08
adagio
看看UUID和路径、内核文件名有没有错