LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2779|回复: 9

请问linux安装的stage1、stage2、stage3是什么意思?

[复制链接]
发表于 2006-5-5 15:07:06 | 显示全部楼层 |阅读模式
这个stage是怎么分的?

我看每次grub启动时写的是stage2。
发表于 2006-5-5 16:32:35 | 显示全部楼层
是不是启动的运行级别?
看看/etc/inittab文件
回复 支持 反对

使用道具 举报

发表于 2006-5-5 16:42:52 | 显示全部楼层
还有stage 1.5
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-5 23:11:49 | 显示全部楼层
这个是按照什么标准来分的?
回复 支持 反对

使用道具 举报

发表于 2006-5-6 00:43:38 | 显示全部楼层
摘自 "info grub"。

10 GRUB image files
*******************

GRUB consists of several images: two essential stages, optional stages
called "Stage 1.5", one image for bootable CD-ROM, and two network boot
images. Here is a short overview of them. *Note Internals::, for more
details.

`stage1'
     This is an essential image used for booting up GRUB. Usually, this
     is embedded in an MBR or the boot sector of a partition. Because a
     PC boot sector is 512 bytes, the size of this image is exactly 512
     bytes.

     All `stage1' must do is to load Stage 2 or Stage 1.5 from a local
     disk. Because of the size restriction, `stage1' encodes the
     location of Stage 2 (or Stage 1.5) in a block list format, so it
     never understand any filesystem structure.

`stage2'
     This is the core image of GRUB. It does everything but booting up
     itself. Usually, this is put in a filesystem, but that is not
     required.

`e2fs_stage1_5'
`fat_stage1_5'
`ffs_stage1_5'
`jfs_stage1_5'
`minix_stage1_5'
`reiserfs_stage1_5'
`vstafs_stage1_5'
`xfs_stage1_5'
     These are called "Stage 1.5", because they serve as a bridge
     between `stage1' and `stage2', that is to say, Stage 1.5 is loaded
     by Stage 1 and Stage 1.5 loads Stage 2. The difference between
     `stage1' and `*_stage1_5' is that the former doesn't understand
     any filesystem while the latter understands one filesystem (e.g.
     `e2fs_stage1_5' understands ext2fs). So you can move the Stage 2
     image to another location safely, even after GRUB has been
     installed.

     While Stage 2 cannot generally be embedded in a fixed area as the
     size is so large, Stage 1.5 can be installed into the area right
     after an MBR, or the boot loader area of a ReiserFS or a FFS.

`stage2_eltorito'
     This is a boot image for CD-ROMs using the "no emulation mode" in
     El Torito specification. This is identical to Stage 2, except that
     this boots up without Stage 1 and sets up a special drive `(cd)'.

`nbgrub'
     This is a network boot image for the Network Image Proposal used
     by some network boot loaders, such as Etherboot. This is mostly
     the same as Stage 2, but it also sets up a network and loads a
     configuration file from the network.

`pxegrub'
     This is another network boot image for the Preboot Execution
     Environment used by several Netboot ROMs. This is identical to
     `nbgrub', except for the format.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 09:04:26 | 显示全部楼层
Oh, I see.

But what is stage3 that I saw in Gentoo installation image? Anything after stage2?
回复 支持 反对

使用道具 举报

发表于 2006-5-6 11:46:01 | 显示全部楼层
gentoo的stage是不一样的,别混为一谈。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-6 12:40:35 | 显示全部楼层
Post by 终极幻想
gentoo的stage是不一样的,别混为一谈。


版主能解释下gentoo的stage又是什么意思么?确实不太明白。
回复 支持 反对

使用道具 举报

发表于 2006-5-6 13:05:41 | 显示全部楼层
Gentoo 的 stage 是安装 Gentoo 的时候的不同阶段,Gentoo 的 installation manual  有解释的
回复 支持 反对

使用道具 举报

发表于 2006-5-6 14:06:38 | 显示全部楼层
学到了,谢。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表