EXT3 file-system error "bad entry in directory"

  • 3554036
  • 05-Jan-2008
  • 30-Apr-2012

Environment

Novell Linux Desktop 9
Novell Open Enterprise Server 1 (OES1) Support Pack 2 Linux
Novell Open Enterprise Server 2 (Linux based)
Novell openSUSE 10.X
Novell SUSE Linux Desktop 1.0
Novell SUSE Linux Enterprise Desktop 10
Novell SUSE Linux Enterprise Server 10
Novell SUSE Linux Enterprise Server 9

Situation

At reboot, or mount of an EXT3 file-system, an error similar to the one below is seen:

EXT3-fs error (device dm-0): ext3_readdir: bad entry in directory #5556142: rec_len is smaller than minimal - offset=0, inode=2553887680, rec_len=0, name_len=0

Resolution

This error is caused by a file that has been marked as a directory. This is a non-fatal error and can be fixed by removing the file in question.

  1. Mount the file-system in question
  2. Locate the file that has been corrupted. The file's inode is the number after "bad entry in directory" Using the example error code the file would be found by typing
    find /MOUNT_POINT-inum 5556142
  3. Delete the file identified in step two
  4. Umount the file-system
  5. Check the disk, and check for errors.
    fsck/dev/PHYSICAL_DEVICE
  6. Repeat step 5. If no errors, the file-system is clean.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.