Updating Ubuntu hardware from i3-7100 to i5-10400 -- move drive, or reinstall OS & Plex?

My i3-7100 box is dying and I will be replacing it with a new board and i5-10400 CPU.

I don’t know much about Linux kernel level stuff though, and so I don’t know if I need to reinstall the OS. Or, can I just move the OS drive to the new system and Ubuntu will figure out the hardware changes?

For Plex, I will be using Quick Sync transcoding and I think that different Intel libraries are needed per this post from @chuckpa. Assuming that I can move the drive without reinstalling the OS, is installing the new Intel software sufficient to re-enable Quick Sync support in Plex?

@BanzaiInstitute

With Linux, all the drivers you’ll need are already present.

You can move the drive to the new system and power-up

BEFORE you do this, I do caution:

  1. Edit /etc/fstab
    – Comment out any other HDD mounts
    – Comment out any network share mounts

  2. After booting,
    – Check the network config as the device name will likely change. Tweak as appropriate.
    – Let apt have a chance to double check for updates – just in case other software you have is processor dependent.

  3. Reboot it

  4. With it now running as you expect less any other mounts
    – Edit /etc/fstab again
    – Start bringing the other mounts up

When you’ve walked through that, you should be ready to reboot it one last time and come up fully operational.

1 Like

Thanks @ChuckPa, I knew you’d steer me right!

Well this is disappointing, the new system will not recognize the old boot drive as bootable.

I am sure this is some kind of Secure Boot issue.

The drive should be GPT… it was dedicated to Ubuntu, not dual boot, and I would have chosen GPT if offered in the Ubuntu installer… but no matter how I fiddle with the Secure Boot/UEFI settings the board won’t see it as bootable.

I also found that on my board, for some reason you cannot use the CSM settings if you use the iGPU (thanks Intel!). Maybe that is what is doing me in, maybe I misremembered and relied on CSM on the previous system.

Fortunately I have another SSD so I can just try installing Ubuntu again and go from there without losing any files, just time. Perhaps this will be my opportunity to try restoring a PMS database backup.

@ChuckPa LMK if you have any ideas.

@BanzaiInstitute

Secure Boot needs to be off. :white_check_mark:

Now, If the CSM is giving you grief, it might be better to start the OS disk over

I recommend:

  1. Boot from a live USB and “Try” mode (you get the command line where you need)
  2. Make a tar file of your Plex install –
sudo bash

# Make the mounts
mount /dev/sdXx /mnt   # (your main hdd)
mkdir /mnt2
mount /dev/sdYy /mnt2

#
# Now we save PMS
cd /mnt/var/lib/plexmediaserver
tar cf /mnt2/Plex-Library.tar ./Library

# This is a good time to copy over anything else you want to save



#
# When done,  Unmount
#
cd /
umount /mnt /mnt2

#
# shutdown and get ready to install the main HDD again
init 0

Now you can install on that non-bootable HDD and get it the way you want,

Restoring:

You can also copy over files from the SSD which is holding all your other data

sudo bash

# Get Plex installed  (apt install    or dpkg   file.deb)

# With Plex installed
systemctl stop plexmediaserver
cd /var/lib/plexmediaserver

# Clear out what the installation created -- not using it
mv  Library Library.junk
rm -rf Library.junk &

# Restore what was saved
tar xf  /path/to/SSD/Plex-Library.tar

# Change ownership to match the UID/GID on this system
chown -R plex:plex ./Library

Do anything else you need then adjust for maximum :fire:

:smiling_imp:

sudo systemctl start plexmediaserver

1 Like

@ChuckPa delivers again!

I fought with it a while longer but it did seem to be an insurmountable CSM issue. So, I unplugged the old PMS volume and installed 20.04 on another SSD. Perhaps this will prove to be a mistake but I did turn on UEFI and let Ubuntu install itself in Secure Boot mode, including creating a Secure Boot password. If I ever wanted to play with proprietary drivers it seems like that was necessary anyway.

Thanks a million for the Plex brain transplant instructions, that all makes sense. I just won’t need the live USB boot step since I went ahead and made a new permanent Ubuntu install on another SSD. Once I get the basics like openssh server going, I can recover the Plex library from the old volume.

(This is an ongoing PITA but it was also a day where a well stocked PC parts stash paid off again! Not only did I benefit from a spare SSD, but the motherboard I bought was the wrong size… I mixed up my Mini and Micro ATX, so I got a board too big for my case, ugh. Fortunately my stash included an unused Mini ATX case. Don’t call it “hoarding,” it’s “being prepared!”)

Hey, one more dumb question @ChuckPa … When I install Plex will it automagically fetch the Intel Compute Runtime stuff needed for Quick Sync transcoding on my 10th gen CPU? Or do I need to hit the Intel github and install that stuff manually?

It will install what it can but ICR is a Github project.

I do print out the links for you to go get it.

At this moment in time, you want 21.49 .

Engineering is working on resolving the issues which occur with any version higher than 21.49

1 Like

Ah, I see the hints after the installer runs. For a future searcher here is a link to 21.49.

This explains why the installer asks for intel-igc-opencl but it isn’t actually present in the latest releases, I guess.

I actually don’t have enough disk space to tar up the original, not without sending it to a network volume. (I guess those video thumbnails DO take a lot of space!)

Since both old and new filesystems are mounted at once I am doing a cp -r to move the Library directory to the new install. But… Do I need to do a cp -a or some other method which will preserve all attributes? Hmm, no, tar cf doesn’t do anything fancy I think. Well, we shall soon see…

Yep, I think all is well! Well, I gotta double check the Intel support stuff, but Plex is up and it looks just like it used to, great!

I did not intend for you to be my personal Linux tutor today @ChuckPa , thanks again for the help.

EDIT: Tautulli verifies hardware transcoding is working. Sweet. All done!

@BanzaiInstitute

Here’s a little trick for you.

See where I have you extract?

Assume: /mnt/var/lib/plexmediaserver = where you’re copying from

Here is the elegant way.

sudo bash

cd /mnt2/var/lib/plexmediaserver
tar cf - ./Library |  ( cd /var/lib/plexmediaserver ; tar xf - )

chown -R plex:plex /var/lib/plexmediaserver

This works because the first tar reads it and packs it all up into a single stream which is sent over the pipe to the next process.

That next process, which is a sub-shell thanks to the ( ),
changes directory to the destination – THEN – it extracts what comes in from the pipe

Yep, that makes sense! There’s always another cool trick to learn in unix.

I found a good discussion of why you might tar|tar vs cp -r here, this was new to me. I didn’t realize cp could be slower in some cases!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.