Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-22-2011, 11:29 PM   #1
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
How to deal with corrupt filesystem?

Hi one of the partition seems to be corrupted .

blade-4 kernel: journal_bmap: journal block not found at offset 3084 on sdc1
blade-4 kernel: Aborting journal on device sdc1.
blade-4 kernel: ext3_abort called.

due to which it is getting remounted in read only mode

After doing some R&D it seems to be issue with journal .
following solution were given to deal with it.

remove the journal:
tune2fs -O^has_journal /dev/hdxx
Add it back:
tune2fs -j /dev/hdxx
Now i m not sure if it will do any damage to the existing data .

Please suggest.

Last edited by pinga123; 02-22-2011 at 11:45 PM.
Old 02-23-2011, 08:20 AM   #2
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 17.3+18.3, MX-17
Posts: 4,158

Rep: Reputation: Disabled
As far as I can deduce nothing untoward will happen as a result from the three(!) commands (you omitted the file system check)
tune2fs -O^has_journal /dev/hdxx
e2fsck /dev/hdxx
tune2fs -j /dev/hdxx
Reason: the journal is syncing its data every 5 seconds in the default setting (or did you change that?). So your data were either written out of that journal or there is a small chance that they are corrupt in that journal. In the latter case you don't know which state your files are in anyhow. If you know what you did last, you might take a look at files open during the change in your file system from rw to ro and try to find out the state they are in.

Much less trouble would be: back up or clone the partition and unleash those commands. If all is well -- okay, else you have that backup and you'll have to restore from there.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAID-1 with one disk causes filesystem to be corrupt? alirezan1 Linux - Newbie 4 02-23-2009 11:23 AM
Crypto filesystem : corrupt or wrong password? iainr Linux - Software 1 10-23-2006 08:15 AM
where has my disk space gone? corrupt filesystem? matticus SUSE / openSUSE 3 09-19-2006 10:06 PM
Unknown or corrupt filesystem Synergetek Linux - Newbie 1 02-03-2003 05:14 AM
ext2 filesystem fragmentation, whats the deal? bobthebat Linux - General 3 08-20-2001 02:35 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration