求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
sosoinlove
帖子: 30
注册时间: 2010-11-01 11:54

求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

#1

帖子 sosoinlove » 2010-11-06 1:17

ubuntu一切正常
开机选择进去系统时有win7的选项 但是点击之后就又回到了 选择登录系统的地方了 :em20 :em20 :em20

大侠救命..
Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 292015680 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr

sda2: _________________________________________________________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda6: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda7: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda3: _________________________________________________________________________

File system: vfat
Boot sector type: MSWIN4.1: Fat 32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 98
Boot files/dirs: /IO.SYS /MSDOS.SYS /COMMAND.COM

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 63 58,605,119 58,605,057 7 HPFS/NTFS
/dev/sda2 58,605,181 307,675,135 249,069,955 f W95 Ext d (LBA)
/dev/sda5 58,605,183 195,334,334 136,729,152 7 HPFS/NTFS
/dev/sda6 195,334,398 286,705,359 91,370,962 7 HPFS/NTFS
/dev/sda7 286,705,664 307,675,135 20,969,472 83 Linux
/dev/sda3 307,676,943 312,576,704 4,899,762 1c Hidden W95 FAT32 (LBA)


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 2E50D5F050D5BF31 ntfs Win7
/dev/sda2: PTTYPE="dos"
/dev/sda3 4180-9BB7 vfat IBM_SERVICE
/dev/sda5 FC90B51B90B4DD78 ntfs 软件
/dev/sda6 20486ADA486AADEA ntfs 资料
/dev/sda7 0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c ext4
/dev/sda: PTTYPE="dos"
error: /dev/sdb: No medium found

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda7 / ext4 (rw,errors=remount-ro,commit=600)


=========================== sda7/boot/grub/grub.cfg: ===========================

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c
set locale_dir=($root)/boot/grub/locale
set lang=zh
insmod gettext
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/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c
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 part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 2e50d5f050d5bf31
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 ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sda7/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda7 during installation
UUID=0ecf89d2-3e09-4e3e-bd13-e15b8fc9df5c / ext4 errors=remount-ro 0 1

=================== sda7: Location of files loaded by Grub: ===================


