Score:0

Cannot interact with directory, how to remove it

br flag

I have a directory with a lot of files that I want to remove but I cannot interact with it.

The size of the folder is 29M. rm -rf ran overnight without it seems doing anything.

find . -type f -print | head -n 1 doesn't print anything, I can see in htop that it doesn't actually run but is in state D. Same with find . -type f -delete.

Could it be corrupted or something like that? How can I check for that and fix it?

Score:0
cn flag

The D state means uninterruptible - see here for a nice description. You may be forced to restart your server unless someone can chip in with a better solution to interrupt the uninterruptible!

My original guess was that the file is probably as 'in use' by an open process. Try using lsof to find the process and restart it/end it if possible. Maybe killing that process will break the lock?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.