I have problems understanding the following.
In /etc/fstab I've mounted an external storage volume with:
//xyz.backup.com/backup /home/me/external_backup_volume cifs user=xyz,password=xyz,users 0 0
Daily I'm syncing files from a local folder to the mount point:
rsync --progress -arnz /backup /home/me/external_backup_volume
When I unmount /home/me/external_backup_volume
I still see subdirectory and folders. Are the files still available even when the backup storage is unmounted? From ls -al
it looks like but If I check df with the drive mounted and not the local disc usage of /dev/md2
does not change:
me@Ubuntu-1804-bionic-64-minimal:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.1M 3.2G 1% /run
/dev/md2 436G 105G 310G 26% /
tmpfs 16G 8.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 488M 204M 259M 45% /boot
tmpfs 3.2G 0 3.2G 0% /run/user/1000
//xyz.backup.com/backup 100G 46G 55G 46% /home/me/external_backup_volume
me@Ubuntu-1804-bionic-64-minimal:~$ umount /home/me/external_backup_volume
me@Ubuntu-1804-bionic-64-minimal:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.1M 3.2G 1% /run
/dev/md2 436G 105G 310G 26% /
tmpfs 16G 8.0K 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/md1 488M 204M 259M 45% /boot
tmpfs 3.2G 0 3.2G 0% /run/user/1000
So why do I still see the files when the drive is unmounted?
$ df -P /home/me/external_backup_volume | tail -1 | cut -d' ' -f 1
. When mounted it's stored at//xyz.backup.com/backup
when unmounted to/dev/md2
– t Book Jul 13 '19 at 21:01