10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
xiaobangdelei
帖子: 43
注册时间: 2009-05-15 1:20

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#16

帖子 xiaobangdelei » 2011-03-05 22:11

smallapple 写了:你那个mbr有点奇怪,估计不是正常工具创建的。最好问问熊大。

那个找不到win7用手动加进去

代码: 全选

sudo gedit /etc/grub.d/40_custom
最后加入以下内容

代码: 全选

menuentry "Windows 7 "  {
	insmod part_msdos
	insmod ntfs
	set root='(/dev/sda,msdos1)'
	chainloader +1
}

代码: 全选

sudo gedit /etc/grub.d/30_os-prober
找到timeout=0的改为 timeout=10

代码: 全选

sudo update-grub
试试
按照你说的做了,结果如下!
sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-5-generic
Found initrd image: /boot/initrd.img-2.6.38-5-generic
Found memtest86+ image: /boot/memtest86+.bin
done
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#17

帖子 smallapple » 2011-03-05 22:15

sudo cat /boot/grub/grub.cfg
看看有没有win7选项,有的话重启选win7看能进不。
xiaobangdelei
帖子: 43
注册时间: 2009-05-15 1:20

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#18

帖子 xiaobangdelei » 2011-03-05 22:21

smallapple 写了:sudo cat /boot/grub/grub.cfg
看看有没有win7选项,有的话重启选win7看能进不。
谢谢你这么耐心!现在是由grub引导了,windows7的选项也出来了,但是选择windows7后,报错!error:no such disk!
头像
黄美姬
帖子: 8428
注册时间: 2009-10-08 11:15
来自: 大城市铁岭

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#19

帖子 黄美姬 » 2011-03-05 22:34

围观取经 :em04
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal- ... ts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal- ... tx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#20

帖子 smallapple » 2011-03-05 22:37

/usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
那个mbr不对劲,我看不懂,PM熊大看看。

先用win7的
bootrec /Fixmbr

bootrec /FixBoot
修复后用windows引导先凑和。

PS: 估计那个和win7引导有关。
xiaobangdelei
帖子: 43
注册时间: 2009-05-15 1:20

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#21

帖子 xiaobangdelei » 2011-03-05 22:41

smallapple 写了:
/usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
那个mbr不对劲,我看不懂,PM熊大看看。

先用win7的
bootrec /Fixmbr

bootrec /FixBoot
修复后用windows引导先凑和。
熊大是哪个?刚来这里,不好意思!
fixmbr后,是否能让mbr正常?
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#22

帖子 smallapple » 2011-03-05 22:48

billbear

按你在6L 的信息看应该不能更改mbr的,这样吧,你把

代码: 全选

cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
那个 results贴出来后 PM billbear瞧瞧
xiaobangdelei
帖子: 43
注册时间: 2009-05-15 1:20

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#23

帖子 xiaobangdelei » 2011-03-05 22:53

smallapple 写了:billbear

按你在6L 的信息看应该不能更改mbr的,这样吧,你把

代码: 全选

cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
那个 results贴出来后 PM billbear瞧瞧
fixboot fixmbr后,现在用你置顶贴里提供的g4d可以进入ubuntu和Windows,现在我进ubuntu再按照你刚才提供的方法试一次,看用grub引导是否能进Windows!
头像
雨坤毅
帖子: 232
注册时间: 2010-08-28 14:34
系统: ArchLinux
联系:

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#24

帖子 雨坤毅 » 2011-03-05 22:55

xiaobangdelei 写了:
雨坤毅 写了::em01 用g4d把,手动引导,哈哈 :em11
现在是用的类似g4d的引导,可以进入windows也可以进入ubuntu,但是我想用grub引导,那样,进ubuntu的时候没有二级菜单!
可以阿,用g4d可以直接引导系统,还可以引导到菜单,看我的menu.lst

代码: 全选


checkrange 0x21 read 0x8280 && pxe detect NotExist
gfxmenu /boot/grub/message /boot/grub/fonts
configfile /boot/grub/menu.lst
fontfile /boot/grub/fonts
color blue/green yellow/red white/magenta white/magenta

default 0

timeout=30



title 正常启动 Ubuntu10.10 系统
uuid 93ee9f6c-09ed-4f21-9976-a6acd1a3aae2
kernel /boot/vmlinuz-2.6.35-27-generic root=UUID=93ee9f6c-09ed-4f21-9976-a6acd1a3aae2 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.35-27-generic
quiet

title 进入 Ubuntu10.10 启动菜单
root (hd0,5)
kernel /boot/grub/core.img


title 启动 Windows XP 系统
find --set-root /ntldr
chainloader /ntldr
boot

title 启动 Windows7 系统
find --set-root /bootmgr
chainloader /bootmgr
boot


title 启动 Linux 系统克隆工具 G4l
map --mem /image/g4l-v0.36.iso (hd32)
map --hook
chainloader (hd32)
boot


title 启动 Win7PE 维护系统
chainloader /7pe_mgr
boot

title 启动 WinXPPE 维护系统
chainloader /wxpe/setupldr.bin
boot

title 启动 自由天空 Win2003PE 维护系统
chainloader /AXPE/setupldr.bin
boot

title 启动 Win2003PE 维护系统
map --mem /image/win2003pe.iso (hd32)
map --hook
chainloader (hd32)
boot

title 启动 GHOST, DISKGEN, PQMAGIC, MHDD, DOS 维护工具
clear
map --mem /image/ghost.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)



title 从 CD/DVD 1 启动
cdrom --init
map --hook
chainloader (cd0)
boot


title 进入Grub命令行
configfile /boot/grub/menu_cmd.lst

