You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
653 B
28 lines
653 B
2 years ago
|
---
|
||
|
title: Show processes that block umount
|
||
|
summary: >
|
||
|
A quick oneliner to list running processes that prevent a filesystem from
|
||
|
being unmounted. Using `lsof` or `fuser` for this.
|
||
|
date: 2021-10-26T10:06:47+02:00
|
||
|
lastmod: 2021-11-21
|
||
|
categories: [computerstuff]
|
||
2 years ago
|
tags: [linux]
|
||
2 years ago
|
|
||
|
---
|
||
|
|
||
|
Another quick one: I forget this command on a permanent basis, so I write this
|
||
1 year ago
|
down here -- maybe this helps.
|
||
2 years ago
|
|
||
|
~~~console
|
||
|
$ lsof +f -- /media/mountpoint
|
||
|
~~~
|
||
|
|
||
|
#### Update on 2021-11-21
|
||
|
|
||
|
You could also use `fuser`. I prefer this one because somehow I cannot use
|
||
|
autocompletion with lsof and fuser lets me complete the paths.
|
||
|
|
||
|
~~~console
|
||
|
$ fuser -vm /media/mountpoint
|
||
|
~~~
|