Last active
February 15, 2018 12:31
-
-
Save brunneis/1005171586f8336ee8b6f3f2fccc7d1b to your computer and use it in GitHub Desktop.
Umount all ancoris devices mounted under $PARENT_MOUNT_PATH path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Umount all loop devices mounted under PARENT_MOUNT_PATH path | |
PARENT_MOUNT_PATH="/mnt/ancoris" | |
# loop devices | |
sudo umount $(df | grep /dev/loop | grep $PARENT_MOUNT_PATH | awk '{print $1}') | |
# tmpfs | |
sudo umount $(df | grep tmpfs_ | grep $PARENT_MOUNT_PATH | awk '{print $1}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment