file:///media/gray/4tb/backup/
gray@NVP0:/$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8175412k,nr_inodes=2043853,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1641336k,mode=755)
/dev/mapper/ubuntu--vg-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=25,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=115)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
/var/lib/snapd/snaps/sublime-text_38.snap on /snap/sublime-text/38 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-logs_37.snap on /snap/gnome-logs/37 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-characters_139.snap on /snap/gnome-characters/139 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-calculator_260.snap on /snap/gnome-calculator/260 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-26-1604_74.snap on /snap/gnome-3-26-1604/74 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_6531.snap on /snap/core/6531 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-calculator_180.snap on /snap/gnome-calculator/180 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-system-monitor_51.snap on /snap/gnome-system-monitor/51 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-logs_45.snap on /snap/gnome-logs/45 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-26-1604_78.snap on /snap/gnome-3-26-1604/78 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/sublime-text_44.snap on /snap/sublime-text/44 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_1198.snap on /snap/gtk-common-themes/1198 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-system-monitor_57.snap on /snap/gnome-system-monitor/57 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-26-1604_82.snap on /snap/gnome-3-26-1604/82 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_818.snap on /snap/gtk-common-themes/818 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_1122.snap on /snap/gtk-common-themes/1122 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_6405.snap on /snap/core/6405 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-characters_103.snap on /snap/gnome-characters/103 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_6350.snap on /snap/core/6350 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/sublime-text_51.snap on /snap/sublime-text/51 type squashfs (ro,nodev,relatime,x-gdu.hide)
overlay on /var/lib/docker/overlay2/0e851706f257b94408be2055cd2ff08c605456ed8b2dd104b74800464f29db45/merged type overlay (rw,relatime,lowerdir=/var/lib/docker/overlay2/l/QBPLBIXGYUSXR6KMPWROOHCURT:/var/lib/docker/overlay2/l/NM3SWO3Z56OA2OAVGBHLRBBBLK:/var/lib/docker/overlay2/l/IEWHKFAINZI5FTTONZ5G4VKQA3:/var/lib/docker/overlay2/l/RGC3O4ZFZIEMMO2ODTE43TPEFY:/var/lib/docker/overlay2/l/BJ3UDIVWWSKHVPXYRQRRZR4GZM:/var/lib/docker/overlay2/l/BYV7LHPCDZB6NYD2B5XZ6YSFOR:/var/lib/docker/overlay2/l/23CHXXKLFTYNODDYCYS2UYKZRT:/var/lib/docker/overlay2/l/B6WZM4GRUQBKYWJHT6YPVOGDG4:/var/lib/docker/overlay2/l/IZ74CP7HBQZ5JSJFUZJMGBI2XE,upperdir=/var/lib/docker/overlay2/0e851706f257b94408be2055cd2ff08c605456ed8b2dd104b74800464f29db45/diff,workdir=/var/lib/docker/overlay2/0e851706f257b94408be2055cd2ff08c605456ed8b2dd104b74800464f29db45/work)
shm on /var/lib/docker/containers/3fd2b213b8eaa1f84c41648114756f5a03f239a1f531ffb9a6e8e086a6804ae7/mounts/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=65536k)
nsfs on /run/docker/netns/157093661c93 type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1641336k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/var/lib/snapd/snaps/core18_782.snap on /snap/core18/782 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-logs_57.snap on /snap/gnome-logs/57 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-calculator_352.snap on /snap/gnome-calculator/352 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-system-monitor_70.snap on /snap/gnome-system-monitor/70 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-characters_206.snap on /snap/gnome-characters/206 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_23.snap on /snap/gnome-3-28-1804/23 type squashfs (ro,nodev,relatime,x-gdu.hide)
/dev/sda1 on /media/gray/4tb type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
gray@NVP0:~$ df -h
Файл.система Размер Использовано Дост Использовано% Cмонтировано в
udev 7,8G 0 7,8G 0% /dev
tmpfs 1,6G 1,8M 1,6G 1% /run
/dev/mapper/ubuntu--vg-root 535G 264G 245G 52% /
tmpfs 7,9G 384K 7,9G 1% /dev/shm
tmpfs 5,0M 0 5,0M 0% /run/lock
tmpfs 7,9G 0 7,9G 0% /sys/fs/cgroup
/dev/loop0 30M 30M 0 100% /snap/sublime-text/38
/dev/loop1 15M 15M 0 100% /snap/gnome-logs/37
/dev/loop2 13M 13M 0 100% /snap/gnome-characters/139
/dev/loop3 2,3M 2,3M 0 100% /snap/gnome-calculator/260
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/74
/dev/loop4 92M 92M 0 100% /snap/core/6531
/dev/loop17 2,4M 2,4M 0 100% /snap/gnome-calculator/180
/dev/loop6 3,8M 3,8M 0 100% /snap/gnome-system-monitor/51
/dev/loop7 15M 15M 0 100% /snap/gnome-logs/45
/dev/loop8 141M 141M 0 100% /snap/gnome-3-26-1604/78
/dev/loop10 30M 30M 0 100% /snap/sublime-text/44
/dev/loop9 36M 36M 0 100% /snap/gtk-common-themes/1198
/dev/loop11 3,8M 3,8M 0 100% /snap/gnome-system-monitor/57
/dev/loop12 141M 141M 0 100% /snap/gnome-3-26-1604/82
/dev/loop13 35M 35M 0 100% /snap/gtk-common-themes/818
/dev/loop14 35M 35M 0 100% /snap/gtk-common-themes/1122
/dev/loop15 91M 91M 0 100% /snap/core/6405
/dev/loop16 13M 13M 0 100% /snap/gnome-characters/103
/dev/loop18 91M 91M 0 100% /snap/core/6350
/dev/loop19 68M 68M 0 100% /snap/sublime-text/51
tmpfs 1,6G 52K 1,6G 1% /run/user/1000
/dev/loop20 54M 54M 0 100% /snap/core18/782
/dev/loop21 1,0M 1,0M 0 100% /snap/gnome-logs/57
/dev/loop22 4,2M 4,2M 0 100% /snap/gnome-calculator/352
/dev/loop23 3,8M 3,8M 0 100% /snap/gnome-system-monitor/70
/dev/loop24 15M 15M 0 100% /snap/gnome-characters/206
/dev/loop25 144M 144M 0 100% /snap/gnome-3-28-1804/23
/dev/sda1 3,6T 237G 3,2T 7% /media/gray/4tb
но когда указываю путь к этой папке в media , почему то создается просто папка отдельная с таким же именем
ls -al /media/gray/
gray@NVP0:/media/gray/4tb$ ls -la
итого 52
drwx------ 5 gray gray 4096 мар 19 11:21 .
drwxr-x---+ 3 root root 4096 мар 19 09:13 ..
drwxr-xr-x 2 root root 24576 мар 19 11:10 backup
drwxr-xr-x 2 gray gray 4096 мар 19 11:21 'backup'$'\r'
drwx------ 2 root root 16384 мар 11 09:22 lost+found
gray@NVP0:/media/gray$ ls -la
итого 12
drwxr-x---+ 3 root root 4096 мар 19 09:13 .
drwxr-xr-x 3 root root 4096 янв 23 11:51 ..
drwx------ 5 gray gray 4096 мар 19 11:21 4tb
Не уверен как cron запускает скрипт , какие у него права, может еще подождать посмотреть что будет...cron'у можно указать явно root'а
getfacl /media/gray
, попробуйте также mkdir /media/gray/4tb
gray@NVP0:~$ sudo getfacl /media/gray
[sudo] пароль для gray:
getfacl: Удаление начальных '/' из абсолютных путей
# file: media/gray
# owner: root
# group: root
user::rwx
user:gray:r-x
group::---
mask::r-x
other::---