|
发表于 2009-4-20 08:22:34
|
显示全部楼层
Post by godsad;1976561
宿主系统为光盘版的lfs6.2,整个过程中没出过什么大错,小错都自行解决
在做到创建网络脚本时断电,之后重新挂载虚拟内核,继续下面章节,没遇到什么大错
可是到最后grub引导总是出错,出错提示是error 15:file not found
磁盘分区结构为一块sda分为三个区
sda1为boot分区(ext3 256M)
sda2为swap分区(swap 512M)
sda3为根分区(ext3 other all)
下面是个人认为grub重新设置后就不会出问题的步骤,大家帮看看还少什么或者是什么地方错了
安装grub
mkdir -v /boot/grub
cp -v /usr/lib/grub/i386-pc/stage{1,2} /boot/grub
相关内核文件copy到boot目录
cp -v arch/i386/boot/bzImage /boot/lfskernel-2.6.16.27
cp -v System.map /boot/System.map-2.6.16.27
cp -v .config /boot/config-2.6.16.27
配置完grubshell
root (hd0,0)
setup (hd0,0)
设置引导选项列表
cat > /boot/grub/menu.lst << "EOF"
# Begin /boot/grub/menu.lst
# By default boot the first menu entry.
default 0
# Allow 30 seconds before booting the default.
timeout 30
# Use prettier colors.
color green/black light-green/black
# The first entry is for LFS.
title LFS 6.2
root (hd0,0)
kernel /boot/lfskernel-2.6.16.27 root=/dev/sda1
EOF
改成这样是是,
title LFS 6.2
root (hd0,0)
kernel /boot/lfskernel-2.6.16.27 root=/dev/sda3 |
|