怎样解决Linux系统grub错误?
Linux在现在已经很强大了,导致Linux系统越来越受到电脑用户的欢迎,于是很多人开始学习Linux时,学习时你可能会遇到Linux系统grub常见错误问题,这里将介绍Linux系统grub常见错误问题的解决方法,让大家了解一下。
1:Filenamemustbeeitheranabsolutefilenameorblocklist
解释:1号错误表示文件名格式错误。在GRUB中要么是以绝对路径给出文件
例子:
grub>kernelvmlinuzroot=label=/
Error1:Filenamemustbeeitheranabsolutepathnameorblocklist...全部
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>
编辑特别推荐:
Linux使用find和xargs
Linux常见文件结构体
Linux服务器上进行换行符转换。收起