YES!! There is a way to detach a busy device immediately – even if it is busy and cannot be unmounted forcefully. You may cleanup all later:
umount -l /PATH/OF/BUSY-DEVICE umount -f /PATH/OF/BUSY-NFS (NETWORK-FILE-SYSTEM)
NOTE/CAUTION
- These commands can disrupt a running process, cause data loss OR corrupt open files. Programs accessing target DEVICE/NFS files may throw errors OR could not work properly after force unmount.
- Do not execute above
umount
commands when inside mounted path (Folder/Drive/Device) itself. First, you may usepwd
command to validate your current directory path (which should not be the mounted path), then usecd
command to get out of the mounted path – to unmount it later using above commands.
Related Posts:
- How to unmount a busy device
- How do I deal with a filename that starts with the hyphen (-) character?
- Bash: No such file or directory?
- What’s a .sh file?
- How can I symlink a file in Linux? [closed]
- Kill detached screen session [closed]
- How to get the url of the current svn repo?
- performing HTTP requests with cURL (using PROXY)
- How do I grep recursively?
- How to perform grep operation on all files in a directory?
- Amazon Linux: apt-get: command not found
- How to extract C source code from .so file?
- Pass a password to ssh in pure bash
- “sed” command in bash
- gcc: error: unrecognized command line option
- How to exclude a directory in find . command
- How can I find all *.js file in directory recursively in Linux?
- How to set proxy for wget?
- Argument list too long error for rm, cp, mv commands
- How to change permissions for a folder and its subfolders/files in one step
- Difference between using “chmod a+x” and “chmod 755”
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- Docker can’t connect to docker daemon
- Need a good hex editor for Linux
- Python subprocess.Popen “OSError: [Errno 12] Cannot allocate memory”
- How to open some ports on Ubuntu?
- Given two directory trees, how can I find out which files differ by content?
- What does it mean to mount a file system in linux?
- Trying to use bash on Windows and got no installed distributions message
- “Unable to find remote helper for ‘https'” during git clone
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- -bash: fork: Cannot allocate memory
- Is there a “goto” statement in bash?
- Explanation of polkitd Unregistered Authentication Agent
- Bash script: bad interpreter
- tar: Cowardly refusing to create an empty archive
- How can I delete a user in linux when the system says its currently used in a process
- Command to change the default home directory of a user
- Read and write to binary files in C?
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- How to grep and replace
- What does “&” at the end of a linux command mean?
- Can’t remove a directory in Unix
- How to recursively download a folder via FTP on Linux
- C fopen vs open
- httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
- Why does “docker attach” hang?
- Retrieve last 100 lines logs
- What are various options / arguments for “./configure” in Linux
- Does Mac OS X use Linux?
- CronJob not running
- Delete .DS_STORE files in current folder and all subfolders from command line on Mac
- bash sh – command not found
- Hosting multiple WordPress sites on single server – best practices?
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- Can’t upload media to my Raspberry Pi WordPress server
- My WordPress is giving me an 403 error when saving post/draft with specific words
- How can I sort du -h output by size
- What exactly do the colors in htop status bars mean?
- Why is my crontab not working, and how can I troubleshoot it?
- Showing total progress in rsync: is it possible?
- How to bind MySQL server to more than one IP address?
- Why is “chmod -R 777 /” destructive?
- What’s the best way of handling permissions for Apache 2’s user www-data in /var/www?
- How to check if a library is installed?
- Is it normal to get hundreds of break-in attempts per day?
- How to setup passwordless `sudo` on Linux?
- How do I prevent accidental rm -rf /*?
- How do I verify the speed of my NIC?
- What does Virtual memory size in top mean?
- What’s the best way to check if a volume is mounted in a Bash script?
- How do I find the UUID of a filesystem
- Find out symbolic link target via command line
- Meaning of directories on Unix and Unix like systems
- How to handle security updates within Docker containers?
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- Is it possible to make Nginx listen to different ports?
- how do you create an ssh key for another user?
- REJECT vs DROP when using iptables
- Linux command line best practices and tips?
- How to run command as user who has /usr/sbin/nologin as Shell?
- How to get pid of just started process
- How to disable everything in crontab -l?
- df says disk is full, but it is not
- Perform rsync while following sym links
- What is the maximum port number?
- Show all users and their groups/vice versa
- Why is TCP accept() performance so bad under Xen?
- Caching/preloading files on Linux into RAM
- How to sort ps output by process start time?
- What’s wrong with always being root?
- Is there a proper way to clear logs?
- Hundreds of failed ssh logins
- Transfer 15TB of tiny files
- What should I do when I got the KEYEXPIRED error message after an apt-get update?
- protocol version mismatch — is your shell clean?
- How do I join two named pipes into single input stream in linux
- How should an IT department choose a standard Linux distribution?
- Command line program to test DHCP service
- Service start request repeated too quickly, refusing to start limit