/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

posted @ 2016-07-06 17:10  w3391826735  阅读(1550)  评论(0编辑  收藏  举报