QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 842|回复: 4

覆盖了/dev/null,系统启动不了

[复制链接]
发表于 2003-6-17 10:03:54 | 显示全部楼层 |阅读模式
昨天一不小心覆盖了/dev/null,今天发现系统进不去了!请问这个问题怎么解决?
发表于 2003-6-17 12:02:25 | 显示全部楼层
出什么错误
回复

使用道具 举报

 楼主| 发表于 2003-6-17 16:26:16 | 显示全部楼层
VFS: Mounted root (ext2 filesystem) readonly
change_root: old root has d_count=1
Trying to unmount old root ... okay
Freeing unused kernel memory: 76K freed

... and then ...

Mounting proc filesystem dup2: Bad file descriptor [FAILED]
Configuring kernel parameters dup2: Bad file descriptor [FAILED]
Setting clock: Tue Jul 2 .... dup2: Bad file descriptor [FAILED]
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
回复

使用道具 举报

发表于 2003-6-17 16:45:34 | 显示全部楼层
这个问题还从来没有遇到过

null文件是一个空设备

比如你的程序需要输出一段信息又不想让别人看见,我们先不管你这样做的目的何在

你就可以把信息输出到NULL设备,就像石沉大海或者黑洞的感觉

我不知道这个设备“坏了”应该怎么办

重装是不必要的吧,你如果硬盘上还有一个linux的话

用你的那个linux的NULL设备覆盖回去就是了
回复

使用道具 举报

发表于 2006-5-7 21:17:55 | 显示全部楼层
当提示你输入root密码修复系统时,运行如下三条命令即可:

mount -n -o remount,rw /dev/hda(hda1,or hda2..., etc, according to your boot partition)
rm /dev/null
mknod -m 666 /dev/null c 1 3

我也是遇到这个问题头疼过,看到还没人回答这个问题,就到这里贴一下,希望对您有所帮助。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-23 01:26 , Processed in 0.045386 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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