[KDE Plasma] Any way I can make removable media "non removable media"?

Hello!
I hope I can get pointers. I bought a M2 drive where I now mount my /home. It’s connected in an external case via USB3.2.
I now have a cosmetic problem with the drive that it’s still listed as removable media in the taskbar and in Dolphin. Any way I can change that? Or at least hide the option to unmount it there?
I hope I could explain my problem sufficiently enough.

Thanks in advance.

I’m not sure that this can be done directly, but what you could do perhaps is have Udisks ignore the device with a suitable matching udev rule eg
ACTION=="add|change", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="560f8600-b20c-41d4-a720-446655450000", ENV{UDISKS_IGNORE}=1

You could then mount the device using /etcfstab (or systemd.mount unit perhaps), and the device will be seen as a system-mounted storage instead.

More info:
https://wiki.archlinux.org/title/Fstab#Automount_with_systemd

You can then add your own Dolphin ‘Places’ entry with a suitable label as preferred.

Let us know if further clarification needed.

Thanks for the pointers. I think I encountered another problem, which I didn’t think of, in the form of the disk going to sleep. At least that’s my intuition, as after a sleep or sometimes after some time of idle plasma will throw exceptions and problems unable to access files in my home folder. So I rebooted from another terminal every time.

I decided to move /home from the external drive to my games internal ssd. Said games I moved to my hdd temporarily until I can get more ssd storage.

I assume the sleep process is controlled by the controller of the external drive. It’s just too much hassle for me.
But thank you for your input and pointers! I will read up on them as they will probably come handy in the future!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.