重建/dev/null

/dev/null 不覆盖.启动提示一下错误

 

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
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

 

重建过程如下

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

你可能感兴趣的:(重建/dev/null)