[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <062C162D-7D68-4C2A-A6E8-B51F771E88D3@dilger.ca>
Date: Mon, 25 Oct 2010 22:16:55 +0800
From: Andreas Dilger <adilger.kernel@...ger.ca>
To: Jesus Sanchez Melendro <melendro@...ra.es>
Cc: linux-ext4@...r.kernel.org
Subject: Re: How to remove a corrupted dir in an ext4 FS?
On 2010-10-24, at 19:12, Jesus Sanchez Melendro wrote:
> After a corruption in an ext4 filesystem, I've checked and moved to the
> correct position all the files and dirs in lost+found, but one of the dirs is
> corrupted.
>
> The "ls -l" command says:
> d????????? ? ? ? ? ? /lost+found/#90116
>
> If I try to remove it with "rmdir" or "rm -rf" or "mv" or "unlink", all
> commands say:
> <command used>: failed to remove `#90116': Input/output error
>
> Running "fsck" says that the filesystem is OK.
>
> Is there a way to remove that corrupted dir?
You can probably check "lsattr /lost+found/#90116" to see if either the "i" (immutable) or "a" (append-only) attribute is set. If yes, then running "chattr -i -a/lost+found/#90116" will remove those attributes, and it should be removable.
Cheers, Andreas
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists