LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-01-2011, 07:15 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
bad entry in directory unaligned directory entry


I have the following error on one of my servers. Is there a way to tell which directory is exactly having the problem? if there is, if i delete that directory, will that resolve the problem or no?


kernel: EXT2-fs error (device md(9,0)): ext2_check_page: bad entry in directory #10158084: unaligned directory entry - offset=0, inode=605471640, rec_len=7606, name_len=177
 
Old 04-01-2011, 07:29 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I would boot a live CD and run fsck on the partition.

You can find the inode of any file by using ls -i.
Code:
$ ls -id Documents
3047525 Documents
You could combine this with grep to search for the inode number.
Code:
ls -iR / | grep 605471640
Nevertheless I expect that running fsck on the partition should fix the problem.
 
Old 04-01-2011, 07:33 AM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Sounds like it might not be too bad of a problem maybe? there's like a TB of data on there, so i'll have to schedule some long downtime to run the check. I'm guessing thats the only thing that will truly clean this up, even if i could delete the bad folder?
 
Old 04-01-2011, 07:35 AM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by rjo98 View Post
I'm guessing thats the only thing that will truly clean this up, even if i could delete the bad folder?
I wouldn't try to delete the bad folder. I think that the results could be unpredictable.
 
Old 04-01-2011, 07:39 AM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
ok, thanks
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scaling of directory entry lookup jon_smark Programming 1 02-28-2011 01:30 PM
3. What /etc/exports entry would export a directory named /nfs to all clients on the 1bigboy74 Linux - Newbie 3 01-22-2011 01:24 PM
[SOLVED] fstab entry for NFS mount of directory with a space bkorb Linux - Server 5 05-26-2010 10:40 AM
[SOLVED] Making a directory entry pointing to (file+offset) grchere Linux - General 1 05-05-2010 10:58 PM
strange directory entry in Desktop davsnotn Linux - Security 5 06-08-2006 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:47 PM.

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