I want to store family photos, and I have a server already, so I think it's about time to beef up this server and give it a huge amount of storage so that I don't have to worry about the storage ever filling up or me having to expand it in the future. So, during this Black Friday, I decided to pick up a 5 terabyte Seagate drive for about $50, and this should be able to store all of our photos for a long time from my entire family. This also gives me an excuse to migrate off of Google Photos and use something open source.
Alright now that we got the drive installed lets go ahead and stop all the running containers so I can go ahead and move the data over!
oops! let's actually make sure that the drive exists lol. 4.5 TB of usable storage is super juicy!
I used to just store all my data on a USB drive, not only is that a waste of a USB drive, but I have to look at it dangling out of the computer, and it makes future transport of this powerhouse really difficult. So during this Black Friday I splurged on a 5TB hard drive from Seagate, and It's now time to set this guy up!
Make the drive GPT
Apparently MBR can't go past 2TB which is a big nono for me as that would be a waste of space so lets run GNU Parted and change that.
Alright that was painless!
Create a partition
To me, partitions are terrifying; one wrong move and you could wipe out your entire computer and operating system without a single trace left behind. It is technically still possible to retrieve sensitive data like images and files, but I wouldn't count on it. It's better to be very careful when messing around with partitions. If you follow what I'm doing, make 100% sure that you are editing the correct drive. Heck, even unplug all extra drives to reduce the chances of goofing up. Otherwise, you may be in for a rude awakening.
Now though we have LIFE!
Drive Mounting
Now I just gotta mount this drive to my system, and it should be good to go. I am using this as a replacement to my USB drive, so I'm going to remount my USB drive as usb2 then mount my main drive as usb1 and cp all the files over that way I don't have to change anything in docker.
Step 1 is to use this command to get the UUID of your drives
Then the next step is realizing that you didn't put a filesystem on the drive so you run
to add a filesystem to it. Good ol ext4...
then you should see
So my drive is here now!
Lets mount the drive!
It would be stupid to have to remount every single time the system reboots so let's make use of editing the fstab file
You should see something like this
These are the lines we care about. so pretty much just follow the format
So I took the 🐶 drive and moved that from usb1 -> usb2 and added a new entry for the ✨ to mount to that usb1 spot. Save and exit, and reboot the system and the drives should be mounted to the correct place!
Almost there!
After reboot all thats left is to move the files over with something called rsync
And Done! all my stuff is back online and I am good to go with internal storage. Now its time to setup Immich.