LinuxSir.cn,穿越时空的Linuxsir!

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

把grub装在mbr的确切含义是什么?

[复制链接]
发表于 2004-6-6 09:49:40 | 显示全部楼层 |阅读模式
一直不明白,我有两种可能的理解:
1.mbr比较小,所以只是个类似链接的东西,把grub装在mbr就是,让mbr指向了装在某个linux分区的grub程序。
2.grub程序就在mbr位置。
或者这两种情况都不是,希望高手赐教。
发表于 2004-6-6 10:06:46 | 显示全部楼层
sigh,自己找资料看吧
发表于 2004-6-6 10:10:18 | 显示全部楼层
兄弟理解的比较对,MBR其实是硬盘0扇区的前446个字节,一个扇区一共是512个字节,前446个字节安装MBR,后面用64个字节放主分区表(4X16)。
发表于 2004-6-6 19:04:24 | 显示全部楼层
At the end of the ROM BIOS bootstrap routine, the BIOS reads and executes the first physical sector of the hard disk (or first floppy, depending on your boot sequence) on the system. This first sector of the hard disk is called the master boot record (or sometimes the partition table or master boot block). Installing GRUB on the MBR means installing GRUB's stage1 at the beginning of this sector of the hard disk. The partition information, or partition table (as provided by fdisk), is stored at the end of this sector. This program uses the partition information to determine which partition is bootable and attempts to boot from it.
发表于 2004-6-7 02:29:44 | 显示全部楼层
看Hauser的E文是一种享受!
 楼主| 发表于 2004-6-7 07:11:59 | 显示全部楼层
最初由 Hauser 发表
At the end of the ROM BIOS bootstrap routine, the BIOS reads and executes the first physical sector of the hard disk (or first floppy, depending on your boot sequence) on the system. This first sector of the hard disk is called the master boot record (or sometimes the partition table or master boot block). Installing GRUB on the MBR means installing GRUB's stage1 at the beginning of this sector of the hard disk. The partition information, or partition table (as provided by fdisk), is stored at the end of this sector. This program uses the partition information to determine which partition is bootable and attempts to boot from it.

我看了一下,stage1恰好是512字节,明白了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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