10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
x--ray
帖子: 6
注册时间: 2011-01-28 3:37

10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

#1

帖子 x--ray » 2011-01-28 20:01

原来是Win7 软件激活的,昨天下了10.10 版ubuntu。硬盘安装,我将本来一个磁盘格了用来安装,装好后UBUNTU正常

但开机Win7就无法启动了。系统列表有win7,选择win7后闪一下又回到最初的选择界面

刚接触ubuntu,网上看了一些方法,弄了2天还没搞定, :em20 ,请教论坛的热心前辈,万分感谢!
上次由 x--ray 在 2011-01-28 20:05,总共编辑 2 次。
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 10.10双系统启动问题,弄了2天还没搞定,请教多谢!

#2

帖子 onshoestring » 2011-01-28 20:04

在浏览器里 ctrl-c 是复制,在终端里 ctrl-shift-v 是粘帖

终端运行:

代码: 全选

 cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
把RESULTS.txt文件内容贴上来。
头像
be00
帖子: 805
注册时间: 2008-07-28 19:51
来自: 长沙
联系:

Re: 10.10双系统启动问题,弄了2天还没搞定,请教多谢!

#3

帖子 be00 » 2011-01-28 20:05

和我的情况一样,我猜,你的硬盘/dev/sda1是隐藏分区吧
我的乌斑兔儿:http://zhanggang.net/m/b/b1/ubuntu右键选择在新的窗体打开
右边有一只黄手 ----> 或者注册Dropbox中文版感谢我
x--ray
帖子: 6
注册时间: 2011-01-28 3:37

Re: 10.10双系统启动问题,弄了2天还没搞定,请教多谢!

#4

帖子 x--ray » 2011-01-28 20:28

onshoestring 写了:在浏览器里 ctrl-c 是复制,在终端里 ctrl-shift-v 是粘帖

终端运行:

代码: 全选

 cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
把RESULTS.txt文件内容贴上来。
您的意思是,终端运算上面的代码后,然后把桌面那个RESULT.txt中的代码粘到终端按回车?我超级菜鸟,问的小白您勿怪。
x--ray
帖子: 6
注册时间: 2011-01-28 3:37

Re: 10.10双系统启动问题,弄了2天还没搞定,请教多谢!

#5

帖子 x--ray » 2011-01-28 20:30

be00 写了:和我的情况一样,我猜,你的硬盘/dev/sda1是隐藏分区吧
xd是怎么解决的?求教!

2楼的xd的意思是


终端运算上面的代码后,然后把桌面那个RESULT.txt中的代码粘到 终端按回车?还是粘上帖子中,老兄看下出了啥问题?我超级菜鸟,问的小白您勿怪。



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 170114104 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: /NST/menu.lst /boot.ini /bootmgr /Boot/BCD
/Windows/System32/winload.exe /ntldr /NTDETECT.COM

sda2: _________________________________________________________________________

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

sda5: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
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

sda8: _________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

sda9: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

=========================== 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,685,444 58,685,382 7 HPFS/NTFS
/dev/sda2 58,685,506 312,576,704 253,891,199 f W95 Ext d (LBA)
/dev/sda5 58,685,508 156,328,514 97,643,007 7 HPFS/NTFS
/dev/sda6 234,468,738 312,576,704 78,107,967 7 HPFS/NTFS
/dev/sda7 156,329,984 175,859,711 19,529,728 83 Linux
/dev/sda8 175,861,760 181,719,039 5,857,280 82 Linux swap / Solaris
/dev/sda9 181,721,088 234,467,327 52,746,240 83 Linux


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 B02880F02880B6BE ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 24D4AB4BD4AB1DD4 ntfs SOFT
/dev/sda6 260035290035017B ntfs NBA
/dev/sda7 15e68e99-a464-4409-807e-05fd05071069 ext4
/dev/sda8 7cb01b91-8718-4d95-8d15-816c93c83b41 swap
/dev/sda9 2a224d0b-4161-4546-b165-3ad8bde862f4 ext4
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda7 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sda9 /home ext4 (rw,commit=0)


============================== sda1/NST/menu.lst: ==============================

root

