cp: cannot create regular file '/media/user/backup/backup_2018-03-26_01:46.tar.gz': Invalid argument

Practice



cp: cannot create regular file '/media/user/backup/backup_2018-03-26_01:46.tar.gz': Invalid argument

 

Error when copying in ubunutu.

To figure out this problem, you need to check what filesystem is used for /media. It's possible that it doesn't support colons in file names, which means the file name must not contain characters that are invalid in FAT32 — for example, the invalid characters colon, slashes, quotes  — and you need to copy it like this

 

cp /backup/backup_2018-03-26_01_46.tar.gz  '/media/user/backup/'

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "LINUX operating system"

Terms: LINUX operating system