昨晚搞到12点多,终于把可恶的Grub命令界面删除了,然后将3个文件拷到Win7的C盘,但是会出现2个菜单。重启之后,显示出现一个菜单,第一个选项是Win7,第二个是Grub4Dos,进入grub4dos之后,能看到正常的grub选项列表。
难道不能直接进入这个grub的系统选择列表吗?
谢谢!
粘帖Boot Info运行之后的结果,最后一个分区sdb是移动硬盘。
代码: 全选
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
=> Windows is installed in the MBR of /dev/sdb
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 /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: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
240 heads, 63 sectors/track, 20673 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x4600b87e
Partition Boot Start End Size Id System
/dev/sda1 * 63 61,432,559 61,432,497 7 HPFS/NTFS
/dev/sda2 61,432,560 312,560,639 251,128,080 f W95 Ext d (LBA)
/dev/sda5 61,432,623 245,745,359 184,312,737 7 HPFS/NTFS
/dev/sda6 245,745,423 312,560,639 66,815,217 83 Linux
Drive: sdb ___________________ _____________________________________________________
Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x3f8e081b
Partition Boot Start End Size Id System
/dev/sdb1 63 156,296,384 156,296,322 7 HPFS/NTFS
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 4EE00E95E00E8405 ntfs
/dev/sda5 5AE43902E438E245 ntfs
/dev/sda6 f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ext4
/dev/sdb1 A67EE68A7EE6529B ntfs Log
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda6 / ext4 (rw,errors=remount-ro)
/dev/sdb1 /media/??? fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
================================ sda1/boot.ini: ================================
[boot loader]
timeout=0
default=c:\g2ldr.mbr
[operating systems]
C:\g2ldr.mbr="Grub4Dos"
=========================== sda6/boot/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 /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
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
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/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro quiet splash
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-16-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro single
initrd /boot/initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro quiet splash
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-15-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro single
initrd /boot/initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set f3db37bb-46cb-49df-b3f0-334ee5cf4e5c
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
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 ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 4ee00e95e00e8405
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 ###
=============================== sda6/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 defaults 0 0
# / was on /dev/sda6 during installation
UUID=f3db37bb-46cb-49df-b3f0-334ee5cf4e5c / ext4 errors=remount-ro 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
=================== sda6: Location of files loaded by Grub: ===================
155.7GB: boot/grub/core.img
130.0GB: boot/grub/grub.cfg
125.8GB: boot/grub/stage2
126.7GB: boot/initrd.img-2.6.31-14-generic
127.1GB: boot/initrd.img-2.6.31-15-generic
127.6GB: boot/initrd.img-2.6.31-16-generic
127.8GB: boot/initrd.img-2.6.31-17-generic
126.6GB: boot/vmlinuz-2.6.31-14-generic
127.0GB: boot/vmlinuz-2.6.31-15-generic
127.5GB: boot/vmlinuz-2.6.31-16-generic
127.2GB: boot/vmlinuz-2.6.31-17-generic
127.8GB: initrd.img
127.6GB: initrd.img.old
127.2GB: vmlinuz
127.5GB: vmlinuz.old