|
|
先说一下我的平台:
AMD 闪龙2800+ 两个硬盘分别为:80G.20G
80G的盘上装有XP+ubuntu8.04(2.6.24-16)("/"挂载在/dev/sdb6)
20G的硬盘上装有ubuntu8.04(2.6.24-16)("/"挂载在/dev/sda5)
fdisk -l输出如下:
Disk /dev/sda: 20.4 GB,
Device Boot Start End Blocks Id System
/dev/sda1 * 1 804 6458098+ b W95 FAT32
/dev/sda2 805 2491 13550827+ f W95 Ext'd (LBA)
/dev/sda3 1982 2491 4096543+ b W95 FAT32
/dev/sda5 805 1412 4883697 83 Linux
/dev/sda6 1413 1981 4570461 83 Linux
Disk /dev/sdb: 80.0 GB,
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1306 10490413+ c W95 FAT32 (LBA)
/dev/sdb2 1307 9573 66404677+ 5 Extended
/dev/sdb3 9574 9729 1253070 81 Minix / old Linux
/dev/sdb5 1307 1430 995998+ 82 Linux swap / Solaris
/dev/sdb6 1431 4418 24001078+ 83 Linux
/dev/sdb7 4419 9573 41407506 83 Linux
我把sda6作为装lfs6.3的分区,在20G硬盘上的ubuntu下装6.3,在lfs_6.3_8.4节中,grub下运行set(hd0)失败,我也不管它,重启时用原来硬盘上的grub命令行启动系统:
grub> root (hd0,
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xb
Partition num: 2, Filesystem type is fat, partition type 0xb
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
(这儿我tab键之后发现对sda(20G的小硬盘)识别有误),我觉得应该是:
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
也不知道是什么原因?还有一个问题是grub识别我的IDE硬盘为hd*,而ubuntu下识别为sd*,把我搞乱了。不过这儿我不管,继续,这儿我把(hd0,5),(hd0,6)都试了一下,后来回去确认后应该是hda6.
grub> kernel /boot/lfskernel-2.6.22.5 root=/dev/hda6
grub> boot
启动……
后来就出现了以下搞不定的错误:
Mountint kernel-based file systems:/proc/etc/rc.d/rcsysinit.d/
S00mount kernfs:line 24:/bin/mount:No such file or directory
/sys/etc/rc.d/rcsysinit.d/S00mountkernfs:line29:/bin/mount:
No such file or directory [FAIL]
populating /dev with device nodes [OK]
grep:/proc/mounts:No such file or directory [FAIL]
FAILURE:
unable to create devices without a SysFS filesystem
我看大意是缺少了/bin/mount执行文件,然后我在回去找了一下,发现那个mount明明在的,这个是哪儿出了问题呢?
还有就是我在前面的安装过程中,配置内核时只记得没怎么改动,就改动了支持网卡,还有分区时加入了支持minix的分区(这个应该是编译成模块了),而且后来想起自己键盘鼠标都是USB的,也忘了在配置时把相应选项选上了。
小弟第一次做LFS,菜鸟一个,编译内核也属首次,(一个奇怪的地方是我配置内核选项到最后让我保存,我选最后第二个选项,提示要改名字,好像是改动.config,我没有改,直接exit了(这样是不是等于没配置?-_-!!!)),以上有很多不明了的地方,网上搜也难搜个确切出来,就来此请教大家了。说得比较啰嗦比较乱,也不知说清楚没。望各位海涵了:),大家请帮帮忙啊,多谢。 |
|