---------------------------------------
http://yky.me
---------------------------------------
xiaobangdelei
帖子: 43
注册时间: 2009-05-15 1:20

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#25

帖子 xiaobangdelei » 2011-03-05 23:02

smallapple 写了:billbear

按你在6L 的信息看应该不能更改mbr的,这样吧,你把

代码: 全选

cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
那个 results贴出来后 PM billbear瞧瞧
results内容如下:
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: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /boot.ini /bootmgr /Boot/BCD
/Windows/System32/winload.exe /boot/grub/core.img

sda2: _________________________________________________________________________

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:

sda3: _________________________________________________________________________

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:

sda4: _________________________________________________________________________

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

sda5: _________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu natty (development
branch)
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

=========================== 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 99,495,926 99,495,864 7 HPFS/NTFS
/dev/sda2 99,495,936 116,273,151 16,777,216 7 HPFS/NTFS
/dev/sda3 116,273,152 284,055,551 167,782,400 7 HPFS/NTFS
/dev/sda4 284,057,598 312,580,095 28,522,498 5 Extended
/dev/sda5 284,057,600 312,580,095 28,522,496 83 Linux


blkid -c /dev/null: ____________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 9494E0AE94E09450 ntfs
/dev/sda2 2E50D0E450D0B3B5 ntfs 本地磁盘
/dev/sda3 4686594F8659411B ntfs 本地磁盘
/dev/sda4: PTTYPE="dos"
/dev/sda5 cd5f666a-fcb4-4cae-9a13-4a42fca61cca ext4
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda5 / ext4 (rw,errors=remount-ro,commit=0)


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

[boot loader]
timeout=0
default=c:\g2ldr.mbr
[operating systems]
C:\g2ldr.mbr="Grub4Dos"
=================== sda1: Location of files loaded by Grub: ===================


??GB: boot/grub/core.img

=========================== sda5/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 video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
set locale_dir=($root)/boot/grub/locale
set lang=zh_CN
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
set matches_file=${prefix}/gfxblacklist.txt
set class_match=3
if lua ${prefix}/hwmatch.lua; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu,Linux 2.6.38-5-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
linux /boot/vmlinuz-2.6.38-5-generic root=UUID=cd5f666a-fcb4-4cae-9a13-4a42fca61cca ro vga=792 quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-5-generic
}
menuentry 'Ubuntu,Linux 2.6.38-5-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
echo 'Loading Linux 2.6.38-5-generic ...'
linux /boot/vmlinuz-2.6.38-5-generic root=UUID=cd5f666a-fcb4-4cae-9a13-4a42fca61cca ro single vga=792
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-5-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='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### 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.
menuentry "Windows 7 " {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
chainloader +1
}
### 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 ###

=============================== sda5/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/sda5 during installation
UUID=cd5f666a-fcb4-4cae-9a13-4a42fca61cca / ext4 errors=remount-ro 0 1

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


149.8GB: boot/grub/core.img
156.5GB: boot/grub/grub.cfg
157.1GB: boot/initrd.img-2.6.38-5-generic
150.9GB: boot/vmlinuz-2.6.38-5-generic
157.1GB: initrd.img
150.9GB: vmlinuz
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#26

帖子 smallapple » 2011-03-05 23:09

看不出啥问题,等熊大 :em02
xiaobangdelei
帖子: 43
注册时间: 2009-05-15 1:20

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#27

帖子 xiaobangdelei » 2011-03-05 23:19

smallapple 写了:看不出啥问题,等熊大 :em02
已经pm熊大!他天天上线不?这个问题搞一天了,唉!谢谢你这么耐心!windows太难搞了,真想单系统ubuntu!
xiaobangdelei
帖子: 43
注册时间: 2009-05-15 1:20

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#28

帖子 xiaobangdelei » 2011-03-05 23:26

smallapple 写了:看不出啥问题,等熊大 :em02
问一下,update-manager -d和update-manager -d -c有什么区别?
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#29

帖子 billbear » 2011-03-06 0:02

smallapple 写了:
/usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
那个mbr不对劲,我看不懂,PM熊大看看。
adobe 耍流氓,我爆过粗口的
viewtopic.php?f=139&t=311172

显然,在 Colin Watson 发现 adobe 之流的流氓行为后,新的 grub2 大概会拒绝生成 windows 引导菜单,即使你自己写了菜单,大概也会拒绝工作,因为一旦进入 windows,abode 就要破坏 grub2。你必须在 adobe 和 grub2 之间二选一。
如果你必须保留 adobe,就用 grub4dos 或者 grub 0.97,如果你想用 grub2,就先把 adobe 清除出你的硬盘。不幸的是,流氓总是很难清除的,卸载之后,被偷偷写入签名的扇区还会存在,目的就是使你不能通过卸载再重新安装得到第二个试用期。你得自己计算位置,用 dd 清除掉这个签名。
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: 10.10升级到11.04后windows的启动菜单没了。紧急,紧急!

#30

帖子 billbear » 2011-03-06 2:11

smallapple 写了:11.04的grub有点2,听说会把win分区的引导扇区改写了,有win安装盘的话用安装盘启动进修复模式,修复下引导扇区,没有的话用PE修复。
第一次听说这。介绍一下你知道的情况。
猜想:新修改的 grub2 如果侦测到 adobe 之流,为了避开被它窃取的扇区,把自己往后挪了,结果没处理好越过了边界,写入了 sda1 的启动扇区。

@xiaobangdelei:
请帮忙贴出你的 32 扇区,谢谢:
sudo dd if=/dev/sda bs=512 count=1 skip=32 2> /dev/null | hd
回复