[mythtv-users] MythTV BackEnd system HDD to smaller SSD Ubuntu

Jerry mythtv at hambone.e4ward.com
Thu Dec 24 14:59:56 UTC 2015


On Thu, Dec 24, 2015 at 8:22 AM, Hika van den Hoven <hikavdh at gmail.com>
wrote:

> Hoi Mike,
>
> Thursday, December 24, 2015, 1:59:23 PM, you wrote:
>
> > On 12/23/2015 07:23 PM, Mike's JdJ wrote:
> >>
> >> Goal:  replace existing BackEnd 976 GB system drive with
> >> 240 GB SSD.
> >>
>
> > Wow, thank you Jerry, Hika, Tom, and Simon.
>
> > Excellent solutions.  I will think about which is safest for my
> > skill level.
>
> > Mike
>
> It is in essence how you install Gentoo! But I forgot one important
> part on chrooting. You also have to remount proc, dev and sys into the
> new system. This is the script I use for chrooting:
>
> #!/bin/bash
> declare mntPath=$1
> echo $mntPath
>
> if [ "$mntPath" == "" ]; then
>         exit
> fi
>
> mount -t proc none $mntPath/proc
> mount --rbind /sys $mntPath/sys
> mount --rbind /dev $mntPath/dev
>
> chroot $mntPath/ /bin/bash
>
> You call the script with the mount path as parameter and of cause with
> root rights.
>

Yes, the chroot part is very brief on the guide I linked to.  I did that
part nearly the same way as Hika did.  I also did (after the chroot)

grub2-mkconfig -o /boot/grub2/grub.cfg

It will update the grub config with the new UUIDs from the new partitions
on the SSD disk you have installed.  I am not sure if that is necessary,
but it doesn't hurt, either.

I am running Fedora.  I believe the command is slightly different in other
flavors of Linux.

Upgrading disks is a regular thing.  When you decide on a solution,
document it / take notes for yourself so the next time is easier.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20151224/059e2a52/attachment.html>


More information about the mythtv-users mailing list