kernel /vmlinuz iso-scan/filename=/ubuntu-10.10-desktop-i386.iso boot=casper splash

initrd /initrd.lz

boot

# NeoSmart NeoGrub Bootloader Configuration File

#

# This is the NeoGrub configuration file, and should be located at C:\NST\menu.lst

# Please see the EasyBCD Documentation for information on how to create/modify entries:

# http://neosmart.net/wiki/display/EBCD


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

[boot loader]

timeout=2

default=C:\mxldr

[operating systems]

C:\mxldr=MaxDOS 8

C:\mxldr=MaxDOS V6


=========================== 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 15e68e99-a464-4409-807e-05fd05071069
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 15e68e99-a464-4409-807e-05fd05071069
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 15e68e99-a464-4409-807e-05fd05071069
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=15e68e99-a464-4409-807e-05fd05071069 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 15e68e99-a464-4409-807e-05fd05071069
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=15e68e99-a464-4409-807e-05fd05071069 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 15e68e99-a464-4409-807e-05fd05071069
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 15e68e99-a464-4409-807e-05fd05071069
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 b02880f02880b6be
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/sdb7 / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb9 during installation
UUID=2a224d0b-4161-4546-b165-3ad8bde862f4 /home ext4 defaults 0 2
# swap was on /dev/sdb8 during installation
UUID=7cb01b91-8718-4d95-8d15-816c93c83b41 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


87.0GB: boot/grub/core.img
83.5GB: boot/grub/grub.cfg
80.7GB: boot/initrd.img-2.6.35-22-generic
86.9GB: boot/vmlinuz-2.6.35-22-generic
80.7GB: initrd.img
86.9GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 4f 93 c4 a1 62 1e fb a6 f8 2a 38 83 93 17 55 e2 |O...b....*8...U.|
00000010 25 02 ad 2f a9 af 11 dd 7d f5 ee 0e 97 0b 9a 86 |%../....}.......|
00000020 90 f7 a8 68 6a 19 de 5f 22 df e8 5c 5b fe 15 ec |...hj.._"..\[...|
00000030 76 12 04 43 15 7b d4 b1 35 63 cf e1 51 5f 05 e3 |v..C.{..5c..Q_..|
00000040 7d a1 b5 79 75 1f 34 8a 5e 43 ce e8 bf ff f2 0c |}..yu.4.^C......|
00000050 bb fd 5f e8 8e 6c 5c 17 89 04 9c dc 9d bc 2b c1 |.._..l\.......+.|
00000060 f8 22 f2 c8 f0 63 ae 84 e5 2f 5e b7 24 cb df 31 |."...c.../^.$..1|
00000070 37 7e 45 ea e0 8b 79 f3 ba f9 7c b5 d7 af 48 cf |7~E...y...|...H.|
00000080 d3 a9 d1 72 ed f1 06 e6 fc 83 d6 b5 c5 93 77 dd |...r..........w.|
00000090 d6 52 88 bd e5 ff fe 1c ad 63 a7 03 d7 fe 97 11 |.R.......c......|
000000a0 ac 1e 78 2c 2f 8f e1 41 48 bd c8 25 0e f3 89 f2 |..x,/..AH..%....|
000000b0 77 e8 69 d3 a0 da d7 30 7f 87 e0 a0 cb bb 8a 37 |w.i....0.......7|
000000c0 10 3e f9 92 89 4c d0 f8 bb 12 6b d5 fb 7b 5a 08 |.>...L....k..{Z.|
000000d0 87 23 c1 37 a6 dd 2b fb 64 05 32 70 a5 8d dd f9 |.#.7..+.d.2p....|
000000e0 ad 43 1f 3e 6c 19 dc 15 88 a8 64 37 c5 2d 96 09 |.C.>l.....d7.-..|
000000f0 e1 11 14 e9 9d 86 f2 e6 fe 1d ac 84 16 fb f9 77 |...............w|
00000100 77 f5 aa eb 15 74 51 94 f1 ea 4b cf f1 62 ab 6a |w....tQ...K..b.j|
00000110 e7 ca 8c 68 7f 3c 03 44 c1 88 5b 83 b0 d7 06 61 |...h.<.D..[....a|
00000120 ad f0 e7 06 e1 ae 0b c2 c2 04 44 73 17 f8 39 0b |..........Ds..9.|
00000130 08 b9 f3 77 ea 33 54 eb 07 21 6a 50 96 c8 7c 3e |...w.3T..!jP..|>|
00000140 75 0c 6e 4c f1 98 53 a1 6d 42 40 e7 a8 cf 50 97 |u.nL..S.mB@...P.|
00000150 c1 b8 4b 83 70 b4 8a 14 f8 29 92 6e 23 9a 87 c6 |..K.p....).n#...|
00000160 6a 33 d4 29 f0 e8 40 95 5f 0d 84 11 5c c4 2b e0 |j3.)..@._...\.+.|
00000170 c4 2d e3 3c 67 85 9c 4b 8d f1 0b c0 8e 12 e0 cc |.-.<g..K........|
00000180 24 ac 69 02 a7 e2 7f 25 ef f1 11 2e 1e e7 26 7e |$.i....%......&~|
00000190 e4 cf d0 ee 0b c2 dc 77 8f 14 c7 a5 79 1e 15 08 |.......w....y...|
000001a0 f9 e5 82 23 ab 4c b0 52 13 09 0a 17 5e ee fc 66 |...#.L.R....^..f|
000001b0 5f 82 6f ea 9f 97 82 1d e5 93 90 bb bf b3 00 01 |_.o.............|
000001c0 c1 ff 07 fe ff ff 02 00 00 00 ff e9 d1 05 00 fe |................|
000001d0 ff ff 05 fe ff ff 01 3d 7a 0a 7e d5 a7 04 00 00 |.......=z.~.....|
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
x--ray
帖子: 6
注册时间: 2011-01-28 3:37

