I have a system with 2 drives, an SSD (250gb) & an HDD (1tb).
latest updates for Manjaro Gnome as of 01/06/2022, with 2 users of which 1 is admin.
The HDD used to be lucks-encrypted, but I formatted it & labelled it ‘Archive’ with Ext4 partitioning through Gparted.
I expected to just click on the drive & use it, but everything I am mounting it, I am asked for the password, as well as when I am copying files onto it.
I have tried to look at permissions & how it works, but I find it very difficult to understand.
Is there a command or simpler way (like a button to tick on a menu) to make the Archive HDD drive accessible by both users, without either of them needing a password to access, read, write & run it?
Edit:
Another part of the answer was written by @winnie, which I copied below.
The file /etc/fstab has entries for what should be mounted at boot (or when invoked). Each entry is six columns.
The device
The mount path (where to mount it)
The filesystem type
The options
If to “dump” (leave it at 0, it’s an obsolete relic)
If/priority to fun a fsck upon boot (for this HDD, leave it at 0)
This means mount the block device UUID=123456789 to the path /mnt/data, which is an ext4 filesystem, use the options defaults and noatime, ignore dump, and finally don’t fsck upon boot.
Now when you start your computer, it will be mounted to /mnt/data, which you can access manually, or create a bookmark/shortcut/places entry to quickly navigate to.
No it doesn’t ask for a password when I plug in a regular USB, which I guess is what confused me the most.
I can re-format the drive if this would help, but I’ve already done so & the issue is still the same, so I thought I may have done (or am doing) something wrong. Would it help to, and if so, is there a way I can change ownership?
My only issue now is that it still asks for the admin password when mounting the partition. is there a way to mount it automatically without me having to insert the password?
I’m not sure if this is relevant, but I set it so that the system boots automatically into the 2nd user (without admin privileges) when the system starts. Could this be why it does not auto-mount?
This means mount the block device UUID=123456789 to the path /mnt/data, which is an ext4 filesystem, use the options defaults and noatime, ignore dump, and finally don’t fsck upon boot.
Now when you start your computer, it will be mounted to /mnt/data, which you can access manually, or create a bookmark/shortcut/places entry to quickly navigate to.
At the time of the installation I just ticked whether I wanted to have the system encrypted or not I am very much a noob, though I try to get to learn things, I am by no means proficient enough to have a clue about the details of what I am doing and their detailed impact on my system .
I had installed Solus as the OS on that Drive in the past, with time I moved to Manjaro & now I realised I have an old PC which would not be completely unusable had it at least had an SSD; the SSD side is fine, but the HDD was more difficult to access than I am used to, (again, being very much a noob with little time on my hands, it’s a struggle )
That’s pretty much the whole story : )
Unfortunately I yet again ran out of time, but I will try to do what you suggested as soon as I can!
Thank you for your help, also thanks to @megavolt for the follow-up, I’ll look into that too : )
P.S., only now I’ve seen the comment @megavolt made before;
My initial thought was to make the computer have 2 accounts, one for my parents & one for me. To avoid them risking messing anything up, I thought that if I am the only user with Admin privileges, there’s nothing they can really mess up, but thinking about it again, there’s no way they’d do anything so badly as to mess up the system, so I guess this wasn’t really necessary.
You’re right, I will give the other account Admin privileges too : )
Right. Since it auto-logins, the user password will only be needed for root actions. So keep the password for yourself and let your parents use it without a password.
Thank you both @winnie & @megavolt for your help; I’m unsure how to set 2 replies as the solution, so I will edit the initial post mentioning fstab was also part of the solution, & set the picture with “Take Ownership” as the 2nd part.
I will also look into what appending does, but for now I believe that giving ownership of the drive to the 2nd account should work just fine.
I will now do the fstab magic so the drive auto-mounts: thank you so much for the really clear explanation!