当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 14 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-02 1:10 

注册: 2010-06-02 22:20
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
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


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-02 10:25 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
http://sourceforge.net/projects/bootinfoscript/

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

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


把RESULTS.txt文件内容贴上来。


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


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-02 22:22 

注册: 2010-06-02 22:20
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
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


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-03 1:37 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
引用:
sda1: _________________________________________________________________________

File system: ntfs
Boot sector type: Grub 2


插入windows7安装光盘,从光盘启动,在光盘启动完成后,按下shift+f10键,调出cmd命令提示符。在命令提示符中输入:bootrec /fixboot回车。


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


页首
 用户资料  
 
5 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-03 4:07 
头像

注册: 2010-12-02 18:05
帖子: 59
送出感谢: 0 次
接收感谢: 0 次
:em06 没碰到过


_________________
抛弃Windows...
_____________________________________________________________________________________

软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。


页首
 用户资料  
 
6 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-03 22:26 

注册: 2010-06-02 22:20
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
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


页首
 用户资料  
 
7 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-03 23:11 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
引用:
308.8GB: grub/stage2

你以前修复过grub2,但却是用grub1修复的。
不知道是不是缺失了文件:/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


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


最后由 onshoestring 编辑于 2010-12-04 0:35,总共编辑了 1 次

页首
 用户资料  
 
8 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-03 23:23 

注册: 2010-06-02 22:20
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
我以前看过一篇帖子,说是将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:~$


页首
 用户资料  
 
9 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-03 23:31 

注册: 2010-06-02 22:20
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
30_os-prober此文件有~~~


页首
 用户资料  
 
10 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-03 23:34 

注册: 2010-06-02 22:20
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
我在软件中心删除GRUB-PC又重安装,还是不行!


页首
 用户资料  
 
11 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-04 0:31 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
30_os-prober 40_custom
看看有没有x权限。
代码:
sudo chmod +x /etc/grub.d/30_os-prober


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


页首
 用户资料  
 
12 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-04 0:34 
头像

注册: 2009-09-06 5:53
帖子: 4666
送出感谢: 6
接收感谢: 110
上面应该是
代码:
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

没注意多打一个字母p。


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


页首
 用户资料  
 
13 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2010-12-06 1:40 

注册: 2010-06-02 22:20
帖子: 7
送出感谢: 0 次
接收感谢: 0 次
终于好了,谢谢大侠~~~~~


页首
 用户资料  
 
14 楼 
 文章标题 : Re: ubuntu win7硬盘安装双系统 update-grub2后没有win7的引导项,怎么回事呢?
帖子发表于 : 2012-10-15 22:48 

注册: 2012-10-15 22:44
帖子: 6
系统: ubuntu12.04
送出感谢: 0 次
接收感谢: 0 次
我现在也遇到了这个问题了……求指点


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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