红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

请教grub引导XP问题

发布时间:2009-10-29 22:50:49来源:红联作者:fly6
[i=s] 本帖最后由 fly6 于 2009-10-30 12:46 编辑 [/i]

刚装了一个lenny,安装时按照提示grub直接放在了MBR,但是再回头上不了XP了,请教下各位怎么解决阿

google了不少,没找到

看到有说重装windows的,除了这个不知道有没有其他方法?怀疑是grub的问题
文章评论

共有 11 条评论

  1. ioyi 于 2013-03-03 10:21:09发表:

    在哪里引导呢。。哎。一点都不仔细啊。我还是菜鸟

  2. chiyb 于 2010-04-26 13:47:35发表:

    希望各位朋友快快帮我~谢谢

  3. wrsg 于 2010-02-22 11:51:51发表:

    title Windows NT/2000/XP (loader)
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1

    这是我的,供你参考。

  4. guojing2537 于 2010-02-16 23:14:57发表:

    3# fly6


    我的xp引导处代码 给你看看 也许 有用


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

  5. 相思爱文 于 2010-02-12 18:51:17发表:

    引用:
    这问题有好的解方案没

    我系统装的是XP跟OPENSUSE共存,两个系统都还在,都是健全的,上次不小心在XP下恢复了分区表,LINUX就不见了,现在我把GRUB重新装下就得LINUX,怎么在启动的时候也能看到XP启动选项

    希望各位朋 ...
    rdfehame 发表于 2010-2-10 17:17

    在windows下,可以使用grldr,也能引导linux。XP下硬盘安装linux系统就是用的这个方法。
    搜索下grub操作手册,这些问题就都会解决了。
    还有问题,可针对性地提出来。

  6. aqq5220 于 2010-02-12 13:04:02发表:

    很好解决!不过好难说啊!
    真的要方法的话,再留言下!
    现在没有时间,等有时间时我来回~~!不好意思了!

  7. rdfehame 于 2010-02-10 17:17:12发表:

    [i=s] 本帖最后由 rdfehame 于 2010-2-10 17:24 编辑 [/i]

    这问题有好的解方案没

    我系统装的是XP跟OPENSUSE共存,两个系统都还在,都是健全的,上次不小心在XP下恢复了分区表,LINUX就不见了,现在我把GRUB重新装下就得LINUX,怎么在启动的时候也能看到XP启动选项

    希望各位朋友快快帮我~谢谢

  8. hj00hj 于 2010-01-04 13:00:25发表:

    我的opensuse遇到的问题正好相反,是linux系统丢失了,郁闷

  9. 陈陈-52884 于 2009-12-22 18:52:49发表:

    我在安装debian时也碰了这个问题,以前我都是用windows的,现在也安装了debian。
    安装时使用双系统引导,就是使用最后一个盘安装debian,在debian安装界面里,我将最后一个盘自动分区exd2和swap分区,重启后找不到xp,我就想是不是因为分区改变致使xp启动出现问题,后来把xp安装盘拿来在光驱里遛了一圈(也就是只复制文件到系统分区)然后重启就找到xp了。

  10. fly6 于 2009-10-30 19:38:24发表:

    [i=s] 本帖最后由 fly6 于 2009-10-30 22:10 编辑 [/i]

    2# 绿色圣光

    # 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-legacy-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 change this entry to 'saved' 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 5

    # 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=/dev/sda9 ro

    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,8)

    ## 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

    ## 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=(single-user) single
    # altoptions=(single-user 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 Debian GNU/Linux, kernel 2.6.26-2-amd64
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.26-2-amd64 root=/dev/sda9 ro quiet
    initrd /boot/initrd.img-2.6.26-2-amd64

    title Debian GNU/Linux, kernel 2.6.26-2-amd64 (single-user mode)
    root (hd0,8)
    kernel /boot/vmlinuz-2.6.26-2-amd64 root=/dev/sda9 ro single
    initrd /boot/initrd.img-2.6.26-2-amd64

    ### 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)
    makeactive
    chainloader +1


    看有的地方说 改一条 rootnoverify,我试过没用。
    对了,开机出现grub引导的时候选XP说filesystem type unknown ,这个好像问题大了阿

  11. 绿色圣光 于 2009-10-30 19:12:25发表:

    把 /boot/grub 目录下 menu.lst 文件中的内容贴上来看看啊~