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常见错误的解决方法。
