LinuxSir.cn,穿越时空的Linuxsir!

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

busybox fdisk error?Help!

[复制链接]
发表于 2005-9-5 22:29:37 | 显示全部楼层 |阅读模式
我的内核是 2.6.11, 包括proc, floppy disk和initrd等功能.

我自己编译的busybox(包括所有的命令),来做initrd,而且/proc也在initrd文件系统中。在我启动之后,进入sh,输入以下命令:
/bin/busybox fdisk -l:
fdisk /proc/partitons: No such file or directory!
segmentation fault.
出现错误如上。
请高手回复1
谢了!

Why?
Please help me!
Thx.
发表于 2005-9-5 22:44:00 | 显示全部楼层
在我启动之后,进入sh,输入以下命令:
/bin/busybox fdisk -l
fdisk should be equivalent to your busybox under your sh. /bin/busybox seems redundant here.

Please also describe how do you create your initrd.  Are you using the mkinitrd script from LFS?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-6 09:17:46 | 显示全部楼层
首先,我建立一个目录/initrd,然后把busybox编译之后_install目录下的东西全部拷进来,并且建立了/dev/console和proc,然后再压缩为.img.gz就可以了。
我没有使用mkinitrd的脚本。

着急啊!一直没有搞好。
回复 支持 反对

使用道具 举报

发表于 2005-9-6 19:17:50 | 显示全部楼层
Not very sure.  I have never tried the method you described above.  I guess your /dev or /proc are not mounted by init.

I think the init script inside the minirt.gz (the initrd from Knoppix) could be a very good script to study.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-18 15:59:29 | 显示全部楼层
呵呵。是因为/dev下面缺了hd*的设备文件,后来编译内核的时候加了devfs就可以了。
谢谢楼上的。
好久没过来了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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