Linux内核无法挂载/ dev文件系统

时间:2015-04-19 01:16:37

标签: linux linux-kernel

我正在使用非操作的Linux内核2.6.32.65构建自定义linux映像。

内核启动就好了,直到达到这个目的:

EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 3:1.
Freeing unused kernel memory: 304k freed
init: Unable to mount /dev filesystem: No such device
init: ureadahead main process (983) terminated with status 5
init: console-setup main process (1052) terminated with status 1

我尝试了here提到的解决方案,虽然错误不完全相同,但没有运气。我尝试了多个“引用”.config文件。我一直在谷歌搜索,但我找不到任何有同样问题的东西。

我在 gem5 模拟器上运行此自定义映像,使用来自 ubuntu-core 的文件系统和干净的内核。在输出的前面,内核显示了这个:

hda: max request size: 128KiB
hda: 16514064 sectors (8455 MB), CHS=16383/16/63
 hda: hda1

所以内核能够很好地看到分区。我不认为这是由文件系统中的某些东西引起的。也许是initrd?还是内核本身?我该如何解决?

2 个答案:

答案 0 :(得分:2)

1。)问题不在devfs中,似乎问题是控制台设置。 2.)这是init问题而不是linux内核问题。 3.)尝试将/ bin / sh而不是init传递给内核cmd行

答案 1 :(得分:0)

我对自定义内置嵌入式Linux有同样的问题。 检查是否在kernel .config

中启用了devfs
# core filesystems
CONFIG_PROC_FS=y
CONFIG_SYSFS=y
## devfs
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y