主题 : cramfs文件系统不能在dev目录下创建设备驱动文件  read-ony file system 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 6147
精华: 0
发帖: 91
金钱: 640 两
威望: 241 点
综合积分: 182 分
注册时间: 2009-05-21
最后登录: 2011-06-23
楼主  发表于: 2009-09-02 23:06

 cramfs文件系统不能在dev目录下创建设备驱动文件  read-ony file system

大家好:
         我现在用的是cramfs文件系统,在创建设备驱动文件时,提示,read-only file system,在2.4内核时有一个devfs,可以用来创建到一个devfs文个系统上,在mount到dev目录下,现在2.6不支持devfs,而是udev,看到别人说也是把设备驱动文件创建在tmpfs,sysfs上面,然后再mount至dev目录下
[ 此帖被kasim在2009-09-03 09:04重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-09-03 09:05
不需要在每个帖子标题上都加上“版主”, 如果你的问题有价值,我会回的
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-09-03 09:26
是的, cramfs本身是一个只读的文件系统,但udev这样的东西可以在/dev目录上先挂载一个可写的文件系统,如tmpfs,然后再在那里创建设备节点。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."