# make
# make install
# cd /boot
# mkdir grub
# cd /usr/local/share/grub
# cp stage1 /boot/grub
# cp stage2 /boot/grub
# cp *_stage1_5 /boot/grub
# cp /usr/local/sbin/grub /boot/grub
# cd /boot/grub
# ./grub
grub> install (hd0,a)/boot/grub/stage1 (hd0) (hd0,a)/boot/grub/stage2 p (hd0,a)/boot/grub/menu.conf
grub> exit
#vi menu.conf
title COS-X
root (hd0,a)
kernel /boot/cosx.bin
boot
title FreeBSD
root (hd0,a)
kernel /boot/loader
boot
title Windows
rootnoverify (hd0,a)
makeactive
chainloader +1
boot
# make install
# cd /boot
# mkdir grub
# cd /usr/local/share/grub
# cp stage1 /boot/grub
# cp stage2 /boot/grub
# cp *_stage1_5 /boot/grub
# cp /usr/local/sbin/grub /boot/grub
# cd /boot/grub
# ./grub
grub> install (hd0,a)/boot/grub/stage1 (hd0) (hd0,a)/boot/grub/stage2 p (hd0,a)/boot/grub/menu.conf
grub> exit
#vi menu.conf
title COS-X
root (hd0,a)
kernel /boot/cosx.bin
boot
title FreeBSD
root (hd0,a)
kernel /boot/loader
boot
title Windows
rootnoverify (hd0,a)
makeactive
chainloader +1
boot
博客展示了在系统中进行Grub安装和配置的步骤,包括文件复制、执行命令等操作,还给出了menu.conf文件的配置内容,涉及COS - X、FreeBSD和Windows系统的启动设置。

115

被折叠的 条评论
为什么被折叠?



