bonzer2u wrote: ↑
Fri Sep 11, 2020 1:51 am
I have a couple large retropie distros (64 and 128gb) and a significantly tweeked twister 1.7 (32gb), all sd cards that I have been swapping in and outa my Pi4-4gb that I would like to consolidate on a just arrived 1 TB usb-ssd.
I would like to install PINN on the ssd and migrate the sd cards to it and understand that these 'custom' os installs likely need to be tar-balled before they can be installed into PINN.
My question is would it be possible to 'clone' the individual sd's, (offline of course in a usb reader) into the PINN installed ssd drive as another option for this situation?
It should be possible with PINN. Although you have a couple of limitations to workaround.
I suggest installing PINN on your SSD, and get it to install fresh copies of each of your OSes from the internet. This will ensure all the correct files and scripts are present. I'm in the process of adding Twister from another contributor, so it's not currently available in PINN. Instead you can just install Raspbian in its place initially.
By default, PINN will allocate the whole of the SSD to these OSes, which might be quite significant on a 1TB drive. If you don't want to do this you could use Matt's webpage to fix the sizes of each OS (http://pinn.mjh.nz
). Maybe add some ProjectSpaces or Data Partition at the end to fill the remaining space and reserve it for future OSes.
Once you have installed the OSes, you need to "clone" your existing OSes onto the appropriate partitions that you have just created.
Do this offline by first mounting the SSD and look in partition 6 "settings" for "installed_os.json which will indicate which OS is in which partition on your SSD. Delete the existing files in each OS partition, then mount your existing SD card in a USB reader and copy the files across to the corresponding partition. Make sure you copy all hidden files etc by using rsync or something and be careful to preserve your existing SD card images by mounting them read-only, for example, to prevent accidents.
Once you have repeated this for all OSes, boot PINN, go to the maintenance/fixup menu option and repair each OS. This should fix up the partition references for you, and then you shouid be good to go.
Disclaimer: I've not tried the above procedure myself, but it should work. It probably needs some dedicated options in PINN to make this simpler. If you have problems with Twister, I'll try and point you to preliminary copies of a PINN version of it to allow it to be installed properly.