#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?

  • potentiallynotfelix@lemmy.mlOP
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    To clarify - I only have one thing mounted at the time I run umount -a. Thanks for the helpful individuals who answered my question.

    • NegativeLookBehind@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      8 months ago

      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.