- 論壇徽章:
- 0
|
http://www.chinaunix.net/forum/viewtopic.php?t=127814
我在redhat8.0中編譯了一套lfs(Linux from scratch),啟動(dòng)時(shí)采用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
硬盤分區(qū)如下:
[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所在分區(qū),sda2為Windows所在的分區(qū),sda3為另一個(gè)Linux分區(qū),但現(xiàn)在沒有用,LFS安裝在sda8分區(qū)。
重新啟動(dòng)后,進(jìn)入redhat8正常,但進(jìn)入lfs時(shí),總是提示找不到sda8分區(qū),root所帶的參數(shù)有問題等等。
重起后進(jìn)入grub菜單,選擇linux from scratch
提示錯(cuò)誤如下:
kmod:failed to exec /sbin/modprobe -s -k block-major-8 errno=2
VFS:cannot open root device "sda8" or 08:08
please append a correct "root:" boot option
Kernel panic:VFS:Unable to mount root fs on 08:08
然后就不動(dòng)了
請(qǐng)問大俠:
1、啟動(dòng)一定需要initrd么?我看了一些資料是不需要的
2、上面一步是不是先進(jìn)入老的redhat了,要不怎么有/sbin/modprobe這一步操作。
請(qǐng)大俠指教,不勝感謝!
請(qǐng)大俠指教,不勝感謝!
請(qǐng)大俠指教,不勝感謝! |
|