Invalid filename issue when I transfer files on Ubuntu to the external drive

8,554

Solution 1

Modern file systems can cope with almost all Unicode characters except the so called /NULL character.

However in case we do need to store files on a drive formatted with an older file system such as FAT32 we may run into issues. File names containing reserved characters |\?*<":>+[]/ may then not be recognized.

Therefore even if today there is no need for this it still is good practice to avoid those characters in file names.

Whenever we run into file name issues we have the choice to

  • rename file containing reserved characters.
  • re-format this drive with a more modern file system.

If we need to occasionally share these file with Windows we should then format the external drive to NTFS. Only if the data are exclusively accessed from Ubuntu (or other Posix operating systems) we may prefer to choose ext4.

Solution 2

I sugest you to format your Maxell hdd and change the filesystem to ext4. Read on ext4 - Wikipedia how good can be this kind of filesystem for your files.

You can use GParted Partition Editor in this sense.

Share:
8,554

Related videos on Youtube

user1914692
Author by

user1914692

Updated on September 18, 2022

Comments

  • user1914692
    user1914692 over 1 year

    I backup files on Ubuntu 12.04 to the external drives.

    The WD external drive works well.

    But the Maxell external drive cannot recongnize some files names, such as the saved .html files with '|' or '/'. But these files names are fine in Ubuntu, and these names are automatically saved when I save from opened html pages.

    I do not want to change them one by one.

    Any solution?