Although, Linux is a reliable and stable operating system, but sometimes it may crash unexpectedly. While booting a Linux system, you may get the below given error message:
“ext2fs partition type 0x83. ....ext3-fs: journal inode is deleted....
mount: error 22 mounting ext3 error 2 mounting name switch root: mountfailed:22 umount/initrd/dev failed:2
kernel panic - not syncing.”
After receiving this error message, Linux system could not be started.
Cause
Problems occurs when the system gets shutdown expectedly (possibly due to power outage, hardware failure or kernel bug) and file system does not get un-mounted.
Maximum file system issues are negligible ones, caused by the file buffers not being written to hard disk, like removed inodes are still in use. In maximum of the situations, file system check would be able to identify and repair these anomalies automatically.
If the file system problem is more severe (like the problems caused by faulty hardware like bad memory chip; you should keep in mind that file system corruption might happen frequently in such cases). The file system check might not be able to detect the problem automatically.
The grave situations usually, but not always, occur when your root Linux file system gets corrupted. In such situation, you will get the above mentioned error message and the OS will drop you in a shell, allowing you to perform manual file system repair and finally Linux recovery.
The Linux recovery shell un-mounts all the file systems and then mounts root file system in ‘read-only’ mode. It will give you to perform complete file system checks with the application of appropriate utility. Likely you can run fsck on the damaged file system, which might resolve the problem.
Though, the above mentioned method works in some conditions of minor problems with file system, but it can not fix the severely damaged file system. In such situations, you require to format the hard drive and reinstall the OS. But before this, you have to perform data recovery Linux to save your important data.
