What is the distributional sector?

What will FSCK (filesystem recovery) do when it encounters a bad sector in the metadata area of EXT4 filesystem?

  • I have a query related to the e2fsck (EXT4). Consider the case where the sector corresponding to the filesystem metadata (may be inode bitmap) got bad. 1. What will happen when fsck is run on the filesystem (since it is a case of bad sectors, not corruption)? 2. Will fsck help in remapping of the bad sectors?   (Context: I am using debugfs and dumpe2fs to find the information (file name, offset) corresponding to a bad sector. Everything works fine when bad sector lies in the data blocks. But suppose the bad sector lie in the metadata area (may be in inode block), in this case debugfs will not work and return error. Just wanted to confirm the behavior of fsck in this scenario. May be before using debugfs, I can use fsck)

  • Answer:

    It can reconstruct the data, dependent on where and what happened. For example is inode bitmap is corrupted. It has to go the inode tables and find out the entries, reconstruct the inode bit map by quarantine the bad block and write new block with the recovered information. Sometimes, it s couldn't be possible, if we hit a situation when inode bitmap and inode table both gets into that situation. Well, being a programmer, I don't believe in tools, I am a believer of concepts. If it could be done, and this tool doesn't give this. It can be enhanced. Moreover, it is all about finding the updated tool which give you all what you want. :)

Pankaj Saraf at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.