0

I have a Windows 10 / Manjaro (4.19.32-1-MANJARO) dual boot. All my personal data is stored on an NTFS partition that I use in both systems.

I have a project which involves pictures with some colons (:) in their filenames. I can access those files correctly in Linux (I know I can't with Windows, and it's fine).

However, when I try to create new files with special chars like : (from Linux, of course), in this partition, I can't. It worked fine until recently (2-3 weeks ago). I noticed the issue today.

Example using touch:

[user@user-thinkpad Data]$ touch a\:b
touch: setting times of 'a:b': No such file or directory

Another example:

[user@user-thinkpad Data]$ echo "Hello Hello" > 'a:b'
bash: a:b: Invalid argument

Copying from an external NTFS drive (new files for the project) doesn't work either, using the Files explorer:

enter image description here

Any idea why?

Here is what the mount options look like:

/dev/sda3  on  /run/media/user/Data  type  fuseblk     (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
[user@user-thinkpad Data]$ sblk -f | grep sda3
├─sda3 ntfs     Data    36A83041A83001C3    52.6G    80% /run/media/user/Data

I'll be happy to share some more information about my system if needed.

Note: I always use the command shutdown /s /t 0 to completely shut Windows down before booting Manjaro.

14
  • 2
    What happens when you try to create them? Any error messages? Are you creating them via the terminal? If so, what command(s) are you using? Apr 7 '19 at 13:53
  • Thanks, I edited the question.
    – hibol
    Apr 7 '19 at 13:57
  • Does this command work: echo "Hello Hello" > 'a:b'? If it doesn't, add the error to your question. For the error in your image, try copying the file by surrounding it with single quotes. Apr 7 '19 at 14:13
  • Done. For the error in the image, I used the files explorer to try to copy a file. The double quotes are only on the error message.
    – hibol
    Apr 7 '19 at 14:17
  • My mistake. The command should be: echo "Hello Hello" > 'a:b'. Apr 7 '19 at 14:30
0

Instead of mounting the drive as fuseblk, install ntfs-3g via pacman -Sy ntfs-3g and the mount it as ntfs via

mount -t ntfs /dev/sda3 /mount/point

To have it mount at boot, add this line to /etc/fstab:

/dev/sda3 /mount/point ntfs-3g defaults 0 0

To make sure that it works, unmount the drive first via:

umount /mount/point

Then remount it via

mount -a

That will make sure that it will mount at boot with no errors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.