Skip to content

Instantly share code, notes, and snippets.

@Fusl
Created February 5, 2018 06:24
Show Gist options
  • Save Fusl/0b12fbaa96015887cc93815005e04ffe to your computer and use it in GitHub Desktop.
Save Fusl/0b12fbaa96015887cc93815005e04ffe to your computer and use it in GitHub Desktop.
recursive umount
findmnt -u -n -r -o TARGET -R /path/to/mountpoint/ | sort -r | tr '\n' '\0' | xargs -0 -r umount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment