覆盖了/dev/null,系统启动不了
昨天一不小心覆盖了/dev/null,今天发现系统进不去了!请问这个问题怎么解决? 出什么错误 VFS: Mounted root (ext2 filesystem) readonlychange_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
Configuring kernel parameters dup2: Bad file descriptor
Setting clock: Tue Jul 2 .... dup2: Bad file descriptor
Checking root filesystem
dup2: Bad file descriptor
...
*** An error occurred during the file system check
*** Dropping you to a shell; the system will reboot
*** when you leave the shell 这个问题还从来没有遇到过
null文件是一个空设备
比如你的程序需要输出一段信息又不想让别人看见,我们先不管你这样做的目的何在
你就可以把信息输出到NULL设备,就像石沉大海或者黑洞的感觉
我不知道这个设备“坏了”应该怎么办
重装是不必要的吧,你如果硬盘上还有一个linux的话
用你的那个linux的NULL设备覆盖回去就是了 当提示你输入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
我也是遇到这个问题头疼过,看到还没人回答这个问题,就到这里贴一下,希望对您有所帮助。
页:
[1]