How Do I Unmount a Drive in Linux?
Contents How Do I Unmount a Drive in Linux Command Line? to Unmount a Mounted File System, Use the Umount Command. Note That There Is No “N” Between the “U”...
Contents
How do I unmount a drive in Linux command line?
To unmount a mounted file system, use the umount command. Note that there is no “n” between the “u” and the “m”—the command is umount and not “unmount.” You must tell umount which file system you are unmounting. Do so by providing the file system’s mount point.
Must Read
How do I force unmount a drive in Linux?
You can use umount -f -l /mnt/myfolder , and that will fix the problem.
- -f – Force unmount (in case of an unreachable NFS system). (Requires kernel 2.1. …
- -l – Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore.