How to auto mount internal drives on boot?

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
Michael_
Posts: 26
Joined: Tue Dec 10, 2024 8:20 pm

How to auto mount internal drives on boot?

#1 Post by Michael_ »

I have 4 internal drives, 2 m2 ssds and 2 sata hdds that i would like to automatically mount on boot. They are formatted using GPT/NTFS.

I tried with GNOME Disks (which adds a line to /etc/fstab)
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".
Does not work.

I also tried
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.
Also does not work. This actually hides the drives instead of automatically mounting them.

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)

User avatar
Jerry3904
Administrator
Posts: 23224
Joined: Wed Jul 19, 2006 6:13 am

Re: How to auto mount internal drives on boot?

#2 Post by Jerry3904 »

MX Tweak > Other tab
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Michael_
Posts: 26
Joined: Tue Dec 10, 2024 8:20 pm

Re: How to auto mount internal drives on boot?

#3 Post by Michael_ »

Jerry3904 wrote: Sat May 17, 2025 6:40 am MX Tweak > Other tab
Thanks this did it!

Post Reply

Return to “MX Help”