|
|

楼主 |
发表于 2006-7-27 18:18:13
|
显示全部楼层
我的LFS已经启动!心情无比美丽,感谢LFS版块的兄弟们,:2cool
过程大致如前面所讲Post by 信天游
我精简了LFS到69M。
1:格式化CF卡为ext2文件系统。
2:加载CF卡。
3:拷贝LFS到CF卡. 我直接拷贝LFS中的所有目录boot,usr,home...到CF卡。
4:修改主系统Grub使之可以引导CF卡。
1过程中遇到的问题是:格式话CF卡,应该按照LFSBOOK-6.1.1上 2.3. 在分区上创建文件系统
这一章里 用debugfs -R feature /dev/[xxx]命令检查一下你的分区,使之合乎要求,要不然做到最后启动时,系统提示file system error,所有的精力浪费了(不完全是哦 ).
另一个问题是关于grub,这方面大家应该学会15楼hno3cn@hotmail兄的方法.
在启动过程中遇到了这样的问题:
.
.
.
Mounting root file system in read-only mode... [OK]
Checking file systems...
/dev/hdb7:
The superblock could not be read or does not desribe a corect ext2 filesystem.If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or someting else), then the super block is corrupt,and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
[FAIL]
FAILURE:
File system errors were encounterd that could not be fixed automatically.This system cannot continue to boot and will therefore be halted until those errors are fixed manually by a System Administartor .
After you press Enter,this system will be halted and powerd off.
Press Enter to continue.....
这个原因是/etc/fstab文件造成的.大家注意到/dev/hdb7,它是我在硬盘上制作LFS的分区,当我把LFS拷贝到CF卡上时,/dev/hdb7已经不存在了,/etc/fstab 要找它当然找不到了,当我把它该成/dev/hda1(CF卡所在的分区)后,系统启动成功了 |
|