/dev/null丟失后

王朝other·作者佚名  2008-05-18
窄屏简体版  字體: |||超大  

事情是这样的,一不小心把/dev/null删掉了

系统文件/dev/null丢失怎么办呀

重启时出现如下问题

/etc/rc.d/rc.sysinit:line 88: /dev/null: Read-only file system

/etc/rc.d/rc.sysinit:line 99: /dev/null: Read-only file system

configuring kernel parameters: dup2: Bad file descriptor [failed]

Setting clock (localtime):Au 60A 18 18:05:04 CST 2005 dup2:Bad file descriptor [failed]

loading default keymap (us): /etc/rc.d/rc.sysinit: line 159: /dev/null: Read-only file system [failed]

Setting hostname snowtty: dup2:Bad file descriptor [failed]

/etc/rc.d/rc.sysinit: line 176: /dev/null: Read-only file system Initializing USB controller (usb-uhci):dup2 : Bad file descriptor [failed]

/etc/rc.d/rc.sysinit:line 187: /dev/null :Read-only file system

Checking root filesystem dup2: Bad file descriptor [failed]

*****An error occurred during the file system check

*****Dropping you to a shell ; the system will reboot

*****when you leave the shell.

Give root password for maintenance

我被要求输入管理员密码之后需要修理文件系统。问题是根分区是被以只读的方式安装的!惨啊,什么都没有办法做了。

有什么办法没有?各位多谢了!

哎,, 由于里面放了好多重要的数据,当时真是急死了,不过还好,算我心细,可能是这个文件丢失了好长时间了,只是没有关,机,所以表现不出来,只是有一个时间出现过,我用普通user进入init5结果说是/dev/null有问题,那时我就知道点,结果后来不知道谁可能是为了玩qq吧,,把我的机子给关了,结果就那样了,后面我到vmware上把linux中的dev/null删了,还是出现这样的问题,哎,,终于松了一口气,google中.........

用rescue模式进入系统,

cd /mnt/sysimage/dev

mknod null c 1 3

chmod 666 null

reboot

OK又见到熟悉的东东了, happy

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航