[已解决]按照小苹果的做法,出新问题了

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

[已解决]按照小苹果的做法,出新问题了

#1

帖子 justinavril » 2010-03-02 23:05

谢谢onshoestring兄的热心帮助!答案在11#...

昨晚搞到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
上次由 justinavril 在 2010-03-03 23:06,总共编辑 4 次。
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#3

帖子 wangdu2002 » 2010-03-02 23:08

难道没看smallapple的grub2的pdf教程?
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#4

帖子 justinavril » 2010-03-02 23:13

马上看 搞不定 晚上睡不着啊
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#5

帖子 onshoestring » 2010-03-02 23:15

先别看那个教程,搞好了以后再看。
在1楼有个grub4dos引导ubuntu的方法。
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#6

帖子 justinavril » 2010-03-02 23:20

onshoestring 写了:先别看那个教程,搞好了以后再看。
在1楼有个grub4dos引导ubuntu的方法。
但是现在启动就是grub的界面 没法进win7了
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#7

帖子 justinavril » 2010-03-02 23:22

用:

rootnoverify (hd0,0)

chainloader +1

boot

卸载 行吗?
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#9

帖子 justinavril » 2010-03-02 23:29

onshoestring 写了:那你就看教程吧,呵呵。
谢天谢地 用7#的命令能够卸载grub 能进win7了

但是重启后还是出现grub命令界面,无法直接进入win7系统 :em20

明天用小苹果的办法试试
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#10

帖子 justinavril » 2010-03-02 23:41

刚才试了 把那2个文件连同boot.ini一起考到C盘,还是会优先进入grub命令界面,该怎么删除这个界面呢?
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: [求救贴]安装完了Win7之后,想修复进入Ubuntu 9.10出问题了

#11

帖子 onshoestring » 2010-03-03 0:09

你先grub命令进入,会出来菜单选win还是ubuntu。
进ubuntu

代码: 全选

sudo grub-install /dev/sda
sudo update-grub
正常把boot.ini和g2ldr删除。
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]按照小苹果的做法,出新问题了

#12

帖子 justinavril » 2010-03-03 12:51

顶起来 不知道11#的代码能解决这个问题嘛?
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
onshoestring
论坛版主
帖子: 4666
注册时间: 2009-09-06 5:53

Re: [求救贴]按照小苹果的做法,出新问题了

#13

帖子 onshoestring » 2010-03-03 13:04

这个是billbear推荐的超强工具,你下载下来运行,把结果贴上来。
http://sourceforge.net/projects/bootinfoscript/
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]按照小苹果的做法,出新问题了

#14

帖子 justinavril » 2010-03-03 13:17

onshoestring 写了:这个是billbear推荐的超强工具,你下载下来运行,把结果贴上来。
http://sourceforge.net/projects/bootinfoscript/
下班后,回家我会试试的...
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
头像
justinavril
帖子: 328
注册时间: 2007-10-11 15:45
联系:

Re: [求救贴]按照小苹果的做法,出新问题了

#15

帖子 justinavril » 2010-03-03 22:29

已更新
**********************
在T400下装的Linux,学习学习学习Ubuntu
**********************
回复