Cannot
If you haven't tried to force
Now in case using
Now user
It outputs the pid of the processes using this volume. The extra character at the end of pid will give some extra info. ( c in 2510c)
c - the process is using the file as its current working directory
m - the file is mapped with mmap
o - the process is using it as an open file
r - the file is the root directory of the process
t - the process is accessing the file as a text file
y - this file is the controlling terminal for the process
Kill these processes:
Now umount it:
#umount #NFS #fuser #psmisc
umount
a busy driver.If you haven't tried to force
umount
by -f
try it:umount -f /mnt/your-mounted-drive
Now in case using
-f
it still gives error. Try this:apt-get install psmisc
Now user
fuser
command like below:fuser -c /mnt/your-mounted-drive
/mnt/your-mounted-drive/: 2510c 11086
It outputs the pid of the processes using this volume. The extra character at the end of pid will give some extra info. ( c in 2510c)
c - the process is using the file as its current working directory
m - the file is mapped with mmap
o - the process is using it as an open file
r - the file is the root directory of the process
t - the process is accessing the file as a text file
y - this file is the controlling terminal for the process
Kill these processes:
kill -9 2510 11086
Now umount it:
umount /mnt/your-mounted-drive
#umount #NFS #fuser #psmisc
Tech C**P
Cannot umount a busy driver. If you haven't tried to force umount by -f try it: umount -f /mnt/your-mounted-drive Now in case using -f it still gives error. Try this: apt-get install psmisc Now user fuser command like below: fuser -c /mnt/your…
You can use the below command to do it all:
Where:
- parameter
- while
-
#linux #fuser #umount
fuser -ickv /mnt/your-mounted-drive
Where:
- parameter
k
kills the offending process,- while
v
shows in advance the process and its user-
i
asks you for confirmation.NOTE:
if some process resists, then try again with fuser -ickv -9
#linux #fuser #umount