On 1/10/19 9:52 PM, Prafulla Giri wrote:

> $ mkdir -p
> /media/alpha/0403-0201/Prafulla/10Jan2018/Image_Sequence_Fri_Jan_11_09:13:38
> This one throws the following error: 'mkdir: cannot create directory
> ‘/media/alpha/0403-0201/Prafulla/10Jan2018/Image_Sequence_Fri_Jan_11_09:13:38’:
> Invalid argument'
> 
> Which is rather strange. I don't really see any reason why it should work
> under /home but not under /media.

However, I do, and it has nothing to do with coreutils and everything to
do with your file systems.  I suspect that /home is mounted to a
traditional Linux file system where any file name (other than a NUL or /
byte) is valid, while /media is mounted to a removable drive which is
probably formatted as a FAT file system, and the FAT specification
forbids certain characters such as ':' in file names.  Since the kernel
can't create your choice of file name on that system, it must fail instead.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to