LinuxSir.cn,穿越时空的Linuxsir!

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

如何恢复/dev/*的文件属性以及安装devfs的方法

[复制链接]
发表于 2003-7-9 21:31:37 | 显示全部楼层 |阅读模式
不小心
/dev#chmod 660 *


我该怎么把所有的设备恢复到该有的权限?
发表于 2003-7-9 23:02:28 | 显示全部楼层
试试 /sbin/MAKEDEV 能不能解决,先看看man
发表于 2003-7-10 00:01:26 | 显示全部楼层
如果用的是devfsd那么重新启动devfsd就行了吧。
 楼主| 发表于 2003-7-12 19:35:58 | 显示全部楼层
最初由 snailet 发表
如果用的是devfsd那么重新启动devfsd就行了吧。


怎样快速过渡到devfs?
以前我是看IBM那个教程搞的,要改 /sbin/init 的,现在呢?
发表于 2003-7-12 21:04:24 | 显示全部楼层
以下内容引自: http://panopticon.csustan.edu/thood/devfs-install.txt

Basic installation
------------------
apt-get install devfsd
Get latest 2.4 kernel
Recompile kernel with
    devfs support enabled
    devfs mount on boot enabled
    devpts disabled
    Character device: ACP modem support enabled (CONFIG_MWAVE=m)
Install kernel and modules and update grub menu, etc.
Remove "/dev/pts" line from /etc/fstab
    (/dev/pts files are created by devfs)
Make backup of /dev directory by doing
        cd /dev ; tar cvf ~/mydevdirectory.tar *

X
-
Edit /etc/X11/XF86Config-4 to change '/dev/psaux' to '/dev/misc/psaux'
as the source of PS/2 mouse data

Sound
-----
Edit /etc/alsa/modutils/1.0 so that snd-pcm-oss is loaded above snd-card-cs4236
Run update-modules
    (This is necessary because I am using ALSA 0.9 and esound only supports ALSA 0.5
     native devices at present; so I have to use esound with ALSA 0.9's OSS-emulation
     devices: /dev/dsp et al.  For some reason, after moving to devfs the *-oss
     modules don't get loaded automatically by the module loader.)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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