These are all 1-time commands.
Run this:
Code:
sudo mkdir /media/DATA
Then add this line to the bottom of your /etc/fstab (use sudoedit /etc/fstab as the command)
Code:
UUID=2e8a4205-058b-44bc-810a-910260e478f3 /media/DATA ext4 defaults 0 2
If you are interested in some more secure options, ask. I seldom use "defaults" when I mount storage. I tend to use nodev,nofail,noatime,errors=remount-ro for base options of data-only areas.
Now run these commands to mount the storage:
Code:
sudo systemctl daemon-reload
sudo mount -a
The storage should be mounted in /media/DATA now. Check this with
Only "home" should be there, if what you've said already is true. If you see more stuff there, stop.
Take ownership of the HOME under that location AND set reasonable permissions:
Code:
sudo chown -R wcalvert:wcalvert /media/DATA
chmod -R ug+w,o-w /media/DATA
Those 2 commands may not be necessary if the uid/gid currently used AND used before on the other storage match. Allso, that chmod command might break some picky security-related things, like ssh, so if you use/used ssh previously, you may not want to run the chmod at all. See if not having that works for your needs for a few days. I think the chown command should be safe and may actually fix a few things. There's a risk in trying to be complete, but not seeing what the truth is.
Don't worry about the extra spaces, 1 is enough between the different parts of those command. I was just trying to be VERY obvious.
And lastly, to create the symlink in your current HOME directory, run
Code:
ln -s /media/DATA/home/wcalvert ~/data
I've made assumptions about your username and groupname. All but the last command use sudo. After running the last command you should be able to use ~/data whenever you want to open any file or save any file and it will end up on sda5, which we mounted under /media/DATA.
Since this is your machine, you can mount it almost anywhere, but the command above will need to be tweaked for any changes. I tried to be consistent.
And you can look up what every command does and what that fstab line does. Please do.
Hopefully, others will see any problems here and provide corrections.