Score:0

How can I remove a folder that cannot be deleted (two folders in the same directory have the same inode number)?

gs flag

I have tried using rm with various flags, such as -d and -r (-r was successful as folder is now empty), tried moving to trash through GUI (which produces error that file cannot be moved to trash), tried troubleshooting the ownership of the directory (received error that directory does not exist), nothing works.

The problem seems to stem from the fact that the folders have the same name, only one folder also has a punctuation mark at the end. How can this folder be removed?

I tried deleting the folder from Windows, but Windows throws an error that the entire directory is unreadable and cannot be accessed. I can read the directory just fine from Linux but cannot remove the folder (drive is NTFS).

Levente avatar
cn flag
I would reboot into an emergency mode / recovery shell, and would see what `fsck` has to say about the partition.
in flag
Sounds like the partition’s indexes have been damaged. If Windows won’t properly recognize data on an NTFS partition, you’re working with borrowed time. Backup the data you want to keep, wipe the drive, and start fresh. If it needs to stay NTFS, be sure to format it in Windows to ensure maximum compatibility.
user10489 avatar
in flag
Backing up is a good idea. But before wiping, I'd try fsck or the windows equivalent chkdsk and see if it can be fixed. Might have to run it from a rescue disk or windows recovery mode.
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.