歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Linux系統grub常見錯誤問題解決

Linux系統grub常見錯誤問題解決

日期:2017/4/19 14:20:18   编辑:Linux服務器

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:Multibootkernel

mustbeloadedbeforemodules

  解釋: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常見錯誤的解決方法

Copyright © Linux教程網 All Rights Reserved