Linux 101 : Mount - devive busy - error message
We have a partition - /dev/sda2 - that we want to mount on the mountpoint - /media/backup - as below, but we get a error message:
The below command tells us which users/processes are using the directory - /media/backup -, which is our mountpoint:
The output means that user1 is inside the directory - /media/backup -
The "c" means current directory, and the number preceding it, is the process ID using our partition.
Another example value is "e" for running.
We could them mount our partition and check if it is mounted, using the below command:
When we are done working with our partition, we could unmount it using the below command: