I have recently had difficulty in closing down a 1TByte external (USB connected) hard drive,
as attempts to safely remove it result in an error message claiming that 'one or more files on this device are open within an application'. A test with lsof when the only thing done on the Device Notifier was to click 'Open with File Manager' gave the following result.
[root@localhost peter_h]# lsof | grep Volume
nepomukse 3598 peter_h 18r DIR 8,97 86016 5 /media/Volume
nepomukse 3598 peter_h 19r DIR 8,97 4096 36376 /media/Volume/disk_5-2
nepomukse 3598 peter_h 20r DIR 8,97 4096 36379 /media/Volume/disk_5-2/usr
nepomukse 3598 peter_h 22r DIR 8,97 32768 36536 /media/Volume/disk_5-2/usr/share
nepomukse 3598 peter_h 23r DIR 8,97 4096 36946 /media/Volume/disk_5-2/usr/share/misc
QThread 3598 3604 peter_h 18r DIR 8,97 86016 5 /media/Volume
QThread 3598 3604 peter_h 19r DIR 8,97 4096 36376 /media/Volume/disk_5-2
QThread 3598 3604 peter_h 20r DIR 8,97 4096 36379 /media/Volume/disk_5-2/usr
QThread 3598 3604 peter_h 22r DIR 8,97 32768 36536 /media/Volume/disk_5-2/usr/share
QThread 3598 3604 peter_h 23r DIR 8,97 4096 36946 /media/Volume/disk_5-2/usr/share/misc
umount /media/Volume as root simply tells me 'device is busy' - and suggests I use lsof to get further info!
The directory Volume/disk_5-2, which the system seems to think is in use, contains a set of PCLOS system directories rescued from an old internal disk drive.
Are the actions of nepomukse and/or QThread necessary, and if so, how can I ever get round this problem. If not, then how do I keep them away from the external drive directories?
My present expedient to get out of this fix is to close down with Alt-PrtScrn-SUB, but it's not ideal.