轻松解决Linux系统grub错误

运维 系统运维
Linux在现在已经很强大了,导致Linux系统越来越受到电脑用户的欢迎,于是很多人开始学习Linux时,学习时你可能会遇到Linux系统grub常见错误问题,这里将介绍Linux系统grub常见错误问题的解决方法,让大家了解一下。

Linux在现在已经很强大了,导致Linux系统越来越受到电脑用户的欢迎,于是很多人开始学习Linux时,学习时你可能会遇到Linux系统grub常见错误问题,这里将介绍Linux系统grub常见错误问题的解决方法,让大家了解一下。

1:Filenamemustbeeitheranabsolutefilenameorblocklist
解释:1号错误表示文件名格式错误。在GRUB中要么是以绝对路径给出文件
例子:
grub>kernelvmlinuzroot=label=/
Error1:Filenamemustbeeitheranabsolutepathnameorblocklist
grub>

2:Badfileordirectorytype
解释:2号错误表示命令期望的是一个普通文件,但相应文件名的对象是一个符号链接、目录、FIFO
例子:
grub>kernel/testdirroot=LABEL=/
Error2:Badfileordirectorytype
grub>

3:Badorcorruptdatawhiledecompressingfile
解释:3号错误表示解压文件时发生错误。可能是因为这个文件被损坏了

4:Badorincompatibleheaderincompressedfile
解释:4号错误表示压缩文件的头部格式不被兼容或者错误

5:Partitiontableinvalidorcorrupt
解释:5号错误表示分区表无效或者被破坏。这是一个不好的预兆

6:Mismatchedorcorruptversionofstage1/stage2
解释:6号错误表示install命令发现stage1和stage2的颁布号不被兼容

7:Loadingbelow1MBisnotsupported
解释:Thiserrorisreturnedifthelowestaddressinakernelisbelow
the1MBboundary.TheLinuxzImageformatisaspecialcaseand
canbehandledsinceithasafixedloadingaddressandmaximumsize

8:Kernelmustbeloadedbeforebooting
解释:8号错误表示执行boot命令之前没有先执行kernel命令

9:Unknownbootfailure
解释:9号错误表示未知的引导错误

10:UnsupportedMultibootfeaturesrequested
解释:10号错误表示请求Multibootheader所要求功能不被GRUB所支持。

11:Unrecognizeddevicestring
解释:11号错误表示无法识别的设备字符串。
例子:
grub>roothd0
Error11:Unrecognizeddevicestring
grub>

12:Invaliddevicerequested
解释:12号错误表示请求的设备无效
例子:
grub>root(hd2)
Error21:Selecteddiskdoesnotexist
grub>kernel/grub/grub.confroot=LABEL=/
Error12:Invaliddevicerequested
grub>

13:Invalidorunsupportedexecutableformat
解释:13号错误表示无效或者无法识别的可执行格式
例子:
grub>kernel/grub/grub.confroot=LABEL=/
Error13:Invalidorunsupportedexecutableformat
grub>

14:Filesystemcompatibilityerror,cannotreadwholefile
解释:14号错误表示文件系统兼容性错误,无法读取整个文件

15:Filenotfound
解释:请求的文件无法找到
例子:
grub>find/grub-noexist/grub.conf
Error15:Filenotfound
grub>

16:Inconsistentfilesystemstructure
解释:16号错误表示不一致的文件系统结构。可能是文件系统结构被破坏了。

17:Cannotmountselectedpartition
解释:17号错误表示无法挂载指定分区。例如swap分区
例子:
grub>root(hd0,2)这是一个swap分区
Filesystemtypeunknown,partitiontype0x82
grub>kernel/vmlinuz
Error17:Cannotmountselectedpartition
grub>

18:SelectedcylinderexceedsmaximumsupportedbyBIOS
解释:18号错误表示选择的柱面超过了BIOS支持的***能力。这通常发生在不支持LBA模式
的硬盘上。

19:Linuxkernelmustbeloadedbeforeinitrd
解释:19号错误表示执行initrd命令前必须先执行kernel命令

