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.

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.

  • 3 years later...

With that kind of error message, you certainly would like to try using Long Path Tool to delete that. I have been having that kind of problem and someone referred me to this site: http://longpathtool.com/ and it did work :) I had it downloaded and loved the free trial.

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

    • No registered users viewing this page.
  • Posts

    • Everything I have read is that the BBC is still Pro Doctor Who but wants a solid plan before they let anyone else try to do it. Which is fair.
    • I totally agree no one should trust governments AND big tech companies that have near monopolies in certain market segments. The difference is of course citizens at least have some say in government. Yes, requiring Apple to open up Sirsi to other AI backends is in the interest of EU customers and certainly "opens" up the platform a crack. What are you saying? I wish the US would regulate tech companies more here and even break them up in some cases. Granted trusting the government to do it right is a crap shot at best but what is the alternative? To allow a few tech companies to continue to run everything and just print money? It's crazy to me for example that in most of the world 99% of communications go thru Facebook servers via WhatsApp. What kind of dystopian world are we living in?
    • You can.. make sure you have ADB tools on whatever OS you are running, plug your phone into your PC give it approval to talk to the phone then run this command. adb shell pm uninstall -k --user 0 com.android.chrome So long as you leave Android Webview untouched it wont break anything on your Phone to do this. I have been using exclusively Firefox mobile since it was released.
    • If it ain't broke, don't fix it. One Commander Free also available in the Store has been my goto Files Manager for years. It does what I need at a more than reasonable speed. I do occasionally use Files Explorer just because it is there and does what I need without any problems when I use it.
    • I think you missed his point. He wasn't saying that cloud storage isn't possible on GNU/Linux, clearly it is. He was pointing out that you are commenting about your dislike of Windows on an article about OneDrive (not Windows) for Mac (also not Windows). Its about as off topic as coming to an article about Sony improving something on the PlayStation and saying that you hate Sony TVs and prefer LG.
  • Recent Achievements

    • One Month Later
      Tommi118 earned a badge
      One Month Later
    • One Month Later
      sjbousquet earned a badge
      One Month Later
    • Week One Done
      sjbousquet earned a badge
      Week One Done
    • First Post
      DragonOfMercy earned a badge
      First Post
    • First Post
      bella52 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      500
    2. 2
      PsYcHoKiLLa
      208
    3. 3
      +Edouard
      155
    4. 4
      Steven P.
      83
    5. 5
      FloatingFatMan
      73
  • Tell a friend

    Love Neowin? Tell a friend!