2

I've been copying large amounts of files from a Linux backup to a NTFS partition. The purpose is to have all files accessible from Windows.

From this experience I've learned the following.

  1. NTFS appears to support all characters that Ext4 support.
  2. Windows does not and will complain in weird ways
  3. Windows will delete those annoying files during a full scan and "repair"

I'm looking for a solution that will complain a early and prevent me from writing files on a partition that a windows disc repair would delete.

Is there a way to copy files onto a NTFS partition allowing only file name characters accepted by windows?

hultqvist
  • 227
  • 1
  • 2
  • 7
  • See also http://unix.stackexchange.com/a/150650/117549 – Jeff Schaller May 19 '16 at 23:20
  • @JeffSchaller it looks like detox ["It removes spaces and other such annoyances"](http://manpages.ubuntu.com/manpages/trusty/en/man1/detox.1.html) which isn't acceptable on personal files. – hultqvist May 20 '16 at 07:03
  • You could scan your filesystem for problematic names with fslint - which is frely avaliably in the repositories. – Ken Mollerup Apr 04 '17 at 09:48

1 Answers1

5

If you're using ntfs-3g to mount your NTFS filesystem, the windows_names option will prevent files with problematic names from being created:

ntfs-3g -o windows_names ...
Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164