/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

下文链接:http://user.qzone.qq.com/3391826735/2

目录
相关文章
|
1月前
|
Linux
【Linux】关于Bad magic number in super-block 当尝试打开/dev/sda1 时找不到有效的文件系统超级块
【Linux】关于Bad magic number in super-block 当尝试打开/dev/sda1 时找不到有效的文件系统超级块
43 0
|
6月前
|
存储 Linux
Linux 中的 /dev/null 是什么?有什么隐藏的作用?
Linux 中的 /dev/null 是什么?有什么隐藏的作用?
179 0
|
8月前
文件系统里面没有 /dev/input/mice 文件的解决办法
文件系统里面没有 /dev/input/mice 文件的解决办法
119 0
文件系统里面没有 /dev/input/mice 文件的解决办法
|
Linux Perl
修复 Longhorn 卷挂载失败(”CentOS 7.6-'fsck' found errors on device“)
修复 Longhorn 卷挂载失败(”CentOS 7.6-'fsck' found errors on device“)
180 0
相关产品
云迁移中心
推荐文章
更多