For solving deleted or overwritten /dev/null file issues, you need to replace it with the suitable inode. To do so, follow these steps:
Boot the system in single-user mode
Mount the /proc file system as:
/proc is the dynamically generated file system while boot process
Mount the file system in read-write mode as:
Code:
mount -o remount,rw /
Delete the /dev/null file:
Use correct inode to replace it as:
Code:
mknod -m 666 /dev/null c 1 3
Remount the file system in read-only mode and restart the system
For resolving the file system and disk block issues, execute fsck command. Run the command when the file system isn't mounted. If still the problem persists, reformat the volume and restore from backup. For backup problems, use Linux Recovery tools. Such utilities perform Data Recovery Linux using powerful scanning algorthms and provide graphically rich user interface.
Click to expand...