Log in stays active after apparent log out

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?

The processes are these:

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                          
   1088 alicia    20   0   20872  12228   9600 S   0.0   0.1   0:01.02 systemd                                          
   1089 alicia    20   0  172844   3904     48 S   0.0   0.0   0:00.00 (sd-pam)                                         
   1098 alicia    20   0  313264  11628   8684 S   0.0   0.1   0:00.16 gnome-keyring-d                                  
   1103 alicia    20   0    9800   5600   4368 S   0.0   0.0   0:01.32 dbus-daemon                                      
   1120 alicia    20   0  317064  13368   7988 S   0.0   0.1   0:00.12 gvfsd                                            
   1220 alicia    20   0  581876  17624  12660 S   0.0   0.1   0:01.23 gvfs-udisks2-vo                                  
   1246 alicia    20   0  229524   5468   4808 S   0.0   0.0   0:00.02 dconf-service                                    
   1374 alicia    20   0  308624   8440   5680 S   0.0   0.1   0:00.05 gvfs-gphoto2-vo                                  
   1379 alicia    20   0  306300   8212   5668 S   0.0   0.1   0:00.03 gvfs-goa-volume                                  
   1384 alicia    20   0  785352  42992  31564 S   0.0   0.3   0:00.20 goa-daemon                                       
   1392 alicia    20   0  385808  10792   7828 S   0.0   0.1   0:00.08 goa-identity-se                                  
   1399 alicia    20   0  386864  12228   7168 S   0.0   0.1   0:00.16 gvfs-afc-volume                                  
   1405 alicia    20   0  306580   7608   4960 S   0.0   0.0   0:00.05 gvfs-mtp-volume                                  
   1410 alicia    20   0  233248   8420   5640 S   0.0   0.1   0:00.69 gvfsd-metadata                                   
   1469 alicia    20   0  383552   9568   5008 S   0.0   0.1   0:00.01 agent                                            
   1497 alicia    20   0  827204  19896  12840 S   0.0   0.1   0:00.27 xdg-desktop-por                                  
   1539 alicia    20   0  305984   6920   4504 S   0.0   0.0   0:00.01 xdg-permission-                                  
   1550 alicia    20   0  380556   8584   5896 S   0.0   0.1   0:00.06 xdg-desktop-por                                  
   1587 alicia     9 -11  106004   7644   6244 S   0.0   0.0   0:00.07 pipewire                                         
   1612 alicia    20   0  391184  12072   8604 S   0.0   0.1   0:00.11 gvfsd-trash                                      
   8323 alicia    20   0  309820   7576   5072 S   0.0   0.0   0:00.00 agent                                            
   9041 alicia    20   0  465412  12292   8948 S   0.0   0.1   0:00.05 gvfsd-network                                    
   9058 alicia    20   0  393620  12284   8908 S   0.0   0.1   0:00.05 gvfsd-dnssd                                      

Hi @Arikania,

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.

brb!

Install it as you would anywhere else, the CLI way:

pamac install e2fsprogs

(AFAIK anyway)

But keep in mind that any and all changes made to the software on the live environment will not persist through a restart.

I’m hoping that I can do it if I chroot my live-usb…

My lsof shows extremely many entries, too large to post here…

Very many are from user “alicia”, but I also found some entries run by “rtkit” and “colord”.

sudo systemctl isolate emergency.target

Then you are root and minimal processes are running.

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.

For those of us who dont want to actually have geoclue, but need to satisfy the dependencies …

One option is geoclue_fake-git in the AUR.

Hey!! Best tip ever!! Gonna re-install it right away! Suppose I need to replace it using chroot on a live-USB?

In my experience it was a simple install (which will remove and replace geoclue) from the running system. It did not seem to require anything special.

Oh … the location is configurable though … at /etc/geoclue_fake.toml

It worked fine. No chroot needed indeed.

Imo, this is the package that should be installed by default though, instead of that geoclue thingie… Things like that should be optional in the first place.

Time to close this thread, I guess…

I dont disagree …
I’ll ping you if there is ever a manjaro-cscs ISO :wink:

plz do!