红联Linux门户
Linux帮助

我新手,出了点毛病。装了UBUNTU不能进入WIN了,怎么办?

发布时间:2009-10-15 18:46:25来源:红联作者:dodocs
装了之后重启直接进了U,没有启动项的选择。。
怎么办?
文章评论

共有 18 条评论

  1. onion-super 于 2009-12-22 18:57:37发表:

    这个问题很普遍啊

  2. liutian520 于 2009-12-19 23:11:21发表:

    哎哟,我的办法是在XP里,加了一GRUB来引导LINUX

  3. Rcx1z1h1 于 2009-12-19 22:38:42发表:

    你 看 第一个 是不是 和一的一样 如果是 改成 下面的 就行 ...:0w5ty(1我的 也是 那样..后来 改成下面的就好了

  4. Rcx1z1h1 于 2009-12-19 22:37:13发表:

    #
    # 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,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    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-16-generic" {
    recordfail=1
    if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    linux /boot/vmlinuz-2.6.31-16-generic root=UUID=c6db5d45-9989-4122-b3a7-2dda71adc3ff 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,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    linux /boot/vmlinuz-2.6.31-16-generic root=UUID=c6db5d45-9989-4122-b3a7-2dda71adc3ff ro single
    initrd /boot/initrd.img-2.6.31-16-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,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c6db5d45-9989-4122-b3a7-2dda71adc3ff 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,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c6db5d45-9989-4122-b3a7-2dda71adc3ff 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 "Microsoft Windows XP Professional (on /dev/sda1)" {
    insmod fat
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set 4a6e-1b85
    drivemap -s (hd0) ${root}
    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 ###

  5. Rcx1z1h1 于 2009-12-19 22:35:42发表:

    #
    # 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,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    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-14-generic" {
    recordfail=1
    if [ -n ${have_grubenv} ]; then save_env recordfail; fi
    set quiet=1
    insmod ext2
    set root=(hd0,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c6db5d45-9989-4122-b3a7-2dda71adc3ff 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,8)
    search --no-floppy --fs-uuid --set c6db5d45-9989-4122-b3a7-2dda71adc3ff
    linux /boot/vmlinuz-2.6.31-14-generic root=UUID=c6db5d45-9989-4122-b3a7-2dda71adc3ff 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 ###
    if [ ${timeout} != -1 ]; then
    if keystatus; then
    if keystatus --shift; then
    set timeout=-1
    else
    set timeout=0
    fi
    else
    if sleep --interruptible 3 ; then
    set timeout=0
    fi
    fi
    fi
    ### 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 ##

  6. Rcx1z1h1 于 2009-12-17 11:02:56发表:

    引用:
    应该没太大关系,在进入ubuntu系统后编辑一下mennu.lst或者grub.cfg就行了
    1、若为menu.lst ,则在命令行输入sudo gedit /boot/grub/menu.lst在文件尾部other system 之后添加如下代码:title Windows NT/2000/XP
    ...
    haibian 发表于 2009-10-15 20:39

    我的 也是 这样 毕竟瘟到死 跟我多年了 一下抛弃 还是不行 不过早晚我 得扔了它....我试试向↓按这个 管不 不管就用上边 这位老大的..

  7. allenquhua 于 2009-10-22 09:21:29发表:

    引用:
    重启电脑,过了主板自检的画面后不停地按向下键
    大宝 发表于 2009-10-15 21:06

    这个是正解,如果你对linux的启动管理器grub不熟的话。
    如果熟悉,就用2楼的方法

  8. IcySirius 于 2009-10-20 16:19:54发表:

    找了几篇文章
    LZ根据自己的情况选择方法吧
    1、http://www.bitscn.com/linux/system_manage/200806/144485.html
    2、http://www.linuxeden.com/html/sysadmin/20080328/52899.html

  9. fanhuan 于 2009-10-20 13:51:44发表:

    学习了!

  10. dodocs 于 2009-10-18 14:17:22发表:

    感谢楼上各位的回答
    事后我进了WIN PE 修复引导文件,然后。。。Ubuntu就回不去了。。我R!~~~

  11. 天空的元 于 2009-10-16 17:18:27发表:

    我好像遇到过这种情况,在xp上硬盘安装了linux之后,重启,直接进了linux。我想这是grub的事,在安装的时候,linux直接覆盖了MBR。板凳的修改方法正解。

  12. alick 于 2009-10-16 16:45:50发表:

    同意楼上几位的,建议楼主把/boot/grub/menu.lst贴出来看看

  13. deepwhite 于 2009-10-16 08:52:57发表:

    引用:

    哈哈哈哈,很多都是这么回事
    wangyu 发表于 2009-10-15 22:27

    恩。可能是GRUB的配置文件中设置了 隐藏启动菜单。

  14. wangyu 于 2009-10-15 22:27:19发表:

    引用:
    重启电脑,过了主板自检的画面后不停地按向下键
    大宝 发表于 2009-10-15 21:06

    哈哈哈哈,很多都是这么回事

  15. 大宝 于 2009-10-15 21:06:36发表:

    重启电脑,过了主板自检的画面后不停地按向下键

  16. haibian 于 2009-10-15 20:39:26发表:

    [i=s] 本帖最后由 haibian 于 2009-10-15 20:53 编辑 [/i]

    应该没太大关系,在进入ubuntu系统后编辑一下mennu.lst或者grub.cfg就行了
    1、若为menu.lst ,则在命令行输入[code]sudo gedit /boot/grub/menu.lst[/code]在文件尾部other system 之后添加如下代码:[code]title Windows NT/2000/XP
    root (hd0,0)
    #makeactive
    chainloader +1[/code]必要时可把以上#makeactive改为makeactive

    2、若为grub.cfg,则命令行输入[code]sudo gedit /boot/grub/grub.lst[/code]在文件尾部添加如下代码:[code]menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
    insmod ntfs
    set root=(hd0,1)
    search --no-floppy --fs-uuid --set c67c878a7c8773c9
    drivemap -s (hd0) ${root}
    chainloader +1
    }[/code]****************
    仅供参考

  17. Laifus 于 2009-10-15 20:26:00发表:

    grub还要重装一编,在安装时不搞坏win为前提

  18. 好大一只鸟 于 2009-10-15 20:22:52发表:

    你不会把win分区不小心给干掉了吧