I have my home directory on a separate disk. I logged out of my user account, and logged into my root account to do a fs check on the home account disk. However, even though I definitely am logged out, the disk could not be unmounted because a range of processes are still running there using my home account credentials.
How do I get Manjaro to stop all processes when I log out? Shouldn’t it be doing that by default?
It should, but maybe it doesn’t unmount it when logging out. I don’t know. But you should be able to run the check from a Live environment, which IMHO is safer, if only because there’s less opportunity for user errors.
You should also be able to see which processes are keeping the disk from being unmounted with the lsof utility.
The problem that I am currently having is that my ATA ports are fried. Whenever I restart my computer, I get loads of ATA errors + emergency mode. Later this week I’ll receive the new parts that I ordered before the weekend. Furthermore, the e2fsck on my live-usb nags that I need a newer version to do a file check on that specific 18 TB disk. How to update the live e2fsck is another thing that I’m looking into still.
I’ll log in on my root account, and return here to post the output of lsof.
Oh! That’s one command that I must keep in mind! Thanks! I’ll put it into a script in my sysop directory.
Meanwhile, I found out that it was some program named agent that kept running, and which pertained to geoclue2. I tried to remove the latter, but it turned out to be a dependency of gtk-desktop-portal. So I simply modified the permissions of its desktop file so, that it can’t start or re-install anymore.