linuxgrub:Linux操作系统的GRUB除错方式

  【IT专家网独家】在第2.1节“何谓GRUB”中介绍了整个GRUB运行(从GRUB接手直到加载kernel后开机)是通过 3个阶段达到激活操作系统如果在任何个阶段发生问题其实是可以找出原因每个阶段所赋予执行目区别GRUB执行中所显示信息或代码当然也不自然就可以知道是哪段出了问题以下官方文件中列出了当发生时产生信息以及笔者中文解释:

  ◆stage1

  Ÿ Hard Disk Error:The stage2 or stage1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk failed.

  stage1.5或stage2文件都已经从硬盘中访问出来但在定义硬盘容量及几何类型(cylinder-head-sector)时发生

  Ÿ Floppy Error:The stage2 or stage1.5 is being read from a floppy disk, and the attempt to determine the size and geometry of the floppy disk failed. It's listed as a separate error since the probe sequence is dferent than for hard disks.

  stage1.5或stage2文件都已经从软盘中访问出来但在定义大小及软盘容量和几何类型(cylinder-head-sector)时发生

  Ÿ Read Error:A disk read error happened while trying to read the stage2 or stage1.5.

  当尝试访问stage1.5或stage2时发生磁盘访问

  Ÿ Geom Error:The location of the stage2 or stage1.5 is not in the portion of the disk supported directly by the BIOS read calls. This could occur because the BIOS translated geometry has been changed by the user or the disk is moved to another machine or controller after ation, or GRUB was not ed using itself ( it was, the Stage 2 version of this error would have been seen during that process and it would not have completed the ).

  加载stage1.5或stage2通常是在安装GRUB后将BIOS变动、磁盘更换或是控制器更换所致个原因是GRUB并非由本身软件Software所产生如果是这个原因stage2版本将会显示出来且安装不会完成

  ◆stage1.5

  stage1.5处理方式在停止的前以信息代码呈现出来此例(如图2-49所示)是stage1.5加载后发现stage2文件不在默认路径下而造成此代码15在附录A中所代表就是找不到文件意思其他信息代码及文字介绍说明都将在附录A“信息表”中并介绍说明

  Linux操作系统的奥秘---GRUB除错方式

  ◆stage2

  stage2加载后会先去访问设置文件(grub.conf)若设置文件不在默认路径下会直接进入GRUB shell模式(这时不会有信息)其他执行上问题在stage2阶段会以文字方式显示信息stage2中已经将所有文字信息依序写在

  图2-50中当Linux kernel尚未加载时强行加载initrd文件会发生载入顺序(定要先加载kernel)因而产生信息该信息可对照附录A代码表因信息过多信息代码及文字介绍说明都将在附录A信息中并介绍说明

  Linux操作系统的奥秘---GRUB除错方式

Tags:  grub引导linux grub启动linux linuxgrub安装 linuxgrub

延伸阅读

最新评论

发表评论