#Is it bad practice to run umount -a instead of specifying the directory to unmount? I’ve always run umount -a to unmount my drive but i notice it unmounts a lot of other things. Is this bad?
#Is it bad practice to run umount -a instead of specifying the directory to unmount? I’ve always run umount -a to unmount my drive but i notice it unmounts a lot of other things. Is this bad?
To clarify - I only have one thing mounted at the time I run umount -a. Thanks for the helpful individuals who answered my question.
Using the -a option will unmount everything in /etc/mtab. You should usually be specific about what you’re unmounting. Check the umount man page for details about its options.