4

Is it possible to unlink a folder in NTFS rather than delete it? ie. Can I simply delete it from the filetable?

The reason I want to do this is because I have a bunch of stuff that I've copied off from a Linux computer, and it seems that ntfs3g has done something funny in allowing filenames that shouldn't have been (for instance pipes in filenames) as well as linking some things... for instance ".wine/dosdevices/c:" is being recognised as a link to my c drive and it won't delete it without clearing out my windows drive! So I thought that perhaps I could just unlink the .wine directory and be done with it, except I can't work out how.

Mokubai
  • 95,412

4 Answers4

2

Windows has command line fsutil utility. You could use it to manage links.

1

I would suggest remounting over NTFS-3G and cleaning up from there rather than the native NTFS delete attempts.

In fact if might be easier if you can delete the entire copy from NTFS-3G and
copy again skipping special files (links, pipes, et al).

nik
  • 57,042
0

Have you tried connecting to your Windows machine via SMB from a Linux or OSX machine and deleting the files over that connection? I've run into a similar situation in the past and that worked for me.

arathorn
  • 8,769
0

Delete the files using the explicit paths: del "\\?\C:\some\absolute\path\.wine\dosdevices\c:".

Ark-kun
  • 129