綠色資源網(wǎng):您身邊最放心的安全下載站! 最新軟件|熱門排行|軟件分類|軟件專題|論壇轉(zhuǎn)帖|廠商大全

綠色資源網(wǎng)

技術(shù)教程
您的位置:首頁操作系統(tǒng)linux → LINUX系統(tǒng)grub常見錯誤分析

LINUX系統(tǒng)grub常見錯誤分析

我要評論 2011/06/02 14:34:22 來源:綠色資源網(wǎng) 編輯:downcc.com [ ] 評論:0 點擊:282次

1 : Filename must be either an absolute filename or blocklist
解釋 :1號錯誤表示文件名格式錯誤。在 GRUB 中要么是以絕對路徑給出文件
例子 :
grub> kernel vmlinuz root=label=/
Error 1: Filename must be either an absolute pathname or blocklist
grub>

 
2 : Bad file or directory type
解釋 :2號錯誤表示命令期望的是一個普通文件,但相應(yīng)文件名的對象是一個符號鏈接、目錄、FIFO
例子 :
grub> kernel /testdir root=LABEL=/
Error 2: Bad file or directory type
grub>

 
3 : Bad or corrupt data while decompressing file

解釋 :3號錯誤表示解壓文件時發(fā)生錯誤??赡苁且驗檫@個文件被損壞了

 
4 : Bad or incompatible header in compressed file
解釋 :4號錯誤表示壓縮文件的頭部格式不被兼容或者錯誤

 
5 : Partition table invalid or corrupt
解釋 :5 號錯誤表示分區(qū)表無效或者被破壞。這是一個不好的預(yù)兆

 
6 : Mismatched or corrupt version of stage1/stage2
解釋 :6號錯誤表示 install 命令發(fā)現(xiàn) stage1 和 stage2 的頒布號不被兼容

 
7 : Loading below 1MB is not supported
解釋 :This error is returned if the lowest address in a kernel is below
the 1MB boundary. The Linux zImage format is a special case and
can be handled since it has a fixed loading address and maximum size

 
8 : Kernel must be loaded before booting
解釋 :8號錯誤表示執(zhí)行 boot 命令之前沒有先執(zhí)行 kernel 命令

 
9 : Unknown boot failure
解釋 :9 號錯誤表示未知的引導(dǎo)錯誤

 
10 : Unsupported Multiboot features requested
解釋 :10 號錯誤表示請求 Multiboot header 所要求功能不被 GRUB 所支持。

 
11 : Unrecognized device string
解釋 :11 號錯誤表示無法識別的設(shè)備字符串。
例子 :
grub> root hd0
Error 11: Unrecognized device string
grub>

 
12 : Invalid device requested
解釋 :12 號錯誤表示請求的設(shè)備無效
例子 :
grub> root (hd2)
Error 21: Selected disk does not exist
grub> kernel /grub/grub.conf root=LABEL=/
Error 12: Invalid device requested
grub>


13 : Invalid or unsupported executable format
解釋 :13 號錯誤表示無效或者無法識別的可執(zhí)行格式
例子 :
grub> kernel /grub/grub.conf root=LABEL=/
Error 13: Invalid or unsupported executable format
grub>

 
14 : Filesystem compatibility error, cannot read whole file
解釋 :14 號錯誤表示文件系統(tǒng)兼容性錯誤,無法讀取整個文件

 
15 : File not found
解釋 :請求的文件無法找到
例子 :
grub> find /grub-noexist/grub.conf
Error 15: File not found
grub>

 
16 : Inconsistent filesystem structure
解釋 :16 號錯誤表示不一致的文件系統(tǒng)結(jié)構(gòu)??赡苁俏募到y(tǒng)結(jié)構(gòu)被破壞了。

 
17 : Cannot mount selected partition
解釋 :17號錯誤表示無法掛載指定分區(qū)。例如 swap 分區(qū)
例子 :
grub> root (hd0,2) 這是一個 swap 分區(qū)
Filesystem type unknown, partition type 0x82
grub> kernel /vmlinuz
Error 17: Cannot mount selected partition
grub>


18 : Selected cylinder exceeds maximum supported by BIOS
解釋 :18 號錯誤表示選擇的柱面超過了 BIOS 支持的最大能力。這通常發(fā)生在不支持 LBA 模式
的硬盤上。

 
19 : Linux kernel must be loaded before initrd
解釋 :19 號錯誤表示執(zhí)行 initrd 命令前必須先執(zhí)行 kernel 命令

 
20 : Multiboot kernel must be loaded before modules
解釋 :20 號錯誤表示執(zhí)行 module 或者 moduleunzip 命令前必須先執(zhí)行 kernel 命令

 
21 : Selected disk does not exist
解釋 :21 號錯誤表示選擇的磁盤不存在
例子 :
grub> root (hd2)
Error 21: Selected disk does not exist
grub>


22 : No such partition
解釋 :22 號錯誤表示分區(qū)不存在
例子 :
grub> root (hd0,10)
Error 22: No such partition
grub>


23 : Error while parsing number
解釋 :23 號錯誤表示參數(shù)解釋錯誤,希望是一個數(shù)值,但參數(shù)卻是其他類型
例子 :
grub> root (hda,0)
Error 23: Error while parsing number
grub>


24 : Attempt to access block outside partition
解釋 :24 號錯誤表示嘗試訪問的 block 超出了分區(qū)

 
25 : Disk read error
解釋 :25 號錯誤表示磁盤讀錯誤


26 : Too many symbolic links
解釋 :26 號錯誤表示太多的符號連接(默認(rèn)最多允許5個)

 
27 : Unrecognized command
解釋 :無法識別的命令

 
28 : Selected item cannot fit into memory
解釋 :選擇的對象無法被加載到內(nèi)存中。
例子 :
[root@monitor boot]# dd if=/dev/zero of=vmlinuz-2.4.20-31.9 bs=1024 count=1 seek=1
讀入了 1+0 個塊
輸出了 1+0 個塊

[root@monitor boot]#grub
grub> kernel /vmlinuz-2.4.20-31.9 root=label=/
[Linux-bzImage, setup=0x1400, size=0xfffff200]

Error 28: Selected item cannot fit into memory

grub>

 
29 : Disk write error
解釋 :磁盤寫錯誤

 
30 : Invalid argument
解釋 :無效參數(shù)
例子 :
grub> serial --noarg=0
Error 30: Invalid argument
grub>


31 : File is not sector aligned
解釋 :This error may occur only when you access a ReiserFS partition by
block-lists (e.g. the command `install'). In this case, you should
mount the partition with the `-o notail' option.


32 : Must be authenticated
解釋 :要求輸入口令才能繼續(xù)進(jìn)行下面的操作。例如配置文件中有 password 或者 lock 命令
例子 :
password root1234
title DOS
lock
rootnoverify (hd0,0)
chainloader +1

 
33 : Serial device not configured
解釋 :33 號錯誤表示串口還沒有配置。這一般發(fā)生在你執(zhí)行 terminal serial 的時候


34 : No spare sectors on the disk
解釋 :磁盤自由空間不足??赡馨l(fā)生在把 stage 1.5 嵌入到 MBR 之后的空間的時候。但這部分空間可能已經(jīng)被分區(qū)表使用了

關(guān)鍵詞:LINUX,grub

閱讀本文后您有什么感想? 已有 人給出評價!

  • 0 歡迎喜歡
  • 0 白癡
  • 0 拜托
  • 0 哇
  • 0 加油
  • 0 鄙視