当前位置: 主页 > 操作系统 > Linux > linux系统出现/dev/null Read-only file system解决办法

linux系统出现/dev/null Read-only file system解决办法

时间:2012-9-14来源:互联网 点击:

      linux启动出现:

      /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
   后面还有一个ctrl+d 重启或输入密码进入救援模式。

先进救援模式吧,应该是/dev/null 文件 丢失,系统无法启动。


先删除这个文件再重建吧。

rm -f /dev/null  

提示无法找到这个文件

郁闷,咋找不到呢,难道是系统文件没有被挂载??

先挂载:mount -n -o remount,rw /dev/hda 

提示无法找到hda ,我拷,跟我作对呢,成心不让我回家。。

继续。先进入目录看看
cd /root
看看有没有权限
mkdir test
rm -rf test 

OK 能正常操作。

接着删除 
rm -f /dev/null 

再创建吧。

mknod -m 666 /dev/null c 1 3
reboot 
系统正常启动

站长资讯网
. TAG: linux
推荐内容最近更新人气排行
关于我们 | 友情链接 | 网址推荐 | 常用资讯 | 网站地图 | RSS | 留言