Can it be a BIOS/UEFI setting that disk is hot swappable? I vaguely remember similar issue on Windows. If that's the case, try setting it as not hot swappable in BIOS/UEFI.
Linux
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
I looked and couldn't find any settings for disks being hotswappable, and it hasn't happened on any other distros i've tried on this system, so I don't think this is it.
Set it as ahci in bios and see if that resolves your issue.
This is an NVMe SSD, AHCI is only for SATA.
You are right sorry sped read the topic.
I'm having the same behavior on Mint with an NVMe M.2 drive as well. It feels like an expression of the fact that on linux any drive can be mounted and unmounted at any time as long as it doesn't contain critical system files. It's just that way imho
A hacky way to fix that is to make that device your user home directory. If the device contains your user home or root directory, it won't be removable.
I'm looking through the code now. It looks like it's getting the device list from multiple sources and the fstab source might be losing the race to something else.^[https://invent.kde.org/frameworks/solid/-/tree/master/src/solid/devices/backends?ref_type=heads] fstab devices aren't removable.
You need to create a permanent mount point for it. Then it will be seen as a non-removable drive.
I experienced the same thing when I installed Bazzite.
It does have a permanent mount point, this is the line in /etc/fstab:
UUID=00d6c142-ca89-4f65-93d0-dd74f14236f8 /mounts/00d6c142-ca89-4f65-93d0-dd74f14236f8 ext4 defaults,noatime 0 1
It needs to be pointed to a specific mount point, not just the mounts folder.
For example, /mounts/mountname
After creating the mount point name, setting the permissions correctly, and updating fstab, it should start to show up as a fixed drive.
It is. The disk is mounted at /mounts/00d6c142-ca89-4f65-93d0-dd74f14236f8
OK, the text was wrapping weird on my screen and it didn't look like that was part of the same path.
Have you tried giving it a simpler path?
Why are you mounting to an odd folder path? This seems like how they get mounted temporarily to me. But I'm using another RPM based system they define it differently. Does the uuid names folder exist in /mounts already? Like do you want it in /mounts/certain folder. Maybe if that folder you are specifying is non existant its picking it up as removable drive?
