I have been using FFS for a while now on windows machines without problems but I just switched to Mint on one(hopefully all at some point)
I was trying to backup some music and ran across these 2 errors, at this point I canceled out.
11:14:32 PM Error Cannot create directory "/media/kt/BackupD1/Complete Albums 1 to F/C/Cheap Trick/Cheap Trick - Well Come On! (Live Chicago '79) (2025) FLAC ".
EINVAL: Invalid argument [mkdir]
11:06:26 PM Error Cannot create directory "/media/kt/BackupD1/Complete Albums 1 to F/D/Dwight Yoakam/Dwight Yoakam - Standin' On A Corner (Live Santa Cruz '86) (2025) FLAC ".
EINVAL: Invalid argument [mkdir]
as a test I removed the apostrophe in both the directory names and ran a backup on these 2 folders without errors.
Anyway to fix this without going through and renaming ?
Thanks
Mint OS cannot create folders with " ' " in them
- Posts: 3
- Joined: 4 Aug 2025
- Posts: 3
- Joined: 4 Aug 2025
Also I can create a file on that drive with the original name with the apostrophe
- Posts: 1222
- Joined: 8 May 2006
Sounds odd that Linux would reject most any character, much less an apostrophe?
What you have printed here, from the error messages, sure looks to be apostrophes.
Can you confirm that the actual directory names are using actual apostrophes & not some character that looks like an apostrophe?
ls | hexdump -C was mentioned.
You might find that your ' is not a $27$ but rather something different, & it is that that is causing the issue.
I'd think that you could successfully do:
mkdir apos'tro
cp apos'tro tro'apos
(where the ' are actual apostrophes).
What you have printed here, from the error messages, sure looks to be apostrophes.
Can you confirm that the actual directory names are using actual apostrophes & not some character that looks like an apostrophe?
ls | hexdump -C was mentioned.
You might find that your ' is not a $27$ but rather something different, & it is that that is causing the issue.
I'd think that you could successfully do:
mkdir apos'tro
cp apos'tro tro'apos
(where the ' are actual apostrophes).
- Posts: 3
- Joined: 4 Aug 2025
I have since fixed this, had to let it run, find the directories that it failed.
I then tried several different renamings and nothing worked.
I then created a new directory, copied the contents over and deleted the old. everything worked
Now what is strange is I would say about 1/2 of the dir that failed I had created myself.
Keep in mind that this is all done using the gui in mint as I am new to linux, but I do go back to the old dos only days so....
If I run across this again a friend just told me there is a way to find no ascii caracters with a command, will have to look for that and run it as there might be old files that have the same issue but since they dont need updated, will never find
I then tried several different renamings and nothing worked.
I then created a new directory, copied the contents over and deleted the old. everything worked
Now what is strange is I would say about 1/2 of the dir that failed I had created myself.
Keep in mind that this is all done using the gui in mint as I am new to linux, but I do go back to the old dos only days so....
If I run across this again a friend just told me there is a way to find no ascii caracters with a command, will have to look for that and run it as there might be old files that have the same issue but since they dont need updated, will never find