求助 , 装了 ubuntu 进 不了 windows 7 了

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
tinguy
帖子: 34
注册时间: 2009-01-18 2:11
联系:

求助 , 装了 ubuntu 进 不了 windows 7 了

#1

帖子 tinguy » 2010-01-21 18:17

我 原来 单系统 windows 7 , 一时冲动 装了 ubuntu 9.10 ,
现在的问题是 ubuntu 正常进入 , windows 7 不 能 进 了 。
也就是说 怎么 要 grub2 引导 windows 7 .


代码: 全选

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    83888127    41943040    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2        83888128   188745727    52428800    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3       188745728   387964477    99609375    7  HPFS/NTFS
/dev/sda4       387969750   625137344   118583797+   5  Extended
/dev/sda5       387969813   391969934     2000061   82  Linux swap / Solaris
/dev/sda6       391969998   625137344   116583673+  83  Linux

grub.cfg

代码: 全选

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 9948e2a3-c486-4f59-974b-7405c7b730a6
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd0,6)
	search --no-floppy --fs-uuid --set 9948e2a3-c486-4f59-974b-7405c7b730a6
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=9948e2a3-c486-4f59-974b-7405c7b730a6 ro   quiet splash
	initrd	/boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd0,6)
	search --no-floppy --fs-uuid --set 9948e2a3-c486-4f59-974b-7405c7b730a6
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=9948e2a3-c486-4f59-974b-7405c7b730a6 ro single 
	initrd	/boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
	insmod ntfs
	set root=(hd0,1)
	search --no-floppy --fs-uuid --set 883c04e33c04ce5e
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
上次由 tinguy 在 2010-01-21 18:27,总共编辑 2 次。
tinguy
帖子: 34
注册时间: 2009-01-18 2:11
联系:

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#3

帖子 tinguy » 2010-01-21 18:25

onshoestring 写了:

代码: 全选

sudo update-grub

代码: 全选

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#4

帖子 onshoestring » 2010-01-21 18:29

tinguy 写了:
onshoestring 写了:

代码: 全选

sudo update-grub

代码: 全选

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
这不是好了么,看小苹果置顶贴自己学点吧。
tinguy
帖子: 34
注册时间: 2009-01-18 2:11
联系:

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#5

帖子 tinguy » 2010-01-21 18:31

onshoestring 写了:
tinguy 写了:
onshoestring 写了:

代码: 全选

sudo update-grub

代码: 全选

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done
这不是好了么,看小苹果置顶贴自己学点吧。

可是 没 好 阿 ,我 重启 了 下 ,点 win7 ,显示 grub loading ,又 退到 选择 那里 了
tinguy
帖子: 34
注册时间: 2009-01-18 2:11
联系:

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#6

帖子 tinguy » 2010-01-21 18:32

难道 win7 的 问题 , ??
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#7

帖子 smallapple » 2010-01-21 18:33

谁让你把grub装到win7的分区的? :em20 :em20
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#8

帖子 leeaman » 2010-01-21 18:33

似乎是你的分区表出了问题吧?
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#9

帖子 onshoestring » 2010-01-21 18:35

你把grub2装到win7的pbr里了,呵呵。

代码: 全选

sudo apt-get purge grub-pc grub-common
sudo grub-install /dev/sda
sudo grub-install --recheck /dev/sda
然后win7安装盘修复pbr

代码: 全选

bootsect /nt60 c:
头像
qingdaoocean
帖子: 2753
注册时间: 2009-05-16 8:47

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#10

帖子 qingdaoocean » 2010-01-21 18:42

smallapple 写了:谁让你把grub装到win7的分区的? :em20 :em20
哈哈,又一个 :em04
“飞达”——武汉理工大学开源技术协会http://vedaclub.org/
tinguy
帖子: 34
注册时间: 2009-01-18 2:11
联系:

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#11

帖子 tinguy » 2010-01-21 18:48

代码: 全选

tinguy@tinguy-laptop:~$ sudo apt-get purge grub-pc grub-common
[sudo] password for tinguy: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被【卸载】:
  grub-common* grub-pc*
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 2 个软件包,有 193 个软件未被升级。
解压缩后将会空出 4,170kB 的空间。
您希望继续执行吗?[Y/n]y
(正在读取数据库 ... 系统当前总共安装有 121729 个文件和目录。)
正在删除 grub-pc ...
正在清除 grub-pc 的配置文件 ...
正在删除 grub-common ...
正在清除 grub-common 的配置文件 ...
正在处理用于 man-db 的触发器...
正在处理用于 sreadahead 的触发器...
sreadahead will be reprofiled on next reboot
正在处理用于 install-info 的触发器...
tinguy@tinguy-laptop:~$ sudo grub-install /dev/sda
sudo: grub-install: command not found
tinguy@tinguy-laptop:~$ sudo grub-install --recheck /dev/sda
sudo: grub-install: command not found
sudo apt-get purge grub-pc grub-common
sudo grub-install /dev/sda
sudo grub-install --recheck /dev/sda 这 两个 是 什么 意思 ,我 好像 装不了 阿
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#12

帖子 onshoestring » 2010-01-21 18:51

sudo grub-install /dev/sda
sudo grub-install --recheck /dev/sda
这两个是把grub2装到mbr
是不是安装要联网才行的?
上次由 onshoestring 在 2010-01-21 18:52,总共编辑 1 次。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#13

帖子 smallapple » 2010-01-21 18:51

grub-pc卸掉,哪来的grub-install 命令?

代码: 全选

sudo apt-get install grub-pc grub-common
sudo grub-install /dev/sda
win7是软鸡or正版?
tinguy
帖子: 34
注册时间: 2009-01-18 2:11
联系:

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#14

帖子 tinguy » 2010-01-21 18:52

:em20
是 grub 把 bcd 覆盖 了 这个 意思 么 ?

那我 应该 如何 。。
重装 ubuntu 会 有 用么 ?
tinguy
帖子: 34
注册时间: 2009-01-18 2:11
联系:

Re: 求助 , 装了 ubuntu 进 不了 windows 7 了

#15

帖子 tinguy » 2010-01-21 18:53

smallapple 写了:grub-pc卸掉,哪来的grub-install 命令?

代码: 全选

sudo apt-get install grub-pc grub-common
sudo grub-install /dev/sda
win7是软鸡or正版?


盗版 , 用 一个 软件 激活 了下 ,现在显示正版
回复