红联Linux门户
Linux帮助

ubuntu的grub正确为什么无法引导winXP

发布时间:2008-11-03 12:59:21来源:红联作者:-scofield-
如题,ubuntu的grub经过详细检查并和其他类似机器对比结果正确为什么无法引导winXP,当重启进入GRUB后选择XP就闪一下,还是停在GRUB选择界面,但是UBUNTU可以正常登陆,
正常安装,安装过程中导入了XP内容,用的是8.1的
文章评论

共有 11 条评论

  1. -scofield- 于 2008-11-05 12:56:11发表:

    11楼的意见很好阿,我会摸索一下的,只是我机子上还有企业5,企业5里的东西重要,目前我还别的东西来备份,挺郁闷的,

  2. deepwhite 于 2008-11-04 12:57:54发表:

    引用:
    原帖由 -scofield- 于 2008-11-4 12:18 发表
    看来ubuntu确实存在一些问题的,尤其是一些linux上通用的东西被修改确实很令人费解,看来要换别 的版本或者别的系列了,


    提个建议:

    你可以先备份当前的Menulist,然后DOS下fdisk /mbr,这样如果不出意外的话可以进入XP,之后在XP下装一个grub for XP(或者直接装个矮人工具箱,装他的话可以自动安装grub在XP的启动里面)。最后在XP下修改装好后的menu.list,使之可以在机器启动的时候通过GRUB来引导Ubuntu。

    这样,Linux的启动顺序变成了 C:\boot.ini===》 grub ===》》Ubuntu.
    而XP则可以直接由boot.ini来启动。
    不知道我说明白了没有。
    这样做应该可以,但是如果你更新内核以后需要重新设置menu.list,否则会仍然启动旧的内核。

    [ 本帖最后由 deepwhite 于 2008-11-4 12:59 编辑 ]

  3. -scofield- 于 2008-11-04 12:18:01发表:

    看来ubuntu确实存在一些问题的,尤其是一些linux上通用的东西被修改确实很令人费解,看来要换别 的版本或者别的系列了,

  4. editwork 于 2008-11-04 10:25:33发表:

    不知道你看过一篇攻击ubuntu的文章没有,针对你的这种情况我也遇上过,最终不但ub启动不起来,xp也启动不起来,我跟你一样装的是深度的8.1
    攻击的那个文章说到过这个情况。看这篇 《猛文:Greg Kroah-Hartman评Ubuntu Linux发行版》,就我本人遇到的情况来看,这篇文章说的不无道理,可能我的猜想有点偏激,不过没有合理的解释呀。
    http://www.cnbeta.com/articles/65893.htm
    我的做法是重修mbr,重装深度9.0F,等待ub的8.1发布再重新安装。我的ub里没有什么资料。资料全放在网盘上了。

    [ 本帖最后由 editwork 于 2008-11-4 10:28 编辑 ]

  5. tmsdsp 于 2008-11-04 06:39:02发表:

    从menu.lst文件中看都很正常,我怀疑是C盘引导扇区(不是MBR)被破坏。但不能完全肯定。
    不管如何,你现在最好把重要数据备份出来,而且是双份。

    [ 本帖最后由 tmsdsp 于 2008-11-4 07:00 编辑 ]

  6. -scofield- 于 2008-11-04 00:09:39发表:

    中间的 Mo Cuishle 0:06:55是多余信息,

  7. -scofield- 于 2008-11-04 00:08:23发表:

    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x624aa2e0

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 1280 10281568+ c W95 FAT32 (LBA)
    /dev/sda2 1281 9729 67866592+ f W95 Ext'd (LBA)
    /dev/sda5 1281 3571 18402426 7 HPFS/NTFS
    /dev/sda6 3572
    Mo Cuishle 0:06:55
    6121 20482843+ b W95 FAT32
    /dev/sda7 6122 6133 96358+ 83 Linux
    /dev/sda8 6134 6257 995998+ 82 Linux swap / Solaris
    /dev/sda9 6258 9729 27888808+ 83 Linux

    Disk /dev/sdb: 1054 MB, 1054605312 bytes
    23 heads, 54 sectors/track, 1658 cylinders
    Units = cylinders of 1242 * 512 = 635904 bytes
    Disk identifier: 0x02bfca41

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 1659 1029772+ b W95

  8. -scofield- 于 2008-11-04 00:05:14发表:

    # menu.lst - See: grub(8), info grub, update-grub(8)
    # grub-install(8), grub-floppy(8),
    # grub-md5-crypt, /usr/share/doc/grub
    # and /usr/share/doc/grub-doc/.

    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not use 'savedefault' or your
    # array will desync and will not let you boot your system.
    default 0

    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout 10

    ## hiddenmenu
    # Hides the menu by default (press ESC to see the menu)
    #hiddenmenu

    # Pretty colours
    #color cyan/blue white/blue

    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line) and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret

    #
    # examples
    #
    # title Windows 95/98/NT/2000
    # root (hd0,0)
    # makeactive
    # chainloader +1
    #
    # title Linux
    # root (hd0,1)
    # kernel /vmlinuz root=/dev/hda2 ro
    #

    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below

    ## DO NOT UNCOMMENT THEM, Just edit them to your needs

    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ## kopt_2_6_8=root=/dev/hdc1 ro
    ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=UUID=4a7e1e3c-6216-45c6-9b8e-b1bb1b576637 ro locale=zh_CN

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=eb9e2765-3a52-4d98-a6a1-8d46b69fc37e

    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ## alternative=false
    # alternative=true

    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ## lockalternative=false
    # lockalternative=false

    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet splash

    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ## lockold=true
    # lockold=false

    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=

    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0

    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ## altoptions=(recovery) single
    # altoptions=(recovery mode) single

    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ## howmany=7
    # howmany=all

    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ## memtest86=false
    # memtest86=true

    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false

    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false

    ## ## End Default Options ##

    title Ubuntu 8.10, kernel 2.6.27-7-generic
    uuid eb9e2765-3a52-4d98-a6a1-8d46b69fc37e
    kernel /vmlinuz-2.6.27-7-generic root=UUID=4a7e1e3c-6216-45c6-9b8e-b1bb1b576637 ro locale=zh_CN quiet splash
    initrd /initrd.img-2.6.27-7-generic
    quiet

    title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
    uuid eb9e2765-3a52-4d98-a6a1-8d46b69fc37e
    kernel /vmlinuz-2.6.27-7-generic root=UUID=4a7e1e3c-6216-45c6-9b8e-b1bb1b576637 ro locale=zh_CN single
    initrd /initrd.img-2.6.27-7-generic

    title Ubuntu 8.10, memtest86+
    uuid eb9e2765-3a52-4d98-a6a1-8d46b69fc37e
    kernel /memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1

  9. tmsdsp 于 2008-11-03 16:40:56发表:

    请问楼主,能把 menu.lst 贴上来吗?

  10. -scofield- 于 2008-11-03 13:47:51发表:

    能回答这个问题的看来还真要个资深的!?难道要我失望不成

  11. -scofield- 于 2008-11-03 13:30:36发表:

    谁要是能解决这个问题,我就送上KISS一个,但是方法要尽量简单,什么重装GRUB之类的不行,系统已经又重装了一遍,结果一样,