149.5GB: boot/grub/core.img
153.4GB: boot/grub/grub.cfg
148.4GB: boot/initrd.img-2.6.35-22-generic
149.6GB: boot/vmlinuz-2.6.35-22-generic
148.4GB: initrd.img
149.6GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 04 5f 66 d6 1f 06 bb d1 1e 7e 77 f2 e5 66 db 86 |._f......~w..f..|
00000010 b2 b8 7f 61 c6 4b 66 75 ab 73 43 28 2b 92 f7 9a |...a.Kfu.sC(+...|
00000020 65 8e 67 71 9f c2 af 72 f9 92 6f 02 f3 cc be 48 |e.gq...r..o....H|
00000030 16 75 07 33 bf 77 16 f7 29 a4 1e f2 2d b8 ce 6f |.u.3.w..)...-..o|
00000040 44 3e 88 f6 73 be 1a 01 7f cf 2c 7f 32 8b 3a 82 |D>..s.....,.2.:.|
00000050 bf 93 36 5e f2 23 9a c4 93 46 b3 b8 07 61 e6 f4 |..6^.#...F...a..|
00000060 06 1f 43 3f 30 d6 92 fc b2 d9 27 a7 c1 6f 99 df |..C?0.....'..o..|
00000070 82 fc 57 cd 58 7d 27 fe cd 33 59 dd ff 1f 93 ae |..W.X}'..3Y.....|
00000080 67 77 27 9f b9 84 ff 75 09 8f e2 5f 7b a1 5e f8 |gw'....u..._{.^.|
00000090 02 da b0 0b 73 bb 35 9b fb 11 36 e7 6f 20 13 e6 |....s.5...6.o ..|
000000a0 82 19 87 4e 39 b6 20 7b 4c 5f b0 65 73 9f 62 8c |...N9. {L_.es.b.|
000000b0 19 93 ce 79 92 5c 00 5d 80 76 36 3b 78 5d 9c e4 |...y.\.].v6;x]..|
000000c0 6c 2f ce a6 2e 20 ed 2c 05 ef 8a b3 b9 98 db c7 |l/... .,........|
000000d0 91 4d bd c0 3c 57 1a 7c dd 25 7c 27 ea f9 4e a1 |.M..<W.|.%|'..N.|
000000e0 70 5f 5c a4 89 b1 ed 35 e0 8b 31 e9 8d e0 57 79 |p_\....5..1...Wy|
000000f0 56 08 e7 73 f0 f1 38 c9 3f ef 02 ff c3 2c 63 80 |V..s..8.?....,c.|
00000100 3f 07 d3 ae eb e1 3b c6 49 dc b4 17 7c f1 7c 8d |?.....;.I...|.|.|
00000110 2e 70 4e bc e6 fe 47 96 70 55 bc af 95 7b b5 3e |.pN...G.pU...{.>|
00000120 30 63 d8 e9 a7 d7 9d cd fd 0b 33 07 3e f8 9a 78 |0c........3.>..x|
00000130 89 3f 25 df 88 7b e9 7b ef cf a6 6e 22 7d 72 10 |.?%..{.{...n"}r.|
00000140 fc b3 78 f9 8e e4 57 e3 1d b9 ef 31 f7 38 db 16 |..x...W....1.8..|
00000150 af 17 76 7f 85 79 cf 8a b9 2b 41 62 66 ab c1 17 |..v..y...+Abf...|
00000160 cf 10 af b1 52 67 d1 dc 77 eb c2 56 8b c8 a5 4e |....Rg..w..V...N|
00000170 70 af 19 f3 de 08 e6 99 17 ec f3 16 f0 1b 16 91 |p...............|
00000180 b1 5d e0 7f 98 e7 5f 18 56 ee 71 48 7b c8 3d e3 |.]...._.V.qH{.=.|
00000190 c6 ae 33 9e fd 22 df 32 5e e4 70 f2 df 13 ad 55 |..3..".2^.p....U|
000001a0 77 62 4e f6 80 3f 4b f4 2b 5f 65 3f 78 64 a2 e4 |wbN..?K.+_e?xd..|
000001b0 84 3f 08 fe e7 44 91 8b 7a d8 fe 24 f3 ac 00 01 |.?...D..z..$....|
000001c0 c1 ff 07 fe ff ff 02 00 00 00 40 52 26 08 00 fe |..........@R&...|
000001d0 ff ff 05 fe ff ff 42 52 26 08 11 36 72 05 00 00 |......BR&..6r...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200


=======Devices which don't seem to have a corresponding hard drive==============

sdb











拜谢了啊
sosoinlove
帖子: 30
注册时间: 2010-11-01 11:54

Re: 求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

#2

帖子 sosoinlove » 2010-11-06 10:02

...大哥大姐帮帮忙啊..
tay0314
帖子: 129
注册时间: 2007-12-01 22:39

Re: 求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

#3

帖子 tay0314 » 2010-11-06 10:03

我以前的经验就是boot/grub/grub.cfg这个文件没编辑好,修改一下win所在分区的参数应该就行了
sosoinlove
帖子: 30
注册时间: 2010-11-01 11:54

Re: 求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

#4

帖子 sosoinlove » 2010-11-06 10:07

tay0314 写了:我以前的经验就是boot/grub/grub.cfg这个文件没编辑好,修改一下win所在分区的参数应该就行了
话说 该怎么修改呢.. 刚上手啊 完全是个菜鸟
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

#5

帖子 onshoestring » 2010-11-06 10:18

============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 292015680 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.

Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr
1.

代码: 全选

sudo grub-install /dev/sda
2.
插入windows7安装光盘,从光盘启动,在光盘启动完成后,按下shift+f10键,调出cmd命令提示符。在命令提示符中输入:bootrec /fixboot回车
sosoinlove
帖子: 30
注册时间: 2010-11-01 11:54

Re: 求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

#6

帖子 sosoinlove » 2010-11-06 16:01

onshoestring 写了:
============================= Boot Info Summary: ==============================

=> Windows is installed in the MBR of /dev/sda

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
Boot sector info: Grub 2 is installed in the boot sector of sda1 and
looks at sector 292015680 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.

Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe /grldr
1.

代码: 全选

sudo grub-install /dev/sda
2.
插入windows7安装光盘,从光盘启动,在光盘启动完成后,按下shift+f10键,调出cmd命令提示符。在命令提示符中输入:bootrec /fixboot回车
按照上述方法之后好像那个引导坏了 然后ubuntu也无法进入了 不得已重装了win7


我还想装ubuntu 请问安装过程中有什么需要注意的么 ?
上述问题的发生可能是我当初安装的时候遗留下来的问题 不知道哪里操作失误了
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 求助..就时安装了ubuntu之后 win7无法进入了..似乎很多人问..

#7

帖子 onshoestring » 2010-11-06 16:40

什么原因连ubuntu也进不去了,不太清楚。
做第一步,ubuntu应该能进的。
做第二步是修复win7pbr,这样就能进win7。

感觉你win7是软破解,如果做了就应该能进破解前的状态,再破解一次就好了。当时应该把grub4dos的引导程序写到pbr。

安装时要注意不要把grub2写到win7的pbr,你的情况对应sda1。

grub2写到mbr(sda)
或grub2写/boot所在分区的pbr,没有单独分区就是/的挂载分区你的情况对应sda7,单独分区就是/boot的挂载分区。
回复