当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 先装的WIN7,后装的ubuntu,现在是ubuntu启动正常,WIN7启动不了
帖子发表于 : 2010-12-09 23:21 

注册: 2010-12-08 10:34
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
引导里面有WIN7选项,先是点了没任何反映,调回选项,后来用ubuntu上论坛找了半天,继续尝试,结果点win7选项出现 no grldr
实在没办法来求助了。看到论坛里小苹果回答别人的时候叫别人贴这个,我先贴上了。
http://sourceforge.net/projects/bootinfoscript/

把文件先复制到桌面,终端运行:

代码:
sudo bash ~/桌面/boot_info_script055.sh

结果

Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #7 for (,msdos7)/boot/grub.

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Unknown
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /boot.ini /bootmgr /Boot/BCD /ntldr /NTDETECT.COM

sda2: _________________________________________________________________________

File system: ntfs
Boot sector type: Unknown
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /boot.ini /Windows/System32/winload.exe /grldr
/wubildr.mbr /ubuntu/winboot/wubildr.mbr /wubildr
/ubuntu/winboot/wubildr

sda3: _________________________________________________________________________

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

sda5: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files/dirs:

sda6: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
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

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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 * 2,048 206,847 204,800 7 HPFS/NTFS
/dev/sda2 211,680 102,392,639 102,180,960 7 HPFS/NTFS
/dev/sda3 102,398,371 976,751,999 874,353,629 f W95 Ext d (LBA)
/dev/sda5 102,398,373 409,593,239 307,194,867 7 HPFS/NTFS
/dev/sda6 409,593,303 716,788,169 307,194,867 7 HPFS/NTFS
/dev/sda7 716,788,233 976,751,999 259,963,767 83 Linux


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 3C2AD5F32AD5A9E2 ntfs 系统保留
/dev/sda2 9238506938504E7B ntfs
/dev/sda3: PTTYPE="dos"
/dev/sda5 60E48605E485DE22 ntfs
/dev/sda6 101C31551C3136D6 ntfs
/dev/sda7 eab96adc-8bfe-40d9-9b23-d18070bf27d5 ext4
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda7 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sda2 /media/9238506938504E7B fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda1 /media/系统保留 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda5 /media/60E48605E485DE22 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)


================================ sda1/boot.ini: ================================

;

;Warning: Boot.ini is used on Windows XP and earlier operating systems.

;Warning: Use BCDEDIT.exe to modify Windows Vista boot options.

;

[boot loader]

timeout=1

default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /NOEXECUTE=OPTIN /FASTDETECT


================================ sda2/boot.ini: ================================

[boot loader]

[operating systems]

c:\grldr.mbr="ubuntu"
=================== sda2: Location of files loaded by Grub: ===================


??GB: initrd.lz
??GB: vmlinuz

=========================== 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 eab96adc-8bfe-40d9-9b23-d18070bf27d5
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 eab96adc-8bfe-40d9-9b23-d18070bf27d5
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 eab96adc-8bfe-40d9-9b23-d18070bf27d5
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=eab96adc-8bfe-40d9-9b23-d18070bf27d5 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 eab96adc-8bfe-40d9-9b23-d18070bf27d5
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=eab96adc-8bfe-40d9-9b23-d18070bf27d5 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 eab96adc-8bfe-40d9-9b23-d18070bf27d5
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 eab96adc-8bfe-40d9-9b23-d18070bf27d5
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 3c2ad5f32ad5a9e2
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
/dev/sda7 / ext4 errors=remount-ro 0 1
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


433.7GB: boot/grub/core.img
440.1GB: boot/grub/grub.cfg
367.8GB: boot/initrd.img-2.6.35-22-generic
433.7GB: boot/vmlinuz-2.6.35-22-generic
367.8GB: initrd.img
433.7GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda1

