[讨论]Ubuntu无法启动之后——

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
kukat
帖子: 266
注册时间: 2006-06-14 6:12
联系:

[讨论]Ubuntu无法启动之后——

#1

帖子 kukat » 2006-10-20 16:01

重新安装XP之后grub丢失导致ubuntu无法启动了,咋办? 想起linux下的boot分区里有现成的menu.lst不知道可不可以利用下呢。

先下载ext2ifs,windows下查看linux分区的东东。

安装后在控制面板里有个选项IFS,打开后就可以挂载linux分区了。(给你要挂载的linux分区选上个盘符就可以了)

挂在/boot分区。打开/boot/grub/目录,复制menu.lst到C盘根目录。

下载wingrub,安装配置看这里http://fedora.linuxsir.org/main/?q=node/37

具体的配置menu.lst就不用看了,我们有现成的。

用刚才复制的menu.lst覆盖c:\boot\grub\menu.lst

这样就行了吗? 当然不,要不我也不用写这篇文章了。

重启后顺利进入grub,选项也如menu.lst里一样。但是!无法启动! 提示:

代码: 全选

Filesystem type is ext2fs, partition type 0x83
不解。

我只重新安装了在C盘的windows xp ,没有对别的分区有操作。这咋就不行了呢?!

没办法 手动启动吧

在grub启动菜单里按“c”进入命令行。

代码: 全选

root (hd1,11) #我的linux安装在第二块硬盘上
kernel /vmlinuz-2.6.15-26-k7 root=/dev/hdb8 ro quiet splash
initrd /initrd.img-2.6.15-26-k7
不错,又看到ubuntu熟悉的启动界面了。

我还是不明白,手工启动的代码和我menu.lst里的完全一样阿!

代码: 全选

title		Ubuntu, kernel 2.6.15-26-k7
root		(hd1,11)
kernel		/vmlinuz-2.6.15-26-k7 root=/dev/hdb8 ro quiet splash
initrd		/initrd.img-2.6.15-26-k7
savedefault
boot
我现在该怎么做? 我怕重启后有进不来UBUNTU了。刚才用LIVE CD的终端

代码: 全选

up@ubuntu:~$ sudo su
Password:
root@ubuntu:/home/up# grub
Probing devices to guess BIOS drives. This may take a long time.

grub> root (hd
 Possible disks are:  hd0 hd1

grub> root (hd1,
 Possible partitions are:
   Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 4,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 5,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 6,  Filesystem type unknown, partition type 0x82
   Partition num: 7,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 8,  Filesystem type unknown, partition type 0x82
   Partition num: 9,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 10,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 11,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 12,  Filesystem type is ext2fs, partition type 0x83

grub> root (hd1,11)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd
 Possible disks are:  hd0 hd1

grub> setup (hd1)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... yes
 Checking if "/grub/stage2" exists... yes
 Checking if "/grub/e2fs_stage1_5" exists... yes
 Running "embed /grub/e2fs_stage1_5 (hd1)"...  15 sectors are embedded.
succeeded
 Running "install /grub/stage1 (hd1) (hd1)1+15 p (hd1,11)/grub/stage2 /grub/men
u.lst"... succeeded
Done.

grub>quit
刚才live cd这样安装grub后重启没反映阿,没有直接尽到grub里....

顺便说明下:我的ubuntu是安装在第2块硬盘上的, /boot在(hd1,11)

我不理解的是grub要装在hd0上还是hd1上?
我现在该怎么作?
头像
kukat
帖子: 266
注册时间: 2006-06-14 6:12
联系:

补充问题:

#2

帖子 kukat » 2006-10-20 16:27

1。关于用live cd 的终端恢复grub
viewtopic.php?p=13913#13913
里说的是

代码: 全选

sudo su
grub
root (hdx,y)
[color=red]setup(hdx)[/color]
quit 
而http://forum.ubuntu.org.cn/viewtopic.php?t=17047
里说

代码: 全选

rub > root (hd0,X-1)
grub > [color=red]setup (hd0,X-1)[/color]
grub > quit 

2。将Grub装配到ntloader内 的问题

代码: 全选

up@ubuntu:~$ sudo su
Password:
root@ubuntu:/home/up# mount -t vfat /dev/hda1 /mnt
root@ubuntu:/home/up# dd if=/dev/hdb12 of=/mnt/linux.lnx bs=512 count=1
1+0 records in
1+0 records out
段错误
回复