Hi, I bought a new SSD to expand my storage. I already have a main SSD of M.2 2280 512GB were Manjaro is installed, a 2TB Hard Drive for files, and a new installed 2TB SSD. Using GParted I created the new partition table and the ext4 partition.
How do I configure this new storage to be usable like the previous two?
and how do I configure the permissions so all programs can access it? This second question comes because some programs like Plex app are not able to see the hard drive, just the 512GB SSD; and others apps but I forgot which ones. Any help is appreciated.
Thanks for the links. I search online and the search box here and those links did not appeared. But I am not able to understand what to do even after looking at those instructions. According to the instructions I shout do:
With all due respect for the other contributors — and not to toot my own horn — I think my own three tutorials higher up will be the easiest to understand and follow up on, even though they are quite a long read.
(Note: If it involves /run/media then it doesn’t come out of any of my tutorials. )
Paths to /run/media/<user> is typical of a path generated by your file manager, from the partition’s UUID, in order to mount removable partitions.
Though if you make your own mount configuration, you can mount (almost) anywhere, with whatever name you want.
What you may need is indeed to give that folder the right permissions, as you pointed out in the second part.
Mounting does not erase data. If you mount a partition to a folder which contains data, the system will show the partition content instead of the original data, but that original data is left untouched.
But I am still as clueless as in the beginning. What should I do to have the new ssd accessible?
a tutorial told me to mount it, but it appears is already mounted? then you wrote that if I mount it to media my data from the hard-drive will not erased but it will not be accessible?
and the tutorial-working-with-additional-drives section 3. SETTING UP A STATIC MOUNTPOINT does not actually tell me how to do it. That tutorial also suggest I should mount it on /srv as is non-removable media. But is the drive not already showing up on /media? Should I change it? and if so How? Please help.
first creating a directory where you want to mount it. If it is for a single-user system with no other user accounts, best is to create a folder in your home directory, e.g. /home/sproid/Data; and then…
adding a record for the partition in /etc/fstab, which mounts the filesystem to the folder suggested here-above at boot time, e.g.
The above presumes that you’ve formatted the partition as ext4, of course.
After completing those two steps, you reboot and it’ll be mounted at /home/sproid/Data.
Anything mounted at /run/media is not persistent, because /run is on a tmpfs, a memory-based filesystem. Therefore it’s pointless to try setting permissions there, because they will not persist across reboots.
How will it be for all users access, not just single-user?
I thought it needed to be on /srv not on /home/sproid/Data . I take it it could be either?
Why is /home/sproid/Data instead of shorter like /home/sproid/ ?
/home/<user> is a user’s personal folder. So if you want the mount to be shared among multiple users, you shall put it outside /home.
Now, if the filesystem contains files that are to be shared among multiple user accounts, then there are two possible other locations where you can set up a mountpoint, i.e.:
a directory under/srv for filesystems on non-removable media; or
a directory under/media for filesystems on removable media.
So on the terminal I shoud do: UUID=ba9ddb22-b1d3-4302-8fcb-03943f48dd34 /srv/sproid ext4 defaults,ssd,noatime 0 0
That should mount and apply the permissions so apps like Nexcloud, Plex, Jellyfish, etc can access it?
This is what I did:
sudo mkdir -p /srv/sproidssd
sudo chmod ugo+rw /srv/sproidssd
sudo cp -v /etc/fstab /etc/fstab.backup
sudo nano /etc/fstab
There I added and saved the line:
UUID=ba9ddb22-b1d3-4302-8fcb-03943f48dd34 /srv/sproidssd ext4 defaults,ssd,noatime 0 0