I tried with GNOME Disks (which adds a line to /etc/fstab)
Does not work.Install GNOME Disks using: sudo apt install gnome-disk-utility
Open GNOME Disks and select the drive (on the left side).
Select the partition (on the right side).
Click on the icon "Additional Partitioning Settings".
Click on "Edit Mount Options..."
Uncheck "User Session Defaults" if necessary.
Check "Mount at system startup".
Check "Show in user interface".
Click "OK".
I also tried
Also does not work. This actually hides the drives instead of automatically mounting them.Step 1:
######
Open Terminal and execute: lsblk
Write down the name of the drive, example: sda
Ignore "sda1", "sda2", "sda3" etc.
Step 2:
#######
Open terminal and execute the following:
Make sure to replace "sdX" with your drive.
-------------------------------------------
udevadm info --query=all --name=/dev/sdX | grep ID_SERIAL
Then:
-----
Write down the Drive ID.
Step 3:
#######
Create a new file "70-mycustomdrive.rules" in "/etc/udev/rules.d"
I did it using File Manager Nemo as root (Open Nemo then right click open as root) but you can do it in the terminal using nano etc. too.
The filename needs use this pattern: number-filename.rules OR number-file-name.rules OR 70-file_name.rules
The rule number (70 in this case) is important because it determines the order in which the rules are processed.
Step 4:
#######
Open the newly created "70-mycustomdrive.rules" in "/etc/udev/rules.d" and add the following content:
Make sure to replace "Samsung_SSD_850_EVO_1TB_S2RFNXAH301123H" with the actual ID of your Drive.
------------------------------------------------------------------------------------------------
ENV{ID_SERIAL}=="Samsung_SSD_850_EVO_1TB_S2RFNXAH301123H", ENV{UDISKS_IGNORE}="1"
Note: I edited this file by opening it from a root instance of nemo file manager with kate.
The second version did work in Q4OS Plasma on my old computer which is also based on debian.
The first method i believe works on Linux Mint Cinnamon which is based on ubuntu.
So how can i automatically mount my internal drives in MX Linux KDE so i do not have to do it manually? (Which is very annoying especially entering my password everytime)