輕松解決Linux系統(tǒng)grub錯(cuò)誤
Linux在現(xiàn)在已經(jīng)很強(qiáng)大了,導(dǎo)致Linux系統(tǒng)越來(lái)越受到電腦用戶的歡迎,于是很多人開(kāi)始學(xué)習(xí)Linux時(shí),學(xué)習(xí)時(shí)你可能會(huì)遇到Linux系統(tǒng)grub常見(jiàn)錯(cuò)誤問(wèn)題,這里將介紹Linux系統(tǒng)grub常見(jiàn)錯(cuò)誤問(wèn)題的解決方法,讓大家了解一下。
1:Filenamemustbeeitheranabsolutefilenameorblocklist
解釋:1號(hào)錯(cuò)誤表示文件名格式錯(cuò)誤。在GRUB中要么是以絕對(duì)路徑給出文件
例子:
grub>kernelvmlinuzroot=label=/
Error1:Filenamemustbeeitheranabsolutepathnameorblocklist
grub>
2:Badfileordirectorytype
解釋:2號(hào)錯(cuò)誤表示命令期望的是一個(gè)普通文件,但相應(yīng)文件名的對(duì)象是一個(gè)符號(hào)鏈接、目錄、FIFO
例子:
grub>kernel/testdirroot=LABEL=/
Error2:Badfileordirectorytype
grub>
3:Badorcorruptdatawhiledecompressingfile
解釋:3號(hào)錯(cuò)誤表示解壓文件時(shí)發(fā)生錯(cuò)誤??赡苁且?yàn)檫@個(gè)文件被損壞了
4:Badorincompatibleheaderincompressedfile
解釋:4號(hào)錯(cuò)誤表示壓縮文件的頭部格式不被兼容或者錯(cuò)誤
5:Partitiontableinvalidorcorrupt
解釋:5號(hào)錯(cuò)誤表示分區(qū)表無(wú)效或者被破壞。這是一個(gè)不好的預(yù)兆
6:Mismatchedorcorruptversionofstage1/stage2
解釋:6號(hào)錯(cuò)誤表示install命令發(fā)現(xiàn)stage1和stage2的頒布號(hào)不被兼容
7:Loadingbelow1MBisnotsupported
解釋:Thiserrorisreturnedifthelowestaddressinakernelisbelow
the1MBboundary.TheLinuxzImageformatisaspecialcaseand
canbehandledsinceithasafixedloadingaddressandmaximumsize
8:Kernelmustbeloadedbeforebooting
解釋:8號(hào)錯(cuò)誤表示執(zhí)行boot命令之前沒(méi)有先執(zhí)行kernel命令
9:Unknownbootfailure
解釋:9號(hào)錯(cuò)誤表示未知的引導(dǎo)錯(cuò)誤
10:UnsupportedMultibootfeaturesrequested
解釋:10號(hào)錯(cuò)誤表示請(qǐng)求Multibootheader所要求功能不被GRUB所支持。
11:Unrecognizeddevicestring
解釋:11號(hào)錯(cuò)誤表示無(wú)法識(shí)別的設(shè)備字符串。
例子:
grub>roothd0
Error11:Unrecognizeddevicestring
grub>
12:Invaliddevicerequested
解釋:12號(hào)錯(cuò)誤表示請(qǐng)求的設(shè)備無(wú)效
例子:
grub>root(hd2)
Error21:Selecteddiskdoesnotexist
grub>kernel/grub/grub.confroot=LABEL=/
Error12:Invaliddevicerequested
grub>
13:Invalidorunsupportedexecutableformat
解釋:13號(hào)錯(cuò)誤表示無(wú)效或者無(wú)法識(shí)別的可執(zhí)行格式
例子:
grub>kernel/grub/grub.confroot=LABEL=/
Error13:Invalidorunsupportedexecutableformat
grub>
14:Filesystemcompatibilityerror,cannotreadwholefile
解釋:14號(hào)錯(cuò)誤表示文件系統(tǒng)兼容性錯(cuò)誤,無(wú)法讀取整個(gè)文件
15:Filenotfound
解釋:請(qǐng)求的文件無(wú)法找到
例子:
grub>find/grub-noexist/grub.conf
Error15:Filenotfound
grub>
16:Inconsistentfilesystemstructure
解釋:16號(hào)錯(cuò)誤表示不一致的文件系統(tǒng)結(jié)構(gòu)??赡苁俏募到y(tǒng)結(jié)構(gòu)被破壞了。
17:Cannotmountselectedpartition
解釋:17號(hào)錯(cuò)誤表示無(wú)法掛載指定分區(qū)。例如swap分區(qū)
例子:
grub>root(hd0,2)這是一個(gè)swap分區(qū)
Filesystemtypeunknown,partitiontype0x82
grub>kernel/vmlinuz
Error17:Cannotmountselectedpartition
grub>
18:SelectedcylinderexceedsmaximumsupportedbyBIOS
解釋:18號(hào)錯(cuò)誤表示選擇的柱面超過(guò)了BIOS支持的***能力。這通常發(fā)生在不支持LBA模式
的硬盤上。
19:Linuxkernelmustbeloadedbeforeinitrd
解釋:19號(hào)錯(cuò)誤表示執(zhí)行initrd命令前必須先執(zhí)行kernel命令
20:Multibootkernelmustbeloadedbeforemodules
解釋:20號(hào)錯(cuò)誤表示執(zhí)行module或者moduleunzip命令前必須先執(zhí)行kernel命令
21:Selecteddiskdoesnotexist
解釋:21號(hào)錯(cuò)誤表示選擇的磁盤不存在
例子:
grub>root(hd2)
Error21:Selecteddiskdoesnotexist
grub>
22:Nosuchpartition
解釋:22號(hào)錯(cuò)誤表示分區(qū)不存在
例子:
grub>root(hd0,10)
Error22:Nosuchpartition
grub>
23:Errorwhileparsingnumber
解釋:23號(hào)錯(cuò)誤表示參數(shù)解釋錯(cuò)誤,希望是一個(gè)數(shù)值,但參數(shù)卻是其他類型
例子:
grub>root(hda,0)
Error23:Errorwhileparsingnumber
grub>
24:Attempttoaccessblockoutsidepartition
解釋:24號(hào)錯(cuò)誤表示嘗試訪問(wèn)的block超出了分區(qū)
25:Diskreaderror
解釋:25號(hào)錯(cuò)誤表示磁盤讀錯(cuò)誤
26:Toomanysymboliclinks
解釋:26號(hào)錯(cuò)誤表示太多的符號(hào)連接(默認(rèn)最多允許5個(gè))
27:Unrecognizedcommand
解釋:無(wú)法識(shí)別的命令
28:Selecteditemcannotfitintomemory
解釋:選擇的對(duì)象無(wú)法被加載到內(nèi)存中。
例子:
[root@monitorboot]#ddif=/dev/zeroof=vmlinuz-2.4.20-31.9bs=1024count=1seek=1
讀入了1+0個(gè)塊
輸出了1+0個(gè)塊
[root@monitorboot]#grub
grub>kernel/vmlinuz-2.4.20-31.9root=label=/
[Linux-bzImage,setup=0x1400,size=0xfffff200]
Error28:Selecteditemcannotfitintomemory
grub>
29:Diskwriteerror
解釋:磁盤寫錯(cuò)誤
30:Invalidargument
解釋:無(wú)效參數(shù)
例子:
grub>serial--noarg=0
Error30:Invalidargument
grub>
31:Fileisnotsectoraligned
解釋:ThiserrormayoccuronlywhenyouaccessaReiserFSpartitionby
block-lists(e.g.thecommand`install').Inthiscase,youshould
mountthepartitionwiththe`-onotail'option.
32:Mustbeauthenticated
解釋:要求輸入口令才能繼續(xù)進(jìn)行下面的操作。例如配置文件中有password或者lock命令
例子:
passwordroot1234
titleDOS
lock
rootnoverify(hd0,0)
chainloader+1
33:Serialdevicenotconfigured
解釋:33號(hào)錯(cuò)誤表示串口還沒(méi)有配置。這一般發(fā)生在你執(zhí)行terminalserial的時(shí)候
34:Nosparesectorsonthedisk
解釋:磁盤自由空間不足。可能發(fā)生在把stage1.5嵌入到MBR之后的空間的時(shí)候。但這部分空間可能已經(jīng)被分區(qū)表使用了
以上就是Linux系統(tǒng)grub常見(jiàn)錯(cuò)誤的解決方法。
【編輯推薦】