ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
-
- 帖子: 7
- 注册时间: 2010-06-02 22:20
ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
ubuntu10.04 win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?有单独的/boot,请大侠帮忙~~
roger@roger-laptop:~$ sudo update-grub2
[sudo] password for roger:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-25-generic
Found initrd image: /boot/initrd.img-2.6.32-25-generic
Found memtest86+ image: /memtest86+.bin
done
roger@roger-laptop:~$ sudo update-grub2
[sudo] password for roger:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-25-generic
Found initrd image: /boot/initrd.img-2.6.32-25-generic
Found memtest86+ image: /memtest86+.bin
done
- onshoestring
- 论坛版主
- 帖子: 4666
- 注册时间: 2009-09-06 5:53
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
http://sourceforge.net/projects/bootinfoscript/
把文件先复制到桌面,终端运行:
把RESULTS.txt文件内容贴上来。
把文件先复制到桌面,终端运行:
代码: 全选
sudo bash ~/桌面/boot_info_script055.sh
-
- 帖子: 7
- 注册时间: 2010-06-02 22:20
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
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 #10 for /grub.
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 603225188 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
sda2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
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 Vista/7
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files/dirs:
sda7: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda7 starts
at sector 63.
Operating System:
Boot files/dirs:
sda8: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /etc/fstab
sda9: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda10: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img /boot/grub/core.img
sda11: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 62,910,539 62,910,477 7 HPFS/NTFS
/dev/sda2 62,910,601 625,141,759 562,231,159 f W95 Ext d (LBA)
/dev/sda5 62,910,603 167,766,794 104,856,192 7 HPFS/NTFS
/dev/sda6 167,766,858 272,623,049 104,856,192 7 HPFS/NTFS
/dev/sda7 272,623,113 583,190,208 310,567,096 7 HPFS/NTFS
/dev/sda8 583,190,528 599,189,503 15,998,976 83 Linux
/dev/sda9 599,191,552 603,189,247 3,997,696 82 Linux swap / Solaris
/dev/sda10 603,191,296 603,383,807 192,512 83 Linux
/dev/sda11 603,385,856 625,141,759 21,755,904 83 Linux
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda10 c8dcf1a9-8718-4c11-a5ab-cb85b767667b ext3
/dev/sda11 8216d8d7-02c5-49fd-a85c-127b9e6e806a ext3
/dev/sda1 3028737828733BC2 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 08066CDC066CCC6E ntfs
/dev/sda6 28105EB9105E8E26 ntfs
/dev/sda7 FA6264016263C0CD ntfs
/dev/sda8 97cbb17f-4484-4518-ad0f-aeb8e782a895 ext3
/dev/sda9 22cc713c-2739-445a-a35d-80bbae71ef31 swap
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda8 / ext3 (rw,errors=remount-ro)
/dev/sda10 /boot ext3 (rw)
/dev/sda11 /home ext3 (rw)
=============================== sda8/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/sda8 / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda10 during installation
UUID=c8dcf1a9-8718-4c11-a5ab-cb85b767667b /boot ext3 defaults 0 2
# /home was on /dev/sda11 during installation
UUID=8216d8d7-02c5-49fd-a85c-127b9e6e806a /home ext3 defaults 0 2
# swap was on /dev/sda9 during installation
UUID=22cc713c-2739-445a-a35d-80bbae71ef31 none swap sw 0 0
=================== sda8: Location of files loaded by Grub: ===================
298.6GB: initrd.img
298.6GB: initrd.img.old
298.6GB: vmlinuz
298.6GB: vmlinuz.old
============================= sda10/grub/grub.cfg: =============================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 97cbb17f-4484-4518-ad0f-aeb8e782a895
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
set locale_dir=($root)/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锛孡inux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux /vmlinuz-2.6.32-26-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro quiet splash
initrd /initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-26-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
echo '杞藉叆 Linux ...'
linux /vmlinuz-2.6.32-26-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro single
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...'
initrd /initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux /vmlinuz-2.6.32-25-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro quiet splash
initrd /initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
echo '杞藉叆 Linux ...'
linux /vmlinuz-2.6.32-25-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro single
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...'
initrd /initrd.img-2.6.32-25-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### 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 ###
=================== sda10: Location of files loaded by Grub: ===================
308.9GB: boot/grub/core.img
308.8GB: grub/core.img
308.8GB: grub/grub.cfg
308.8GB: grub/stage2
308.8GB: initrd.img-2.6.32-25-generic
308.9GB: initrd.img-2.6.32-26-generic
308.8GB: vmlinuz-2.6.32-25-generic
308.8GB: vmlinuz-2.6.32-26-generic
============================= Boot Info Summary: ==============================
=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #10 for /grub.
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 603225188 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
sda2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
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 Vista/7
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files/dirs:
sda7: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda7 starts
at sector 63.
Operating System:
Boot files/dirs:
sda8: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /etc/fstab
sda9: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda10: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img /boot/grub/core.img
sda11: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 62,910,539 62,910,477 7 HPFS/NTFS
/dev/sda2 62,910,601 625,141,759 562,231,159 f W95 Ext d (LBA)
/dev/sda5 62,910,603 167,766,794 104,856,192 7 HPFS/NTFS
/dev/sda6 167,766,858 272,623,049 104,856,192 7 HPFS/NTFS
/dev/sda7 272,623,113 583,190,208 310,567,096 7 HPFS/NTFS
/dev/sda8 583,190,528 599,189,503 15,998,976 83 Linux
/dev/sda9 599,191,552 603,189,247 3,997,696 82 Linux swap / Solaris
/dev/sda10 603,191,296 603,383,807 192,512 83 Linux
/dev/sda11 603,385,856 625,141,759 21,755,904 83 Linux
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda10 c8dcf1a9-8718-4c11-a5ab-cb85b767667b ext3
/dev/sda11 8216d8d7-02c5-49fd-a85c-127b9e6e806a ext3
/dev/sda1 3028737828733BC2 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 08066CDC066CCC6E ntfs
/dev/sda6 28105EB9105E8E26 ntfs
/dev/sda7 FA6264016263C0CD ntfs
/dev/sda8 97cbb17f-4484-4518-ad0f-aeb8e782a895 ext3
/dev/sda9 22cc713c-2739-445a-a35d-80bbae71ef31 swap
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda8 / ext3 (rw,errors=remount-ro)
/dev/sda10 /boot ext3 (rw)
/dev/sda11 /home ext3 (rw)
=============================== sda8/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/sda8 / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda10 during installation
UUID=c8dcf1a9-8718-4c11-a5ab-cb85b767667b /boot ext3 defaults 0 2
# /home was on /dev/sda11 during installation
UUID=8216d8d7-02c5-49fd-a85c-127b9e6e806a /home ext3 defaults 0 2
# swap was on /dev/sda9 during installation
UUID=22cc713c-2739-445a-a35d-80bbae71ef31 none swap sw 0 0
=================== sda8: Location of files loaded by Grub: ===================
298.6GB: initrd.img
298.6GB: initrd.img.old
298.6GB: vmlinuz
298.6GB: vmlinuz.old
============================= sda10/grub/grub.cfg: =============================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 97cbb17f-4484-4518-ad0f-aeb8e782a895
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
set locale_dir=($root)/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锛孡inux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux /vmlinuz-2.6.32-26-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro quiet splash
initrd /initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-26-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
echo '杞藉叆 Linux ...'
linux /vmlinuz-2.6.32-26-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro single
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...'
initrd /initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux /vmlinuz-2.6.32-25-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro quiet splash
initrd /initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
echo '杞藉叆 Linux ...'
linux /vmlinuz-2.6.32-25-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro single
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...'
initrd /initrd.img-2.6.32-25-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### 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 ###
=================== sda10: Location of files loaded by Grub: ===================
308.9GB: boot/grub/core.img
308.8GB: grub/core.img
308.8GB: grub/grub.cfg
308.8GB: grub/stage2
308.8GB: initrd.img-2.6.32-25-generic
308.9GB: initrd.img-2.6.32-26-generic
308.8GB: vmlinuz-2.6.32-25-generic
308.8GB: vmlinuz-2.6.32-26-generic
- onshoestring
- 论坛版主
- 帖子: 4666
- 注册时间: 2009-09-06 5:53
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
插入windows7安装光盘,从光盘启动,在光盘启动完成后,按下shift+f10键,调出cmd命令提示符。在命令提示符中输入:bootrec /fixboot回车。sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Grub 2
- xiaofanxueqi
- 帖子: 59
- 注册时间: 2010-12-02 18:05
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
没碰到过
抛弃Windows...
_____________________________________________________________________________________
软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。
_____________________________________________________________________________________
软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。
-
- 帖子: 7
- 注册时间: 2010-06-02 22:20
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
onshoestring,
代码: 全选
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 #10 for /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 /Boot/BCD /Windows/System32/winload.exe
sda2: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
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 Vista/7
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files/dirs:
sda7: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda7 starts
at sector 63.
Operating System:
Boot files/dirs:
sda8: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /etc/fstab
sda9: _________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sda10: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img /boot/grub/core.img
sda11: _________________________________________________________________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 62,910,539 62,910,477 7 HPFS/NTFS
/dev/sda2 62,910,601 625,141,759 562,231,159 f W95 Ext d (LBA)
/dev/sda5 62,910,603 167,766,794 104,856,192 7 HPFS/NTFS
/dev/sda6 167,766,858 272,623,049 104,856,192 7 HPFS/NTFS
/dev/sda7 272,623,113 583,190,208 310,567,096 7 HPFS/NTFS
/dev/sda8 583,190,528 599,189,503 15,998,976 83 Linux
/dev/sda9 599,191,552 603,189,247 3,997,696 82 Linux swap / Solaris
/dev/sda10 603,191,296 603,383,807 192,512 83 Linux
/dev/sda11 603,385,856 625,141,759 21,755,904 83 Linux
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda10 c8dcf1a9-8718-4c11-a5ab-cb85b767667b ext3
/dev/sda11 8216d8d7-02c5-49fd-a85c-127b9e6e806a ext3
/dev/sda1 3028737828733BC2 ntfs
/dev/sda2: PTTYPE="dos"
/dev/sda5 08066CDC066CCC6E ntfs
/dev/sda6 28105EB9105E8E26 ntfs
/dev/sda7 FA6264016263C0CD ntfs
/dev/sda8 97cbb17f-4484-4518-ad0f-aeb8e782a895 ext3
/dev/sda9 22cc713c-2739-445a-a35d-80bbae71ef31 swap
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda8 / ext3 (rw,errors=remount-ro)
/dev/sda10 /boot ext3 (rw)
/dev/sda11 /home ext3 (rw)
=============================== sda8/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/sda8 / ext3 errors=remount-ro 0 1
# /boot was on /dev/sda10 during installation
UUID=c8dcf1a9-8718-4c11-a5ab-cb85b767667b /boot ext3 defaults 0 2
# /home was on /dev/sda11 during installation
UUID=8216d8d7-02c5-49fd-a85c-127b9e6e806a /home ext3 defaults 0 2
# swap was on /dev/sda9 during installation
UUID=22cc713c-2739-445a-a35d-80bbae71ef31 none swap sw 0 0
=================== sda8: Location of files loaded by Grub: ===================
298.6GB: initrd.img
298.6GB: initrd.img.old
298.6GB: vmlinuz
298.6GB: vmlinuz.old
============================= sda10/grub/grub.cfg: =============================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/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
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
}
insmod ext2
set root='(hd0,8)'
search --no-floppy --fs-uuid --set 97cbb17f-4484-4518-ad0f-aeb8e782a895
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
set locale_dir=($root)/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锛孡inux 2.6.32-26-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux /vmlinuz-2.6.32-26-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro quiet splash
initrd /initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-26-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
echo '杞藉叆 Linux ...'
linux /vmlinuz-2.6.32-26-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro single
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...'
initrd /initrd.img-2.6.32-26-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux /vmlinuz-2.6.32-25-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro quiet splash
initrd /initrd.img-2.6.32-25-generic
}
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
echo '杞藉叆 Linux ...'
linux /vmlinuz-2.6.32-25-generic root=UUID=97cbb17f-4484-4518-ad0f-aeb8e782a895 ro single
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...'
initrd /initrd.img-2.6.32-25-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,10)'
search --no-floppy --fs-uuid --set c8dcf1a9-8718-4c11-a5ab-cb85b767667b
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### 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 ###
=================== sda10: Location of files loaded by Grub: ===================
308.9GB: boot/grub/core.img
308.8GB: grub/core.img
308.8GB: grub/grub.cfg
308.8GB: grub/stage2
308.8GB: initrd.img-2.6.32-25-generic
308.9GB: initrd.img-2.6.32-26-generic
308.8GB: vmlinuz-2.6.32-25-generic
308.8GB: vmlinuz-2.6.32-26-generic
- onshoestring
- 论坛版主
- 帖子: 4666
- 注册时间: 2009-09-06 5:53
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
你以前修复过grub2,但却是用grub1修复的。308.8GB: grub/stage2
不知道是不是缺失了文件:/etc/grub.d/30_os-prober?
试试删除grub2,重新安装grub2。
代码: 全选
sudo apt-get purge grub-pc grub-common
sudo apt-get install grub-pc grub-common
sudo update-grub
在/etc/grub.d/40_custom文件中加入如下内容。
menuentry "Microsoft Windows 7 (on /dev/sda1)" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 3028737828733BC2
drivemap -s (hd0) ${root}
chainloader +1
}
代码: 全选
sudo update-grub
上次由 onshoestring 在 2010-12-04 0:35,总共编辑 1 次。
-
- 帖子: 7
- 注册时间: 2010-06-02 22:20
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
我以前看过一篇帖子,说是将30_os-prober文件名的30改为06就可以Win7默认启动,就是改这个改的无法引导了~以上两个方法都没有效果,麻烦你了~
代码: 全选
roger@roger-laptop:~$ sudo apt-get purge grub-pc grubp-common
[sudo] password for roger:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
E: 无法找到软件包 grubp-common
roger@roger-laptop:~$ sudo apt-get install grub-pc grubp-common
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
grub-pc 已经是最新的版本了。
grub-pc 被设置为手动安装。
E: 无法找到软件包 grubp-common
roger@roger-laptop:~$ sudo update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-25-generic
Found initrd image: /boot/initrd.img-2.6.32-25-generic
Found memtest86+ image: /memtest86+.bin
done
roger@roger-laptop:~$ sudo update-grub2
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-25-generic
Found initrd image: /boot/initrd.img-2.6.32-25-generic
Found memtest86+ image: /memtest86+.bin
done
roger@roger-laptop:~$
-
- 帖子: 7
- 注册时间: 2010-06-02 22:20
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
30_os-prober此文件有~~~
-
- 帖子: 7
- 注册时间: 2010-06-02 22:20
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
我在软件中心删除GRUB-PC又重安装,还是不行!
- onshoestring
- 论坛版主
- 帖子: 4666
- 注册时间: 2009-09-06 5:53
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
30_os-prober 40_custom
看看有没有x权限。
看看有没有x权限。
代码: 全选
sudo chmod +x /etc/grub.d/30_os-prober
- onshoestring
- 论坛版主
- 帖子: 4666
- 注册时间: 2009-09-06 5:53
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
上面应该是
没注意多打一个字母p。
代码: 全选
sudo apt-get purge grub-pc grub-common
sudo rm -fr /boot/grub/*
sudo apt-get install grub-pc grub-common
sudo grub-install /dev/sda
sudo update-grub
-
- 帖子: 7
- 注册时间: 2010-06-02 22:20
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
终于好了,谢谢大侠~~~~~
-
- 帖子: 6
- 注册时间: 2012-10-15 22:44
- 系统: ubuntu12.04
Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
我现在也遇到了这个问题了……求指点