|
发表于 2010-8-18 22:21:58
|
显示全部楼层
一方面,我建议你学习linux不要从gentoo开始。
另一方面,安装grub到硬盘,最好从grub内部进行,搞清原理,而不要一上来就使用grub-install脚本。
#[color="Red"]grub 以root身份执行grub
grub>[color="Red"]root (hd0, 按TAB键给出提示
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 4, Filesystem type unknown, partition type 0x7
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type unknown, partition type 0x82
Partition num: 8, Filesystem type unknown, partition type 0x83
Partition num: 9, Filesystem type unknown, partition type 0x8e
grub>[color="Red"]root (hd0,6) 就是定位你的grub所在的物理盘,也即/boot所在盘
Filesystem type is ext2fs, partition type 0x83
grub>[color="Red"]setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 18 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p (hd0,6)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
这一步将grub 安装到(hd0)的MBR,这过程中调用/boot/grub/stage****等文件,也就是为什么在上一步定位/boot 。 |
|