LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2273|回复: 13

LFS启动失败

[复制链接]
发表于 2008-1-15 23:02:30 | 显示全部楼层 |阅读模式
LFS 6.3-rc1

启动LFS系统时出现如下提示:

VFS: Unable to mount root fs via NFS , trying floppy
VFS: Insert root floppy and press ENTER

回车后

VFS: Cannot open root device "sda3" or unknown-block(2,0)
Please append a correct "root=" boot option ;
here are the available partitions:
1640   4194302 hdd  driver : ide-cdrom
kernel panic - not syncing : VFS : Unable to mount root fs on
unknow-block(2,0)

编译内核时已经加了 ext2 、 ext3 和 Rom file system support

/boot/grub/menu.lst 文件的内容

# 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.3-rc1
root (hd0,2)
kernel /boot/lfs-kernel root=/dev/sda3

fstab 文件的内容
/dev/sda3      /            ext2    defaults        1     1
/dev/sda5      swap        swap   pri=1           0     0
proc           /proc        proc    defaults        0     0
sysfs          /sys         sysfs    defaults        0     0
devpts        /dev/pts      devpts  gid=4,mode=620  0     0
shm          /dev/shm     tmpfs   defaults        0     0

grub 是装在 sda3 而不是 MBR

还有许多问题:
1)/boot/grub/menu.lst 里 kernel /boot/lfs-kernel root=/dev/sda3 内核是怎样找到/dev/sda3这个文件的?这是指 $LFS/dev 中的文件吗?但里面只有console 和 null 两个文件 , 那么这是指 /dev?

2)运行useradd -D -b /home 失败,不知道什么,只提示失败,这样对以后的LFS系统有影响吗?

3)许多测试都是以失败结束的,但似乎又没什么影响。如果想通过测试要怎样做呢?或者应该去哪里找答案?Tcl-8.4.15、Expect-5.43.0、DejaGNU-1.4.4 不装行不?

4)补丁不打行吗?

5)之前第一步binutils重新编译ld时老是出错,原因是gcc内置的specs提供了 --hash-style=gun,而新的ld不支持,我想知道能不能先编译gcc?

先多谢了!
发表于 2008-1-16 10:53:13 | 显示全部楼层
可能是glibc安装不对,或gcc第二遍不对,注意这两编译安装时的指令。
回复 支持 反对

使用道具 举报

发表于 2008-1-16 22:08:52 | 显示全部楼层
貌似是内核配置问题,欠某些支持

楼主的其他问题请详细阅读 LFS 手册,自有答案。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-1-18 00:28:22 | 显示全部楼层
貌似找不到喔,英语不好……
回复 支持 反对

使用道具 举报

发表于 2008-1-18 15:45:15 | 显示全部楼层
VFS: Unable to mount root fs via NFS,可你编译进内核的是ext2,ext3,还有Rom file system support。
回复 支持 反对

使用道具 举报

发表于 2008-1-18 22:37:05 | 显示全部楼层
可能还需要 SCSI、SATA 之类的支持
回复 支持 反对

使用道具 举报

发表于 2008-1-19 19:34:47 | 显示全部楼层
Post by sspipipipi;1808566
VFS: Unable to mount root fs via NFS,可你编译进内核的是ext2,ext3,还有Rom file system support。
楼主的启动问题解决了么?

我的也不能启动,问题跟你差不多

VFS: Cannot open root device "hdc2" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(0,0)

网上说是内核少了什么东西,可是少什么东西没找到,你的是少了什么东西?
回复 支持 反对

使用道具 举报

发表于 2008-1-19 22:49:19 | 显示全部楼层
找到的一个人的解决

October 14, 2004 - 2:48pm
Enok

I decided to get my name on the board too. I had the original FC2 .config file. Comparing them shows that the Ramdisk size is too small.
Default it's 4096 but in FC2 it's 16384. So the Ramdisk section should look like this:

CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_BLK_DEV_INITRD=y

I found out because I got a ramdisk error just above the VFS kernel panic.

Regards, Enok


查看自己的config-2.6.17.13 发现里面
几个对应的选项都是 is not set
such as
     CONFIG_BLK_DEV_RAM is not set
     CONFIG_BLK_DEV_INITRD is not set
像这种not set 的 应该怎样set呢?

第一次编译内核困难重重哦....
回复 支持 反对

使用道具 举报

发表于 2008-1-20 05:57:58 | 显示全部楼层
Post by updavy;1808979
找到的一个人的解决

October 14, 2004 - 2:48pm
Enok

I decided to get my name on the board too. I had the original FC2 .config file. Comparing them shows that the Ramdisk size is too small.
Default it's 4096 but in FC2 it's 16384. So the Ramdisk section should look like this:

CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=16384
CONFIG_BLK_DEV_INITRD=y

I found out because I got a ramdisk error just above the VFS kernel panic.

Regards, Enok


查看自己的config-2.6.17.13 发现里面
几个对应的选项都是 is not set
such as
     CONFIG_BLK_DEV_RAM is not set
     CONFIG_BLK_DEV_INITRD is not set
像这种not set 的 应该怎样set呢?

第一次编译内核困难重重哦....
这些这不个加入 initrd 的支持,能利用它作二次引导而矣
回复 支持 反对

使用道具 举报

发表于 2008-2-1 22:43:40 | 显示全部楼层
今天我也也遇到了这个累死的问题,找不到sda,加载不了根文件系统,再次编译内核,在IDE/ATAPI 里面仅选用了对光驱的支持,凡是涉及IDE disk的都不选,过了,不过我的init又出问题了,上这里求助,又看到了这个帖子楼主的问题搞定了吗
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表