00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 10 00 00 08 00 00 |........?.......|
00000020 00 00 00 00 80 00 80 00 ff 1f 03 00 00 00 00 00 |................|
00000030 55 21 00 00 00 00 00 00 02 00 00 00 00 00 00 00 |U!..............|
00000040 f6 00 00 00 01 00 00 00 e2 a9 d5 2a f3 d5 2a 3c |...........*..*<|
00000050 00 00 00 00 fa fc b6 ff 31 c0 bd 00 7c 8e d0 8d |........1...|...|
00000060 66 e0 fb 89 56 fe 50 b4 41 bb aa 55 cd 13 1f 72 |f...V.P.A..U...r|
00000070 10 81 fb 55 aa 75 0a f6 c1 01 74 05 c6 86 aa 01 |...U.u....t.....|
00000080 42 16 07 66 81 be fc 07 47 52 55 42 74 13 bb 00 |B..f....GRUBt...|
00000090 7e 66 8b 86 1c 00 66 40 e8 e1 00 e8 de 00 e8 db |~f....f@........|
000000a0 00 66 31 c0 8b 46 0b 89 46 fc e8 8c 00 88 cb 8a |.f1..F..F.......|
000000b0 46 0d e8 84 00 88 cd 00 dd 80 ed 09 88 6e fb 8a |F............n..|
000000c0 46 44 e8 65 00 80 f9 03 76 05 b0 01 e9 fb 00 88 |FD.e....v.......|
000000d0 4e f9 8a 46 40 e8 52 00 80 f9 01 75 ed 88 4e fa |N..F@.R....u..N.|
000000e0 66 8b 46 30 88 e9 66 d3 e0 66 03 86 1c 00 66 89 |f.F0..f..f....f.|
000000f0 46 f4 ba 01 00 8a 4e fa d3 e2 89 d1 bb 00 20 53 |F.....N....... S|
00000100 e8 79 00 e2 fb 5b 81 3f 46 49 75 6c 89 d1 e8 34 |.y...[.?FIul...4|
00000110 00 89 df b0 80 e8 3f 02 72 5e bb 00 38 66 31 c0 |......?.r^..8f1.|
00000120 b0 05 e8 89 03 89 df e9 d6 00 08 c0 78 04 88 e9 |............x...|
00000130 eb 09 f6 d8 2c 09 88 c1 c3 30 c9 fe c1 66 d1 e8 |....,....0...f..|
00000140 73 f9 fe c9 c3 53 57 89 df 8b 47 06 48 89 c3 f7 |s....SW...G.H...|
00000150 66 fc c1 e1 09 39 c1 75 1f 89 d9 89 fb 03 5f 04 |f....9.u......_.|
00000160 8b 07 83 ef 02 03 7e fc 83 c3 02 3b 05 75 09 8b |......~....;.u..|
00000170 17 89 15 e2 f0 5f 5b c3 b0 02 eb 4e 66 60 66 31 |....._[....Nf`f1|
00000180 d2 66 52 66 50 06 53 6a 01 6a 10 66 31 c9 66 ff |.fRfP.Sj.j.f1.f.|
00000190 76 18 59 66 f7 f1 42 59 52 31 d2 66 f7 f1 86 d6 |v.Yf..BYR1.f....|
000001a0 59 86 c5 c0 e4 06 08 e1 b8 01 02 89 e6 8a 56 fe |Y.............V.|
000001b0 cd 13 61 66 61 72 37 66 40 03 5e 0b 73 09 52 8c |..afar7f@.^.s.R.|
000001c0 c2 80 c6 10 8e c2 5a c3 30 00 00 86 c8 01 eb 1e |......Z.0.......|
000001d0 4e 6f 20 67 72 6c 64 72 00 00 00 00 00 00 00 00 |No grldr........|
000001e0 00 00 00 00 00 00 00 00 00 00 00 20 d3 a1 be c8 |........... ....|
000001f0 7d ac b4 0e cd 10 3c 00 75 f7 eb fe 00 00 55 aa |}.....<.u.....U.|
00000200

Unknown BootLoader on sda2

00000000 eb 52 90 4e 54 46 53 20 20 20 20 00 02 08 00 00 |.R.NTFS .....|
00000010 00 00 00 00 00 f8 00 00 3f 00 f0 00 e0 3a 03 00 |........?....:..|
00000020 00 00 00 00 80 00 80 00 5f 28 17 06 00 00 00 00 |........_(......|
00000030 00 00 0c 00 00 00 00 00 02 00 00 00 00 00 00 00 |................|
00000040 f6 00 00 00 01 00 00 00 7b 4e 50 38 69 50 38 92 |........{NP8iP8.|
00000050 00 00 00 00 fa fc b6 ff 31 c0 bd 00 7c 8e d0 8d |........1...|...|
00000060 66 e0 fb 89 56 fe 50 b4 41 bb aa 55 cd 13 1f 72 |f...V.P.A..U...r|
00000070 10 81 fb 55 aa 75 0a f6 c1 01 74 05 c6 86 aa 01 |...U.u....t.....|
00000080 42 16 07 66 81 be fc 07 47 52 55 42 74 13 bb 00 |B..f....GRUBt...|
00000090 7e 66 8b 86 1c 00 66 40 e8 e1 00 e8 de 00 e8 db |~f....f@........|
000000a0 00 66 31 c0 8b 46 0b 89 46 fc e8 8c 00 88 cb 8a |.f1..F..F.......|
000000b0 46 0d e8 84 00 88 cd 00 dd 80 ed 09 88 6e fb 8a |F............n..|
000000c0 46 44 e8 65 00 80 f9 03 76 05 b0 01 e9 fb 00 88 |FD.e....v.......|
000000d0 4e f9 8a 46 40 e8 52 00 80 f9 01 75 ed 88 4e fa |N..F@.R....u..N.|
000000e0 66 8b 46 30 88 e9 66 d3 e0 66 03 86 1c 00 66 89 |f.F0..f..f....f.|
000000f0 46 f4 ba 01 00 8a 4e fa d3 e2 89 d1 bb 00 20 53 |F.....N....... S|
00000100 e8 79 00 e2 fb 5b 81 3f 46 49 75 6c 89 d1 e8 34 |.y...[.?FIul...4|
00000110 00 89 df b0 80 e8 3f 02 72 5e bb 00 38 66 31 c0 |......?.r^..8f1.|
00000120 b0 05 e8 89 03 89 df e9 d6 00 08 c0 78 04 88 e9 |............x...|
00000130 eb 09 f6 d8 2c 09 88 c1 c3 30 c9 fe c1 66 d1 e8 |....,....0...f..|
00000140 73 f9 fe c9 c3 53 57 89 df 8b 47 06 48 89 c3 f7 |s....SW...G.H...|
00000150 66 fc c1 e1 09 39 c1 75 1f 89 d9 89 fb 03 5f 04 |f....9.u......_.|
00000160 8b 07 83 ef 02 03 7e fc 83 c3 02 3b 05 75 09 8b |......~....;.u..|
00000170 17 89 15 e2 f0 5f 5b c3 b0 02 eb 4e 66 60 66 31 |....._[....Nf`f1|
00000180 d2 66 52 66 50 06 53 6a 01 6a 10 66 31 c9 66 ff |.fRfP.Sj.j.f1.f.|
00000190 76 18 59 66 f7 f1 42 59 52 31 d2 66 f7 f1 86 d6 |v.Yf..BYR1.f....|
000001a0 59 86 c5 c0 e4 06 08 e1 b8 01 02 89 e6 8a 56 fe |Y.............V.|
000001b0 cd 13 61 66 61 72 37 66 40 03 5e 0b 73 09 52 8c |..afar7f@.^.s.R.|
000001c0 c2 80 c6 10 8e c2 5a c3 30 00 00 86 c8 01 eb 1e |......Z.0.......|
000001d0 4e 6f 20 67 72 6c 64 72 00 00 00 00 00 00 00 00 |No grldr........|
000001e0 00 00 00 00 00 00 00 00 00 00 00 20 d3 a1 be c8 |........... ....|
000001f0 7d ac b4 0e cd 10 3c 00 75 f7 eb fe 00 00 55 aa |}.....<.u.....U.|
00000200


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 先装的WIN7,后装的ubuntu,现在是ubuntu启动正常,WIN7启动不了
帖子发表于 : 2010-12-10 10:47 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
是不是软解的win7?破解文件grldr丢了。
sda1: /bootmgr复制一份为/grldr(保留原来的bootmgr),重启进win7再破解。


_________________
电子书下载:
鸟哥的Linux私房菜 基础学习篇 第三版 pdf
鸟哥的Linux私房菜 服务器架设篇 第三版 pdf


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 先装的WIN7,后装的ubuntu,现在是ubuntu启动正常,WIN7启动不了
帖子发表于 : 2010-12-10 15:20 

注册: 2010-12-08 10:34
帖子: 6
送出感谢: 0 次
接收感谢: 0 次
谢谢啊,昨天晚上坚持到12点,终于搞好了,就是你说的这个方法(在别的帖子上看到的) :em06
我的win7 刷bios硬激的


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译