Unmount volume, and dependent mounts
Matthew Barrera
I explain:
Currently I have:
A volume mounted to a directory, /mountDirectory And I also have a local directory that has a mount bind to a directory on the volume: /localDirectory mount bind /mountDirectory/directory2 this way from /localDirectory I can see the content as if it were /mountDirectory/directory2
I want to umount the volume, so that /localDirectory is also umounted.
It's possible?
Currently if I do umount /dev/volume, doing lsblk shows me the volume mounted in /localDirectory.
21 Answer
try with sudo umount /mountDirectory/directory2 and then sudo umount /mountDirectory