grub不能引导ubuntu,急急急
-
- 帖子: 12
- 注册时间: 2009-04-18 11:29
grub不能引导ubuntu,急急急
我C盘装的winxp,之后用wubi在D盘装的Ubuntu8.10。装好之后运行很正常,今天突然就不能引导ubuntu了,在选择系统的选择ubuntu后,就会进入grub 命令行格式,显示如下内容
minimal bash-like line editing is supported ,for the first word ,tab lists possible command completions ,anywher else Tab lists the possible completions of a device /filename
grub >
之后我输入ls命令显示的都是c盘根目录下的东西
grub > find /boot/grub/stage1
提示找不到此文件
grub > find /boot/grub/menu.lst
也是提示无法找到
grub > root (hd0, 按TAB
提示有0,4,5,6几个逻辑分区能用,我一一试过都不能启动
grub > root (hd1, 按TAB
提示此分区不存在
之后,我用ubuntu7.10 liveCD(因为手上没有8.10)启动,在终端上执行 以上操作,结果一样。
急啊,谢谢了
minimal bash-like line editing is supported ,for the first word ,tab lists possible command completions ,anywher else Tab lists the possible completions of a device /filename
grub >
之后我输入ls命令显示的都是c盘根目录下的东西
grub > find /boot/grub/stage1
提示找不到此文件
grub > find /boot/grub/menu.lst
也是提示无法找到
grub > root (hd0, 按TAB
提示有0,4,5,6几个逻辑分区能用,我一一试过都不能启动
grub > root (hd1, 按TAB
提示此分区不存在
之后,我用ubuntu7.10 liveCD(因为手上没有8.10)启动,在终端上执行 以上操作,结果一样。
急啊,谢谢了
-
- 帖子: 9
- 注册时间: 2009-07-31 16:39
Re: grub不能引导ubuntu,急急急
我也不是太懂 呵呵
说下我自己的看法
/boot是否被单独分区 不是的话应该用find /boot/grub/stage1
你可以试试把你引导时的那几项都发上来 让大家看看 也许有帮助
说下我自己的看法
/boot是否被单独分区 不是的话应该用find /boot/grub/stage1
你可以试试把你引导时的那几项都发上来 让大家看看 也许有帮助
- xiajiebuhui
- 帖子: 193
- 注册时间: 2008-07-17 13:24
- 联系:
Re: grub不能引导ubuntu,急急急
wubi方式,不涉及任何分区问题吧。some 写了:我也不是太懂 呵呵
说下我自己的看法
/boot是否被单独分区 不是的话应该用find /boot/grub/stage1
你可以试试把你引导时的那几项都发上来 让大家看看 也许有帮助
不过倒是因该查看一下你的menu.lst文件或许有帮助。
代码: 全选
如鱼饮水 冷暖自知
- shanliang8008
- 帖子: 1362
- 注册时间: 2007-07-16 19:43
- 来自: tangshan
Re: grub不能引导ubuntu,急急急
在D盘安装ubuntu 。?wubi安装?
-
- 帖子: 12
- 注册时间: 2009-04-18 11:29
Re: grub不能引导ubuntu,急急急
嗯,用wubi装在D盘了
用ubuntu7.10 liveCD 启动后看见D盘下
found.000/dir0000.chk/boot/grub/menu.lst
内容如下
#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=C248B61548B60865 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio
## default grub root device
## e.g. groot=(hd0,0)
# groot=()/ubuntu/disks
## 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
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=C248B61548B60865 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=C248B61548B60865 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
root ()/ubuntu/disks
kernel /boot/memtest86+.bin
### 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
chainloader +1
看见D盘下
ubuntu/winboot/menu.lst
内容如下
debug off
hiddenmenu
default 0
timeout 0
fallback 1
title find /ubuntu/disks/boot/grub/menu.lst
find --set-root --ignore-floppies /ubuntu/disks/boot/grub/menu.lst
configfile /ubuntu/disks/boot/grub/menu.lst
title find /ubuntu/install/boot/grub/menu.lst
fallback 2
find --set-root --ignore-floppies /ubuntu/install/boot/grub/menu.lst
configfile /ubuntu/install/boot/grub/menu.lst
title find /menu.lst
fallback 3
find --set-root --ignore-floppies /menu.lst
configfile /menu.lst
title find /boot/grub/menu.lst
fallback 4
find --set-root --ignore-floppies /boot/grub/menu.lst
configfile /boot/grub/menu.lst
title find /grub/menu.lst
fallback 5
find --set-root --ignore-floppies /grub/menu.lst
configfile /grub/menu.lst
title commandline
commandline
title reboot
reboot
title halt
halt
在windows下只能看见D:\ubuntu\winboot\menu.lst 内容同上
用ubuntu7.10 liveCD 启动后看见D盘下
found.000/dir0000.chk/boot/grub/menu.lst
内容如下
#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=C248B61548B60865 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio
## default grub root device
## e.g. groot=(hd0,0)
# groot=()/ubuntu/disks
## 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
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=C248B61548B60865 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
root ()/ubuntu/disks
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=C248B61548B60865 loop=/ubuntu/disks/root.disk ro ROOTFLAGS=syncio single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
root ()/ubuntu/disks
kernel /boot/memtest86+.bin
### 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
chainloader +1
看见D盘下
ubuntu/winboot/menu.lst
内容如下
debug off
hiddenmenu
default 0
timeout 0
fallback 1
title find /ubuntu/disks/boot/grub/menu.lst
find --set-root --ignore-floppies /ubuntu/disks/boot/grub/menu.lst
configfile /ubuntu/disks/boot/grub/menu.lst
title find /ubuntu/install/boot/grub/menu.lst
fallback 2
find --set-root --ignore-floppies /ubuntu/install/boot/grub/menu.lst
configfile /ubuntu/install/boot/grub/menu.lst
title find /menu.lst
fallback 3
find --set-root --ignore-floppies /menu.lst
configfile /menu.lst
title find /boot/grub/menu.lst
fallback 4
find --set-root --ignore-floppies /boot/grub/menu.lst
configfile /boot/grub/menu.lst
title find /grub/menu.lst
fallback 5
find --set-root --ignore-floppies /grub/menu.lst
configfile /grub/menu.lst
title commandline
commandline
title reboot
reboot
title halt
halt
在windows下只能看见D:\ubuntu\winboot\menu.lst 内容同上
- xiajiebuhui
- 帖子: 193
- 注册时间: 2008-07-17 13:24
- 联系:
Re: grub不能引导ubuntu,急急急
越发不明白grub了。
没有重要文件的话重装吧,反正对于wubi来讲到windows的控制面板就可以搞定的。
对于wubi我没有什么接触,等待其他同学来吧
没有重要文件的话重装吧,反正对于wubi来讲到windows的控制面板就可以搞定的。
对于wubi我没有什么接触,等待其他同学来吧
代码: 全选
如鱼饮水 冷暖自知
-
- 帖子: 12
- 注册时间: 2009-04-18 11:29
Re: grub不能引导ubuntu,急急急
谢谢大家的帮忙,但是还没搞定啊
重装,太麻烦了!我在做嵌入式,好不容易才搭好环境
重装,太麻烦了!我在做嵌入式,好不容易才搭好环境
-
- 帖子: 12
- 注册时间: 2009-04-18 11:29
Re: grub不能引导ubuntu,急急急
难道没人知道吗,还是小弟没写明白啊,谢谢了!
- snake1st
- 帖子: 18
- 注册时间: 2009-08-12 2:54
- 系统: 瘟到死7+友帮拓12.04
Re: grub不能引导ubuntu,急急急
你写的确实不是太明白,不过我也碰到过类似问题,我的是/boot分成ext4了 导致grub无法引导 你看看你是不是也是同样的 问题~
我也新人~也发挥下ubuntu精神 呵呵
我也新人~也发挥下ubuntu精神 呵呵
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: grub不能引导ubuntu,急急急
又是五笔安装的....
好象是不正常关机引起的错误
把D盘下/found.000/dir0000.chk/boot/grub/menu.lst复制到D盘下/ubuntu/disks/boot/grub/ 试试
好象是不正常关机引起的错误
把D盘下/found.000/dir0000.chk/boot/grub/menu.lst复制到D盘下/ubuntu/disks/boot/grub/ 试试
-
- 帖子: 319
- 注册时间: 2009-01-30 18:18
- 来自: 湖北十堰
-
- 帖子: 12
- 注册时间: 2009-04-18 11:29
Re: grub不能引导ubuntu,急急急
是sudo grub进入的。
在D盘没有/ubuntu/disks/boot/grub/这个目录啊!
在D盘没有/ubuntu/disks/boot/grub/这个目录啊!
- 冲浪板
- 论坛版主
- 帖子: 7513
- 注册时间: 2007-05-06 8:19
Re: grub不能引导ubuntu,急急急
try lilo;
这是个机会
这是个机会
- smallapple
- 论坛版主
- 帖子: 7868
- 注册时间: 2009-03-28 15:12
Re: grub不能引导ubuntu,急急急
那/ubuntu/disks下还有什么东西?lijianzhao 写了:是sudo grub进入的。
在D盘没有/ubuntu/disks/boot/grub/这个目录啊!
- shanliang8008
- 帖子: 1362
- 注册时间: 2007-07-16 19:43
- 来自: tangshan
Re: grub不能引导ubuntu,急急急
做嵌入式还wubi安装 真晕