KH

Migrating my Plex server and media

About a 9 minute read

Written by Kyle Hawk on Oct 16, 2026

#life#homelab

Let’s do this!

Diving right in, the first challenge I faced was moving the physical HDD to the new computer. Although, before that step, Copilot advised me to disable hibernation and fast startup. The drive was formatted as NTFS (why? No idea, don’t remember). As such, it advised to disable those settings to prevent any possible compatibility issues with Debian.

It was simple enough. Better safe than sorry, right?

BASH

powercfg /h off

Moving the HDD wasn’t that difficult.. but took more time than I anticipated. You see, I had to fight my past self’s cable management. On top of that, I have a vertically mounted GPU. Why does that matter? Well.. it covers the SATA ports on the motherboard. Lucky me, right?

I almost had to remove the GPU from the home lab PC as well, but was able to wiggle the cable into where it needed to go. It’s the simplest tasks that always get ya.

Identify and pass the disk to the VM

BASH

lsblk -o NAME,SIZE,MODEL,SERIAL,FSTYPE,MOUNTPOINTS
ls -l /dev/disk/by-id/

After identifying the disk, I had to pass it to the VM.

BASH

qm set 100 --scsi1 /dev/disk/by-id/ata-WDC_WD120EAGZ-00CRJB0_WD-B00PGKJD

After starting the VM, I made sure it could see the disk.

BASH

lsblk -f

I was able to see it. At this point, I needed to add NTFS support in Debian and then mount the disk. I initially mounted it as read only, but later changed to read/write after things worked.

BASH

sudo apt install -y ntfs-3g
sudo mount -t ntfs3 -o ro /dev/sdb1 /mnt/media
findmnt /mnt/media

So far, so good. /mnt/media was alive!

Installing Plex and configure mount

I downloaded the Debian package from Plex’s site to my personal computer, and then transferred it over to the home lab PC. After a sudo apt install command to install it - Plex was installed! Done.. right? Goodness, I wish.

I needed to give Plex access to the drive. I’m a Linux noob, alright, but after this whole experience, I realize half the battle is just making sure that things have the correct access to the right places.

BASH

sudo nano /etc/fstab

I added read/write access for the plex user (and media group) to /mnt/media

BASH

UUID=B0C801E6C801AC22 /mnt/media ntfs-3g rw,nofail,uid=plex,gid=media,umask=007 0 0

A quick re-mount and check, and we’re good to go.

BASH

sudo umount /mnt/media
sudo mount -a
findmnt /mnt/media
sudo -u plex find /mnt/media -maxdepth 2 -type f | head

Migrating Plex data and updating paths

Alright. Now I technically have 2 Plex servers running.. nice. I want to port over basically all data that my current one has; that way, all my continue watching, watched, and stuff stays intact. Luckily, that just means I have to copy over the Plex Media Server folder located in my AppData.

Boy was this harder than it should be. The initial plan was to move it over to the /tmp directory on the home lab, and then move it to where it needed to go. Initially, I used scp, so the command was something like the following.

BASH

scp -r "C:\Users\Kyle\AppData\Local\Plex Media Server" kyle@192.168.1.220:/tmp/

It kept timing out.. because there is a shit ton of data in there. Like.. 7 or 8 GB. Okay. So I tried again, this time passing options to increase the timeout. Anddddd it failed for a new reason. Hey, any developer out there is happy to get a NEW error message.. right? This time, it ran out of space.

That’s when I had a TIL moment. Apparently, /tmp has it’s own rules for space. Despite there being plenty of space on the drive, /tmp has a limit of 5 GB. I didn’t know that, but I do now. So.. fuck /tmp, I’ll go straight to where it needs to go.

Oh. Another error. Actually, back to the original. Timeout. Weird. That’s when I asked Copilot about using tar and it was like “Oh yeah, that’s like a great idea why didn’t you do that in the first place”. AI man. It really throws you under the bus for following it’s directions.

So the final command, that actually worked, looked like the following.

BASH

tar -C "C:\Users\Kyle\AppData\Local" -cf - "Plex Media Server" |
  ssh kyle@192.168.1.220 "tar -C /tmp -xf -"

Once it was on the home lab PC, I’m going to be honest.. I just YOLO’d it into the directory, overwriting the new server’s stuff. At that point, I was over it. But hey, it actually worked. Well, sort of.

When I navigated to the home lab IP and port where Plex was running, I was greeted with the setup for Plex. I was initially confused, but then saw my libraries already listed.. so figured fuck it. Looking back, I probably shouldn’t of renamed the server, but I did, and that caused a little bit of headache later.

Regardless. My Plex server was successfully running on my network. I could access it via the IP and port and, more importantly, all of my profiles were preserved.

Clean up and small headaches

Of course.. the next step was remote access.

I was a little alarmed that the app.plex.tv route did not load my server. However, after enabling remote access, it then became available.. with a delay. It was really weird. It would take like 8-10s to load in my local libraries. It also said that remote access was blocked even though I could clearly access it via cellular on my phone. Fun fact, it still says that today even though it’s perfectly accessible by all of my friends and family off network. No idea, bro.

It was at this point that I scanned through my settings and noticed that a lot of what I had didn’t stick, so I spent some time updating those things. They were little things like detecting changes in the library, so new movies and shows would load in. Nothing huge there.

Aside from the weird delay, the biggest headache was having to re-invite everyone that I shared my library with. I mentioned earlier that I regret changing the server name, and I think that was the cause. The re-inviting wasn’t that big of a deal, but explaining to my family that they had to use the new one was.. a process. The old one still appeared, but said unavailable, and the new one was buried in the menu since it wasn’t “favorited”. Then there was the whole my dad forgetting his password.. anyway. It was a bit of a process, but it worked out.

The delay I mentioned actually drove me fucking nuts, and the solution was really fucking stupid. I’m going to write a dedicated article about it, but TLDR is under settings - network there is a Preferred network interface dropdown. It was set to any, and was trying to reach out to a bunch of internal IPs and timing out. Setting it specifically to the home lab PC IP fixed the delay.

Plex is DONE DONE DONE

…Sorry, my kids really like KPOP Demon Hunters.

After all of this, my Plex server is up and running with no data loss. Even though I had to re-invite my friends and family, after they accepted the invite, their history was still there. I guess the server named changed but not the library, so it remembered? I have no fucking clue.

As I mentioned before, the remote access page still says that it’s not available off network. But it’s a filthy liar. It’s working perfectly fine off network and I spent way too long trying to figure out why the page is dumb. Everything is working, and I’m fine if that page is just a dumby dumb dumb stupid head.

That’s the big one out of the way. Next up is the remaining software. My automatic media getting crew of Radarr, Sonarr, and Transmission; as well as some open source apps (Mealie and Planka). All of those were fairly painless, especially thanks to Radarr and Sonarr’s awesome backup / restore from backup options.