Some drives starts unmounted

I am a newbie to Linux so I am sorry if I mismatch some terminology

So when I am booting my Manjaro, my HDD and SSD partitions starts unmounted - in Dolphin they show that orange disconnected icon - and for them to start working I need to click on them in Dolphin but when Steam auto launches it forgets the library folders that I set on them because it can’t see it so I need to set it manually each time I turn on my computer.

Is there a way to fix it? HDD shares some space with Windows but SSD is almost empty

Yes there is a way. You will need to edit the /etc/fstab file and add these partitions to it so they will get automounted on startup.
https://wiki.archlinux.org/index.php/Fstab

If you need more help feel free to ask.

I am not sure if I did is right so, after I typed lsblk -f I saw my SDD and it looked like this:

└─sda1 ext4 1.0 SSD ced2c079-718c-49cb-866a-1e75f5e40b23 221,7G 0% /run/media/rafii/SSD

and my HDD partition:

└─sdb3 ext4 1.0 HDD f019ac4d-66bb-4315-81ae-76dfe568f853 2T 4% /run/media/rafii/HDD

so if I understood it I need to add something like this to /etc/fstab:

UUID=ced2c079-718c-49cb-866a-1e75f5e40b23 /run/media/rafii/SSD ext4
UUID=f019ac4d-66bb-4315-81ae-76dfe568f853 /run/media/rafii/HDD ext4

Is this correct?

That seems ok … but you are missing the last sections… specifically
Options, dump, fsck.

So to add those in a simple way to your lines it would look like this:

UUID=ced2c079-718c-49cb-866a-1e75f5e40b23 /run/media/rafii/SSD ext4 defaults,noatime 0 2 
UUID=f019ac4d-66bb-4315-81ae-76dfe568f853 /run/media/rafii/HDD ext4 defaults,noatime 0 2

But please take the time to decide what options you actually want.

Please don’t forget the options, dump and fsck values
This would be the complete lines.

UUID=ced2c079-718c-49cb-866a-1e75f5e40b23 /run/media/rafii/SSD ext4   defaults,noatime   0      2
UUID=f019ac4d-66bb-4315-81ae-76dfe568f853 /run/media/rafii/HDD ext4   defaults,noatime   0      2

Oh didn’t fully understand what those options dump and fsck means. Do they mean much?
I will be using those drives for mainly storing games and graphic projects

The explanation of those are linked in the archwiki entry i linked earlier. For completeness sake i will link them here aswell.
What is the dump value

`<fsck>` sets the order for filesystem checks at boot time;
 see [fsck(8)](https://jlk.fjfi.cvut.cz/arch/manpages/man/fsck.8).
 For the root device it should be `1` .
 For other partitions it should be `2` , or `0` to disable checking.

What do all the mount options do?
You can find an explanation for the noatime option and what it does in the fstab wiki article.

OK, so I added it and restarted PC and HDD works perfectly but SSD seems to be write only…
I checked permisions:

drwxrwxrwx 5 root root 4096 08-23 19:38 HDD
drwxr-xr-x 3 root root 4096 08-24 01:37 SSD

Do I have to change permissions for SSD? Or do something else?

Yes, you will have to run a chown command once over them to claim ownership. The syntax for chown works like this:
chown -R user:group direcory_to_be_changed
The -R options says to do it recursively for all folders and files aswell.
In this example with your user and group likely be named rafii the command would be:
chown -R rafii:rafii /run/media/rafii/SSD

Thanks for help, everything looks to be working now! I really appreciate it! :grinning:

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