win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
chfdy
帖子: 5
注册时间: 2010-11-18 16:23

win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#1

帖子 chfdy » 2010-11-18 16:32

如题,现在开机直接进入了ubuntu,没有安装双系统的提示选择界面,请问应该怎么办?

下面是我的硬盘安装情况,可能有用。C盘安装了win7,重新开辟的一个分区安装的ubuntu。

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.
=> Grub 2 is installed in the MBR of /dev/sdb and looks on the same drive in
partition #9 for (,msdos9)/boot/grub.

sda1: _________________________________________________________________________

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

sda2: _________________________________________________________________________

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

sda8: _________________________________________________________________________

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

sda9: _________________________________________________________________________

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

sda10: _________________________________________________________________________

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

sdb2: _________________________________________________________________________

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

sdb5: _________________________________________________________________________

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

=========================== 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 * 63 163,846,934 163,846,872 7 HPFS/NTFS
/dev/sda2 163,846,996 976,768,064 812,921,069 f W95 Ext d (LBA)
/dev/sda5 163,846,998 368,659,619 204,812,622 7 HPFS/NTFS
/dev/sda6 368,659,683 522,273,149 153,613,467 7 HPFS/NTFS
/dev/sda7 522,274,816 561,337,315 39,062,500 83 Linux
/dev/sda8 573,472,368 778,284,989 204,812,622 7 HPFS/NTFS
/dev/sda9 778,285,053 976,768,064 198,483,012 7 HPFS/NTFS
/dev/sda10 561,338,368 573,470,719 12,132,352 82 Linux swap / Solaris


Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
240 heads, 63 sectors/track, 10337 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdb2 15,120 156,295,439 156,280,320 f W95 Ext d (LBA)
/dev/sdb5 * 15,183 156,295,439 156,280,257 7 HPFS/NTFS


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda10 f2c35959-d851-4853-99b9-dceb24889ee2 swap
/dev/sda1 4058EB6758EB5A64 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 7AE4E19CE4E15AC1 ntfs 电影
/dev/sda6 BED8F4D0D8F487C3 ntfs 书籍
/dev/sda7 86b8531e-bf2b-46a3-a785-dc06eded6a28 ext4
/dev/sda8 A09007E59007C0B0 ntfs 游戏
/dev/sda9 7C048D08048CC71C ntfs 学习
/dev/sda: PTTYPE="dos"
/dev/sdb2: PTTYPE="dos"
/dev/sdb5 B2ACC6B9ACC676FF ntfs 备份
/dev/sdb: PTTYPE="dos"
error: /dev/sdd: No medium found
error: /dev/sde: No medium found
error: /dev/sdf: No medium found
error: /dev/sdg: No medium found

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

Device Mount_Point Type Options

/dev/sda7 / ext4 (rw,errors=remount-ro,commit=0)
/dev/sda5 /media/电影 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda6 /media/书籍 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda9 /media/学习 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda8 /media/游戏 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sda1 /media/4058EB6758EB5A64 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
/dev/sdb5 /media/备份 fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)


=========================== 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 86b8531e-bf2b-46a3-a785-dc06eded6a28
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 86b8531e-bf2b-46a3-a785-dc06eded6a28
set locale_dir=($root)/boot/grub/locale
set lang=en
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 86b8531e-bf2b-46a3-a785-dc06eded6a28
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=86b8531e-bf2b-46a3-a785-dc06eded6a28 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 86b8531e-bf2b-46a3-a785-dc06eded6a28
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=86b8531e-bf2b-46a3-a785-dc06eded6a28 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/11_linux_xen_proxy ###
### END /etc/grub.d/11_linux_xen_proxy ###

### BEGIN /etc/grub.d/12_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set 86b8531e-bf2b-46a3-a785-dc06eded6a28
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 86b8531e-bf2b-46a3-a785-dc06eded6a28
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/12_memtest86+ ###

### BEGIN /etc/grub.d/13_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### END /etc/grub.d/13_os-prober ###

### BEGIN /etc/grub.d/14_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/14_custom ###

### BEGIN /etc/grub.d/16_linux_xen_proxy ###
### END /etc/grub.d/16_linux_xen_proxy ###

=============================== 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
# swap was on /dev/sda10 during installation
UUID=f2c35959-d851-4853-99b9-dceb24889ee2 none swap sw 0 0

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


273.9GB: boot/grub/core.img
282.7GB: boot/grub/grub.cfg
268.2GB: boot/initrd.img-2.6.35-22-generic
273.9GB: boot/vmlinuz-2.6.35-22-generic
268.2GB: initrd.img
273.9GB: vmlinuz
=======Devices which don't seem to have a corresponding hard drive==============

sdd sde sdf sdg
chfdy
帖子: 5
注册时间: 2010-11-18 16:23

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#3

帖子 chfdy » 2010-11-18 16:43

谢谢楼上 :em05
试了,结果如下:
sudo update-grub
[sudo] password for chfdy:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
done
上面似乎没有FOUND win7,重启仍然直接进入了ubuntu。
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#4

帖子 onshoestring » 2010-11-18 17:01

sda1缺/Boot/BCD
插入windows7安装光盘,从光盘启动,在光盘启动完成后,按下shift+f10键,调出cmd命令提示符。在命令提示符中输入:
bcdboot c:\windows /s c:
chfdy
帖子: 5
注册时间: 2010-11-18 16:23

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#5

帖子 chfdy » 2010-11-18 19:35

:-),有没有其他方法?
我的安装光盘没有从光盘启动,只有直接安装。。还有Windows PE,但是PE版本低了,运行不了bcdboot。
chfdy
帖子: 5
注册时间: 2010-11-18 16:23

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#6

帖子 chfdy » 2010-11-18 20:00

我刚才重装了win7,结果还是不提示我,直接进了ubuntu,我日
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#7

帖子 onshoestring » 2010-11-18 20:13

sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Windows/System32/winload.exe /grldr
重装后运行Boot Info Script 0.55,看红色行有没有/Boot/BCD,有的话,

代码: 全选

sudo update-grub

win7是ghost版的?
chfdy
帖子: 5
注册时间: 2010-11-18 16:23

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#8

帖子 chfdy » 2010-11-18 20:32

找到了win7了, :em11 漂亮!
头像
scrutator
帖子: 53
注册时间: 2007-07-10 10:52

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#9

帖子 scrutator » 2010-11-20 10:38

你可以试试用win7的修复,修复一下引导。然后再用easyBCD引导出所有的系统。
nuomi2006
帖子: 7
注册时间: 2009-10-26 20:07

Re: win7下使用u盘安装ubuntu10.10后,win7启动项丢失了,求指导

#10

帖子 nuomi2006 » 2010-11-20 12:24

:em01 mark 学习了
人在天朝,笑而不语
回复