[转载]ubuntu在安装过程中出现 grub 错误时解决方法

标签:
转载 |
Boot-Repair - Simple tool to repair frequent boot problems
Simple tool to repair frequent boot problems.
Easy-to-use (repair in 1 click ! )
Free (GPL open-source license)
Helpful (Boot-Info summary to get help by email or on your favorite
forum)
Safe (automatic backups)
Can recover access to Windows (XP, Vista, Seven).
Can recover access to Debian, Ubuntu, Linux Mint…
Can recover access to any OS (Windows, MacOS, Linux..) if your PC
contains Debian, Ubuntu or derivative.
Can repair MBR-locked OEM computer boot if the original bootsector
has been saved by Clean-Ubiquity
Can repair the boot when you have the “GRUB Recovery” error
message
Options to reinstall GRUB2 bootloader easily (OS by default, purge,
unhide, kernel options..)
and much more ! (EFI, SATA, filesystem repair…)
GET BOOT-REPAIR:
Three possibilities to get Boot-Repair:
1) Boot-Repair-Disk is the official CD containing the very last
version of Boot-Repair
2) Boot-Repair is also included in all Ubuntu Secured CDs and many
other distributions (Hybryde, AriOS, PinguyOS…)
3) Boot-Repair can be installed & used in Debian
and derivatives (Ubuntu, Linux Mint…), either normal session, or
live-CD, or live-USB.
Boot-Repair can be installed & used from any Ubuntu session (normal session, or live-CD, or live-USB).
Install Boot-Repair on ubuntu
Open the terminal and run the following commands
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install boot-repair
After completing the installation you can launch it from System->Administration->Boot-Repair menu if you use Gnome, or search “boot-repair” in the dash if you use Unity. Then follow the menus
Screenshots
http://www.ubuntugeek.com/wp-content/uploads/2011/05/211.png
http://www.ubuntugeek.com/wp-content/uploads/2011/05/221.png
http://www.ubuntugeek.com/wp-content/uploads/2011/05/231.png
以上从国外论坛找到的 ,亲测能用 。 我的错误是
grub rescue>
grup 其他常见错误:
引用:1 : Filename must be either an absolute filename or blocklist
解释 :1号错误表示文件名格式错误。在 GRUB 中要么是以绝对路径给出文件
例子 :
grub> kernel vmlinuz root=label=/
Error 1: Filename must be either an absolute pathname or blocklist
grub>
引用:
2 : Bad file or directory type
解释 :2号错误表示命令期望的是一个普通文件,但相应文件名的对象是一个符号链接、目录、FIFO
例子 :
grub> kernel /testdir root=LABEL=/
Error 2: Bad file or directory type
grub>
引用:
3 : Bad or corrupt data while decompressing file
解释 :3号错误表示解压文件时发生错误。可能是因为这个文件被损坏了
引用:
4 : Bad or incompatible header in compressed file
解释 :4号错误表示压缩文件的头部格式不被兼容或者错误
引用:
5 : Partition table invalid or corrupt
解释 :5 号错误表示分区表无效或者被破坏。这是一个不好的预兆
引用:
6 : Mismatched or corrupt version of stage1/stage2
解释 :6号错误表示 install 命令发现 stage1 和 stage2 的颁布号不被兼容
引用:
7 : Loading below 1MB is not supported
解释 :This error is returned if the lowest address in a kernel is below
引用:
8 : Kernel must be loaded before booting
解释 :8号错误表示执行 boot 命令之前没有先执行 kernel 命令
引用:
9 : Unknown boot failure
解释 :9 号错误表示未知的引导错误
引用:
10 : Unsupported Multiboot features requested
解释 :10 号错误表示请求 Multiboot header 所要求功能不被 GRUB 所支持。
引用:
11 : Unrecognized device string
解释 :11 号错误表示无法识别的设备字符串。
例子 :
grub> root hd0
Error 11: Unrecognized device string
grub>
引用:
12 : Invalid device requested
解释 :12 号错误表示请求的设备无效
例子 :
grub> root (hd2)
Error 21: Selected disk does not exist
grub> kernel /grub/grub.conf root=LABEL=/
Error 12: Invalid device requested
grub>
引用:
13 : Invalid or unsupported executable format
解释 :13 号错误表示无效或者无法识别的可执行格式
例子 :
grub> kernel /grub/grub.conf root=LABEL=/
Error 13: Invalid or unsupported executable format
grub>
引用:
14 : Filesystem compatibility error, cannot read whole file
解释 :14 号错误表示文件系统兼容性错误,无法读取整个文件
引用:
15 : File not found
解释 :请求的文件无法找到
例子 :
grub> find /grub-noexist/grub.conf
Error 15: File not found
grub>
引用:
16 : Inconsistent filesystem structure
解释 :16 号错误表示不一致的文件系统结构。可能是文件系统结构被破坏了。
引用:
17 : Cannot mount selected partition
解释 :17号错误表示无法挂载指定分区。例如 swap 分区
例子 :
grub> root (hd0,2) 这是一个 swap 分区
Filesystem type unknown, partition type 0x82
grub> kernel /vmlinuz
Error 17: Cannot mount selected partition
grub>
引用:
18 : Selected cylinder exceeds maximum supported by BIOS
解释 :18 号错误表示选择的柱面超过了 BIOS 支持的最大能力。这通常发生在不支持 LBA 模式
的硬盘上。
引用:
19 : Linux kernel must be loaded before initrd
解释 :19 号错误表示执行 initrd 命令前必须先执行 kernel 命令
引用:
20 : Multiboot kernel must be loaded before modules
解释 :20 号错误表示执行 module 或者 moduleunzip 命令前必须先执行 kernel 命令
引用:
21 : Selected disk does not exist
解释 :21 号错误表示选择的磁盘不存在
例子 :
grub> root (hd2)
Error 21: Selected disk does not exist
grub>
引用:
22 : No such partition
解释 :22 号错误表示分区不存在
例子 :
grub> root (hd0,10)
Error 22: No such partition
grub>
引用:
23 : Error while parsing number
解释 :23 号错误表示参数解释错误,希望是一个数值,但参数却是其他类型
例子 :
grub> root (hda,0)
Error 23: Error while parsing number
grub>
引用:
24 : Attempt to access block outside partition
解释 :24 号错误表示尝试访问的 block 超出了分区
引用:
25 : Disk read error
解释 :25 号错误表示磁盘读错误
引用:
26 : Too many symbolic links
解释 :26 号错误表示太多的符号连接(默认最多允许5个)
引用:
27 : Unrecognized command
解释 :无法识别的命令
引用:
28 : Selected item cannot fit into memory
解释 :选择的对象无法被加载到内存中。
例子 :
[root@monitor boot]# dd if=/dev/zero of=vmlinuz-2.4.20-31.9 bs=1024 count=1 seek=1
读入了 1+0 个块
输出了 1+0 个块
[root@monitor boot]#grub
grub> kernel /vmlinuz-2.4.20-31.9 root=label=/
[Linux-bzImage, setup=0x1400, size=0xfffff200]
Error 28: Selected item cannot fit into memory
grub>
引用:
29 : Disk write error
解释 :磁盘写错误
引用:
30 : Invalid argument
解释 :无效参数
例子 :
grub> serial --noarg=0
Error 30: Invalid argument
grub>
引用:
31 : File is not sector aligned
解释 :This error may occur only when you access a ReiserFS partition by
引用:
32 : Must be authenticated
解释 :要求输入口令才能继续进行下面的操作。例如配置文件中有 password 或者 lock 命令
例子 :
password root1234
title DOS
lock
引用:
33 : Serial device not configured
解释 :33 号错误表示串口还没有配置。这一般发生在你执行 terminal serial 的时候
引用:
34 : No spare sectors on the disk
解释 :磁盘自由空间不足。可能发生在把 stage 1.5 嵌入到 MBR 之后的空间的时候。但这部分空间可能已经被分区表使用了
|