輕鬆解決Linux系統grub錯誤

來源:互聯網
上載者:User

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命令介紹

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.