- 论坛徽章:
- 0
|
我在redhat8.0中编译了一套lfs(Linux from scratch),启动时采用grub,配置如下:
grub.conf:
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-14)
root (hd0,5)
kernel /boot/vmlinuz-2.4.18-14 ro root=LABEL=/1
initrd /boot/initrd-2.4.18-14.img
title Linux from Scratch (2.4.17)
root (hd0,7)
kernel /boot/lfskernel root=/dev/sda8
title DOS
rootnoverify (hd0,1)
chainloader +1
硬盘分区如下:
[root@localhost grub]# fdisk -l /dev/sda
Disk /dev/sda: 254 heads, 63 sectors, 8885 cylinders
Units = cylinders of 16002 * 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 7 55975+ fe LANstep
/dev/sda2 8 455 3584448 7 HPFS/NTFS
/dev/sda3 * 456 1503 8385048 83 Linux
/dev/sda4 1504 8885 59063382 f Win95 Ext'd (LBA)
/dev/sda5 1504 1536 264001+ 82 Linux swap
/dev/sda6 * 1537 2584 8385016+ 83 Linux
/dev/sda7 2585 3864 10241248+ 7 HPFS/NTFS
/dev/sda8 3865 4127 2104231+ 83 Linux
/dev/sda9 4128 4387 2080228+ 83 Linux
其中sda6为redhat8所在分区,sda2为Windows所在的分区,sda3为另一个Linux分区,但现在没有用,LFS安装在sda8分区。
重新启动后,进入redhat8正常,但进入lfs时,总是提示找不到sda8分区,root所带的参数有问题等等。
请大侠指教,不胜感谢! |
|