20:Multibootkernelmustbeloadedbeforemodules
解释:20号错误表示执行module或者moduleunzip命令前必须先执行kernel命令

21:Selecteddiskdoesnotexist
解释:21号错误表示选择的磁盘不存在
例子:
grub>root(hd2)
Error21:Selecteddiskdoesnotexist
grub>

22:Nosuchpartition
解释:22号错误表示分区不存在
例子:
grub>root(hd0,10)
Error22:Nosuchpartition
grub>

23:Errorwhileparsingnumber
解释:23号错误表示参数解释错误,希望是一个数值,但参数却是其他类型
例子:
grub>root(hda,0)
Error23:Errorwhileparsingnumber
grub>

24:Attempttoaccessblockoutsidepartition
解释:24号错误表示尝试访问的block超出了分区

25:Diskreaderror
解释:25号错误表示磁盘读错误

26:Toomanysymboliclinks
解释:26号错误表示太多的符号连接(默认最多允许5个)

27:Unrecognizedcommand
解释:无法识别的命令

28:Selecteditemcannotfitintomemory
解释:选择的对象无法被加载到内存中。
例子:
[root@monitorboot]#ddif=/dev/zeroof=vmlinuz-2.4.20-31.9bs=1024count=1seek=1
读入了1+0个块
输出了1+0个块
[root@monitorboot]#grub
grub>kernel/vmlinuz-2.4.20-31.9root=label=/
[Linux-bzImage,setup=0x1400,size=0xfffff200]
Error28:Selecteditemcannotfitintomemory
grub>

29:Diskwriteerror
解释:磁盘写错误

30:Invalidargument
解释:无效参数
例子:
grub>serial--noarg=0
Error30:Invalidargument
grub>

31:Fileisnotsectoraligned
解释:ThiserrormayoccuronlywhenyouaccessaReiserFSpartitionby
block-lists(e.g.thecommand`install').Inthiscase,youshould
mountthepartitionwiththe`-onotail'option.

32:Mustbeauthenticated
解释:要求输入口令才能继续进行下面的操作。例如配置文件中有password或者lock命令
例子:
passwordroot1234
titleDOS
lock
rootnoverify(hd0,0)
chainloader+1

33:Serialdevicenotconfigured
解释:33号错误表示串口还没有配置。这一般发生在你执行terminalserial的时候

34:Nosparesectorsonthedisk
解释:磁盘自由空间不足。可能发生在把stage1.5嵌入到MBR之后的空间的时候。但这部分空间可能已经被分区表使用了

以上就是Linux系统grub常见错误的解决方法。

【编辑推荐】

  1. 轻松应用Linux连接校园网
  2. 全面了解Linux进程技术
  3. Linux中的password命令介绍
  4. 学好Linux 了解Linux监管命令
  5. Linux查看所有进程ps -aux命令介绍
责任编辑:小霞 来源: javaeye.com
相关推荐

2011-01-26 11:23:30

Linux认证

2010-06-17 10:32:13

开机显示Grub

2010-03-09 16:38:22

Linux grub启

2010-01-07 16:46:06

Linux安装Ecli

2009-12-11 17:25:00

Grub突破root

2010-01-12 13:47:18

Linux grub

2010-06-13 16:32:19

Linux Grub命

2010-06-13 16:23:28

Linux Grub命

2009-12-11 14:17:05

Linux平台空间消失

2009-12-24 17:08:34

Linux SSH

2010-06-17 11:17:34

装系统出现Grub

2010-04-28 10:00:44

Linux GRUB双系统引导

2021-09-16 14:48:26

DebianLinux

2010-01-06 14:50:49

Linux操作系统

2009-10-23 08:41:14

Linux系统操作系统Grub

2010-06-13 11:41:53

Ubuntu Grub

2009-12-24 15:46:55

LVM管理Linux

2009-12-14 17:32:14

LILO配置

2011-01-19 10:42:15

2010-06-17 11:04:42

重装系统出现Grub
点赞
收藏

51CTO技术栈公众号