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

mkdir: cannot create directory ... : Invalid argument



1) From the live DVD, I am running:

$ sudo uname -a
Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02)
x86_64 GNU/Linux

2) using as desktop environment:

echo $XDG_CURRENT_DESKTOP
XFCE
~
 I am able to make a directory while I am in "/home/user" but not
inside of a directory which I mounted by clicking on their GUI. Why
would that be?

$ pwd
/home/user
$ findmnt -n -o SOURCE --target "$(pwd)"
overlay

$ _DIR="WeltUndWirkungsprinzip2.Aufl."
_DIR02=$(printf %s "${_DIR}" | jq -sRr @uri)
if [ "${_DIR}" == "${_DIR02}" ]; then
 echo "// __ \"${_DIR}\" == \"${_DIR02}\"|"
 mkdir --parents --verbose "${_DIR02}"
fi
// __ "WeltUndWirkungsprinzip2.Aufl." == "WeltUndWirkungsprinzip2.Aufl."|
mkdir: created directory 'WeltUndWirkungsprinzip2.Aufl.'
$

 while in the Windows NT directory:

$ pwd
/media/user/<...>

$ findmnt -n -o SOURCE --target "$(pwd)"
/dev/sda1

_DIR="WeltUndWirkungsprinzip2.Aufl."
_DIR02=$(printf %s "${_DIR}" | jq -sRr @uri)
if [ "${_DIR}" == "${_DIR02}" ]; then
 echo "// __ \"${_DIR}\" == \"${_DIR02}\"|"
 mkdir --parents --verbose "${_DIR02}"
fi
// __ "WeltUndWirkungsprinzip2.Aufl." == "WeltUndWirkungsprinzip2.Aufl."|
mkdir: cannot create directory ‘WeltUndWirkungsprinzip2.Aufl.’: Invalid argument
$ ls -l "${_DIR02}"
ls: cannot access 'WeltUndWirkungsprinzip2.Aufl.': No such file or directory
$ cd "${_DIR02}"
bash: cd: WeltUndWirkungsprinzip2.Aufl.: No such file or directory
$

$ sudo df -Th | grep "Filesystem\|overlay\|^/dev/sd"
Filesystem     Type      Size  Used Avail Use% Mounted on
tmpfs          tmpfs     7.8G  1.2G  6.6G  16% /run/live/overlay
overlay        overlay   7.8G  1.2G  6.6G  16% /
/dev/sda1      fuseblk   286G  274G   12G  96% /media/user/<...>
$

$ pwd
/home/user
$ cd WeltUndWirkungsprinzip2.Aufl./
$ pwd
/home/user/WeltUndWirkungsprinzip2.Aufl.
$ echo "1 2 3 X Y Z" > file.txt
$ ls -l
total 4
-rw-r--r-- 1 user user 12 Feb 12 20:57 file.txt
$ _SCR=$(pwd)
$ cd ..
$ pwd
/home/user
$ echo "${_SCR}"
/home/user/WeltUndWirkungsprinzip2.Aufl.
$ rsync --verbose --archive "${_SCR}" "/media/user/<...>"
sending incremental file list
rsync: [generator] recv_generator: mkdir
"/media/user/<...>/WeltUndWirkungsprinzip2.Aufl." failed: Invalid
argument (22)
*** Skipping any contents from this failed directory ***
WeltUndWirkungsprinzip2.Aufl./

sent 118 bytes  received 20 bytes  276.00 bytes/sec
total size is 12  speedup is 0.09
rsync error: some files/attrs were not transferred (see previous
errors) (code 23) at main.c(1333) [sender=3.2.3]
$ ls -l  "/media/user/<...>/WeltUndWirkungsprinzip2.Aufl."
ls: cannot access '/media/user/<...>/WeltUndWirkungsprinzip2.Aufl.':
No such file or directory
$


 I thought the problem related the encoding of characters of the URL
from which I was that string, but it is not the case. So, the problem
seems to relate to a dot as the last character of the name of a
subdirectory on Windows NT filesystems mounted by fuseblk. Is that the
case? I had never heard of such thing.

 lbrtchx


Reply to: