/dev/null 不覆蓋.啓動提示一下錯誤html
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 shellVFS: 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 |
重建過程以下linux
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 3shell