[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A possible mkdir bug

From: Eric Blake
Subject: Re: A possible mkdir bug
Date: Thu, 10 Jan 2019 22:26:26 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1

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: |

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]