Can't delete folder created in Linux from NTFS external HD


Recommended Posts

On my WD external drive, I had backed up a my Ubuntu home folder, from ages ago. I don't need it, so I want to delete it. The problem is, that when I try to delete it, it says "The file name you specified is invalid or too long".

I tried to delete it using the rmdir /s command, but it failed as well.

Link to comment
Share on other sites

Linux allows more characters in filenames than Windows does, so you might be running into problems with the filename.

Two options come to mind.

1. Use the "shortname" from a Windows(DOS) command prompt. This is the name that has the tilde in it, and and limited to the "8 plus 3" filename, like "progra~1"

2. Boot your Ubuntu LiveCD and delete it from there.

Link to comment
Share on other sites

  • 3 years later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.