Re: 10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

#7

帖子 x--ray » 2011-01-28 21:42

onshoestring 写了:说的没错

result.txt 粘上来了,你看下还要哪里修改过,手头没有win7的盘,实在不行明天去弄张win7盘来修复。
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

#8

帖子 onshoestring » 2011-01-28 21:56

viewtopic.php?f=139&t=314615二楼
如果能进win7,就重新进ubuntu

代码: 全选

sudo grub-install /dev/sda
sudo update-grub
再进win7下载bootice(无忧启动论坛)重写sda1,就是c盘的pbr。
sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
全部做完要重新软破解。
x--ray
帖子: 6
注册时间: 2011-01-28 3:37

Re: 10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

#9

帖子 x--ray » 2011-01-29 2:40

onshoestring 写了:viewtopic.php?f=139&t=314615二楼
如果能进win7,就重新进ubuntu

代码: 全选

sudo grub-install /dev/sda
sudo update-grub
再进win7下载bootice(无忧启动论坛)重写sda1,就是c盘的pbr。
sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2
全部做完要重新软破解。

试了很多边,还是闪一下,没能进入win7,绝望了,那么请问用win7安装盘可以不?
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

#10

帖子 smallapple » 2011-01-29 8:39

先在UB终端下执行

代码: 全选

sudo grub-install /dev/sda
再用win7启动光盘启动,进修复模式,在修复模式命令行下执行
bootrec /fixboot
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: 10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

#11

帖子 onshoestring » 2011-01-29 9:34

按smallapple说的做,没错。别忘了要重新软破解。
进修复模式命令行:
插入windows7安装光盘,从光盘启动,在光盘启动完成后,按下shift+f10键,调出cmd命令提示符。
x--ray
帖子: 6
注册时间: 2011-01-28 3:37

Re: 10.10双系统启动问题,弄了2天还没搞定,请教论坛的热心前辈,万分感谢!

#12

帖子 x--ray » 2011-01-29 14:15

多谢前面的热心xds,万分感谢,我现在就去试试。
头像
escorte girl
帖子: 1
注册时间: 2012-10-18 20:50

Re: 10.10???????,??2?????,?????????,????!

#13

帖子 escorte girl » 2012-10-18 20:51

太好了!只是想作出回應。我徹底喜歡您的文章。跟上forum.ubuntu.org.cn 偉大的工作。
回复