Skip to content

Instantly share code, notes, and snippets.

@brunneis
Last active February 15, 2018 12:31
Show Gist options
  • Save brunneis/1005171586f8336ee8b6f3f2fccc7d1b to your computer and use it in GitHub Desktop.
Save brunneis/1005171586f8336ee8b6f3f2fccc7d1b to your computer and use it in GitHub Desktop.
Umount all ancoris devices mounted under $PARENT_MOUNT_PATH path
# 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