Board logo

subject: How To Repair Corrupt Superblock In Ext2 File System [print this page]


In the Linux systems, the ext2 (short for second extended file system) file system is used extensively by numerous users. This file system is very efficient when dealing with real large disk partitions. In addition, when the ext2 file system is mounted then all the information that is stored in the disk data structures is copied into the RAM of the system. Because of this, the Linux kernel is able to avoid numerous disk read operations. However, as nothing is perfect in this world the ext2 file system, too, is prone to corruption. In such cases, you should perform in-built methods to remove corruption and mount file system. However, in case you are unable to fix the problem then you should use a third-party Linux data recovery software to perform data recovery for Linux system.

Let us take an example. Consider a scenario wherein you have a Linux system having ext2-based file system. In this, when you try to mount the file system after a power outage you are unable to do so. An error message is displayed, that is:

mount: wrong file system type, bad option, bad superblock, or too many mounted file systems

Cause:

Such problems in mounting file system can occur due to corrupt ext2 file system especially the superblock.

Resolution:

To recover the problem of corrupt superblock, you should perform the following steps:

Search the superblock for the /dev/sda2 location.

Try to restore the file system using alternate superblock #xxx

Here, xxx is the location of the alternate superblock.

Now, try to mount the file system using the following command:

# mount /dev/sda2 /mnt

Try to mount the file system and check the files to see whether they are intact or not.

Such workarounds would be able to fix the superblock and you would be able to access the file system again. However, if the method does not succeed then you should use a third-party Ext2 Recovery software to recover the inaccessible data from the system. These Linux data recovery tools have rich user interface that do not overwrite the existing file system while scanning the storage media. Also, the use of fast and sophisticated scanning algorithms ensures that the file system recovery is safe and secure.

by: jonny defh




welcome to loan (http://www.yloan.com/) Powered by Discuz! 5.5.0