Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

Auto mount with odd issue

$
0
0
Hello,

I'd posted: https://ubuntuforums.org/showthread.php?t=2459425. and it appeared to have fixed my problem. Meaning they NAS shares mounted as I cd'd to them or one of my applications needed them. And...that part does work.

The problem is for some reason now I can't write to them but it's' not a permissions issue. See below:

Code:

rjacot@ubuntu:~$ df -h
Filesystem              Size  Used Avail Use% Mounted on
udev                    1.9G    0  1.9G  0% /dev
tmpfs                    394M  1.4M  393M  1% /run
/dev/vda5                245G  33G  200G  15% /
tmpfs                    2.0G  8.0K  2.0G  1% /dev/shm
tmpfs                    5.0M    0  5.0M  0% /run/lock
tmpfs                    2.0G    0  2.0G  0% /sys/fs/cgroup
/dev/loop2                56M  56M    0 100% /snap/core18/1944
/dev/loop3              256M  256M    0 100% /snap/gnome-3-34-1804/36
/dev/loop4              219M  219M    0 100% /snap/gnome-3-34-1804/66
/dev/loop0                99M  99M    0 100% /snap/core/10823
/dev/loop1              100M  100M    0 100% /snap/core/10859
/dev/loop9              9.2M  9.2M    0 100% /snap/canonical-livepatch/95
/dev/loop10              50M  50M    0 100% /snap/snap-store/467
/dev/loop7                63M  63M    0 100% /snap/gtk-common-themes/1506
/dev/loop6                32M  32M    0 100% /snap/snapd/11036
/dev/loop5                56M  56M    0 100% /snap/core18/1988
/dev/loop8                65M  65M    0 100% /snap/gtk-common-themes/1514
/dev/loop11              52M  52M    0 100% /snap/snap-store/518
/dev/loop12              33M  33M    0 100% /snap/snapd/11107
/dev/vda1                511M  4.0K  511M  1% /boot/efi
//192.168.1.6/Torrents  466G  101G  366G  22% /mnt/Torrents
//192.168.1.6/Downloads  466G  101G  366G  22% /mnt/Downloads
//192.168.1.11/Misc      45T  18T  28T  40% /mnt/Misc
//192.168.1.11/Music      45T  18T  28T  40% /mnt/Music
//192.168.1.11/Media      45T  18T  28T  40% /mnt/Media
//192.168.1.11/Backups    45T  18T  28T  40% /mnt/Backups
//192.168.1.11/Download  45T  18T  28T  40% /mnt/Download
tmpfs                    394M  24K  394M  1% /run/user/1000
/dev/sr0                2.6G  2.6G    0 100% /media/rjacot/Ubuntu 20.04.1 LTS amd64

I can see them:

Code:

rjacot@ubuntu:~$ ls -al /mnt/Media/
total 40
drwxr-xr-x 2 rjacot root    0 Mar 21 08:10  .
drwxrwxrwx 9 root  root  4096 Feb 19 08:07  ..
drwxr-xr-x 2 rjacot root    0 Mar 13 18:58  4k
drwxr-xr-x 2 rjacot root    0 Jul 28  2020  Download
-rwxr-xr-x 1 rjacot root 24580 Mar 21 07:56  .DS_Store
drwxr-xr-x 2 rjacot root    0 Mar  7 19:15  Kids
drwxr-xr-x 2 rjacot root    0 Mar 20 08:55  Movies
-rwxr-xr-x 1 rjacot root    0 Mar 21 08:10  rj.delete.this
drwxr-xr-x 2 rjacot root    0 Mar 20 01:29  TV
drwxr-xr-x 2 rjacot root    0 Dec 24 09:13  Videos

rjacot@ubuntu:~$ ls -al /mnt/Media/Movies/
total 72400796
drwxr-xr-x 2 rjacot root          0 Mar 20 08:55  .
drwxr-xr-x 2 rjacot root          0 Mar 21 08:10  ..drwxr-xr-x 2 rjacot root          0 Jan 17  2020  1917.2019.DVDSCR.x264-TOPKEK
.....  lots more in here

But I get this error when I try to write something:

Code:

rjacot@ubuntu:~$ touch /mnt/Media/Movies/rj.delete.this
touch: cannot touch '/mnt/Media/Movies/rj.delete.this': No such file or directory
rjacot@ubuntu:~$

As you can see above it let me touch the /mnt/Media/rj.delete.this. I just can't do it in the subdirs.

Here's my stab:

Code:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
# / was on /dev/vda5 during installation
UUID=09db9129-f5b3-4726-97cc-19a0d3d2b5e9 /              ext4    errors=remount-ro 0      1
# /boot/efi was on /dev/vda1 during installation
UUID=93A5-BB65  /boot/efi      vfat    umask=0077      0      1
/swapfile                                none            swap    sw              0      0
//192.168.1.11/Media /mnt/Media cifs credentials=/home/rjacot/.smbcredentials1,uid=rjacot,noauto,x-systemd.automount 0 0
//192.168.1.11/Misc /mnt/Misc cifs credentials=/home/rjacot/.smbcredentials2,uid=rjacot,noauto,x-systemd.automount 0 0
//192.168.1.11/Download /mnt/Download cifs credentials=/home/rjacot/.smbcredentials3,uid=rjacot,noauto,x-systemd.automount 0 0
//192.168.1.11/Backups /mnt/Backups cifs credentials=/home/rjacot/.smbcredentials4,uid=rjacot,noauto,x-systemd.automount 0 0
//192.168.1.11/Music /mnt/Music cifs credentials=/home/rjacot/.smbcredentials5,uid=rjacot,noauto,x-systemd.automount 0 0
//192.168.1.6/Downloads /mnt/Downloads cifs credentials=/home/rjacot/.smbcredentials6,uid=rjacot,noauto,x-systemd.automount 0 0
//192.168.1.6/Torrents /mnt/Torrents cifs credentials=/home/rjacot/.smbcredentials7,uid=rjacot,noauto,x-systemd.automount 0 0

(yes I realize now I can/could have used the same .smbcredentials file for all of the mounts. I just didn't know that when I was doing it and then it was working, so I left it.)

This happens with the other shares also. I'm just using Movies as a sample.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>