Score:0

Cannot delete directory that is owned by "?"

ph flag

I'm on ext4. I have a rogue directory here:

d?????????  ? ?        ?                       ?            ? thisStrangeDirectory/

As root, I can't chmod, chown or stat the directory... it just permission denied to absolutely everything.

Tried: lsattr /home/june/thisStrangeDirectory (Suggested by paladin) Got: lsattr: Permission denied while trying to stat /home/june/thisStrangeDirectory

What can I do with this thing?

paladin avatar
kr flag
Make a complete filesystem check first. And make sure that this file/directory has not +i attribute (viewable with `lsattr FILENAME`). You may remove this attribute with `sudo chattr -i FILENAME`.
David avatar
cn flag
What version of Ubuntu? Did you try with sudo?
sudodus avatar
jp flag
Check & repair the file system. What file system is it? `ext4`, NTFS, FAT32 or something else?
bluesquare avatar
ph flag
@David This is occurring while I'm root. Also tried sudo just to do it.
bluesquare avatar
ph flag
@paladin Thanks for your suggestion . Tried it but still perm denied.
cn flag
This won't be fixed with normal tools: it is a filesystem error. I assume this is not a mountpoint? If not you need to check the filesystem. see for instance https://askubuntu.com/a/1237483/15811
sudodus avatar
jp flag
So the bad file seems to be in your home directory. There is probably an `ext4` file system. Boot from another Ubuntu drive, I suggest a USB pendrive with Ubuntu live (the system, that you used to install Ubuntu). Identify the partition where you have your home directory with `lsblk -f` and `df /home` and repair it. [This link](https://ubuntuforums.org/showthread.php?t=2196858&p=13409986#post13409986) may be helpful.
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.