[求助]修复Ubuntu启动后,Win7无法启动

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
Victory623
帖子: 3
注册时间: 2009-06-26 0:54

[求助]修复Ubuntu启动后,Win7无法启动

#1

帖子 Victory623 » 2009-06-28 3:41

代码: 全选

sudo fdisk -l

代码: 全选

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc001c001

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1567    12586896    7  HPFS/NTFS
/dev/sda2            2613       28923   211343107+   f  W95 Ext'd (LBA)
/dev/sda3            1568        2612     8393962+  83  Linux
/dev/sda5            2613        8487    47190906    7  HPFS/NTFS
/dev/sda6            8488       24153   125837113+   7  HPFS/NTFS
/dev/sda7           24154       28070    31463271    7  HPFS/NTFS
/dev/sda8           28071       28799     5855661   83  Linux
/dev/sda9           28800       28923      995998+  82  Linux swap / Solaris

Partition table entries are not in disk order
情况是这样的,先装了XP(C盘),后装了Win7(D盘),随后想体验一下Ubuntu 9.04,把C盘用PM分割成了12G的NTFS,和8G的ext4(挂载在 \),又在磁盘的最后一个分区分出5.5G做/home,1G的swap。然后通过挂载iso方式进行安装。安装完成后无法启动Ubuntu,提示Cannot mount selected partition(已设只好hd0,2 sda3,在深度一件还原菜单后面加入的选项)。然后还是通过挂载的iso进去后

代码: 全选

sudo grub
find /boot/grub/stage1(返回 hd0,2 )
root (hd0,2)
setup (hd0)
quit
重启后再未出现Win7的启动菜单,直接进了Ubuntu,折腾到半夜未果,请高手指点!
上次由 Victory623 在 2009-06-28 4:52,总共编辑 1 次。
Victory623
帖子: 3
注册时间: 2009-06-26 0:54

Re: [求助]修复Ubuntu启动后,Win7无法启动

#2

帖子 Victory623 » 2009-06-28 3:45

补充一下,后来又做了如下工作,仍未成功

代码: 全选

sudo grub
root (hd0,0)
setup (hd0)
输入setup (hd0)后提示 Error 17 Cannot mount selected partition
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: [求助]修复Ubuntu启动后,Win7无法启动

#3

帖子 smallapple » 2009-06-28 7:18

代码: 全选

sudo gedit /boot/grub/menu.lst
找到 hidden 在其前面加 # 。
在文件最后加上

代码: 全选

title Windows 7
root (hd0,0)
savedefault
makeactive
chainloader +1
shb110119
帖子: 105
注册时间: 2008-05-24 17:52

Re: [求助]修复Ubuntu启动后,Win7无法启动

#4

帖子 shb110119 » 2009-06-28 7:31

title win7
find --set-root /bootmgr
chainloader /bootmgr


试试
Victory623
帖子: 3
注册时间: 2009-06-26 0:54

Re: [求助]修复Ubuntu启动后,Win7无法启动

#5

帖子 Victory623 » 2009-06-28 11:55

smallapple 写了:

代码: 全选

sudo gedit /boot/grub/menu.lst
找到 hidden 在其前面加 # 。
在文件最后加上

代码: 全选

title Windows 7
root (hd0,0)
savedefault
makeactive
chainloader +1
谢谢,依照你的方法搞定了~
回复