Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<  762 of 909 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 12063
Last update: 10-30-08
Issue:
Why does fsck on an ext3 file system loop forever?
Resolution:

On an ext3 filesystem, fsck seems to loop forever, as shown int he following example:


e2fsck -y /dev/md0
e2fsck 1.37 (21-Mar-2005)
Pass 1: Checking inodes, blocks, and sizes
Inode 8 has illegal block(s). Clear? yes
Illegal block #2371 (3939553560) in inode 8. CLEARED.
Illegal block #2372 (2534662274) in inode 8. CLEARED.
Illegal block #2373 (860109200) in inode 8. CLEARED.
Illegal block #2374 (3289467369) in inode 8. CLEARED.
Illegal block #2375 (3883044785) in inode 8. CLEARED.
Illegal block #2376 (819724782) in inode 8. CLEARED.
Illegal block #2377 (2957378758) in inode 8. CLEARED.
Illegal block #2378 (1131441392) in inode 8. CLEARED.
Illegal block #2379 (1473257247) in inode 8. CLEARED.
Illegal block #2380 (2359314433) in inode 8. CLEARED.
Illegal block #2381 (448867375) in inode 8. CLEARED.
Too many illegal blocks in inode 8.
Clear inode? yes
Restarting e2fsck from the beginning...
Pass 1: Checking inodes, blocks, and sizes
Inode 8 has illegal block(s). Clear?

In this case, inode 8 is a journal inode. Removing the journal from the filesystem will allow fsck to run without the infinate loop. After fsck is run, the journal will be re-added to the filesystem.

Begin by removing the journal from the filesystem:

debugfs -w -R "feature ^has_journal,^needs_recovery" filesystem

Rerun fsck on the filesystem:

e2fsck -y filesystem

Add the journal back to the filesystem:

tune2fs -j filesystem


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS Basics > Issue <<   762  of  909  >>