lrhorer
Posts: 67
Joined: Sun Feb 22, 2015 6:35 pm

Adding an OS to an existing SSD System

Thu Jun 18, 2020 5:53 am

I have a Newark Raspberry Pi Desktop system with Raspbian already installed on and booting from a 240G SSD. There is no micro-SD card installed at the moment. I would like to add a bootloader like Berryboot to the SSD so I can boot to other OS systems like OSMC. How can I accomplish this, preferably without wiping the existing OS?

fruitoftheloom
Posts: 23903
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 6:05 am

lrhorer wrote:
Thu Jun 18, 2020 5:53 am
I have a Newark Raspberry Pi Desktop system with Raspbian already installed on and booting from a 240G SSD. There is no micro-SD card installed at the moment. I would like to add a bootloader like Berryboot to the SSD so I can boot to other OS systems like OSMC. How can I accomplish this, preferably without wiping the existing OS?

Have you asked the developers of BerryBoot ?

https://www.berryterminal.com/doku.php/berryboot
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
procount
Posts: 2225
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 7:00 am

It's not easy to add an OS switcher and additional OSes to an existing card. In most cases you will need to backup your existing system, install your bootloader of choice, then reinstall your backup with additional OSes.

In the case of Berryboot, you would need to convert your backup to a squashfs format. In the case of PINN, you need to convert it to a tar file format for each partition (See e.g. https://github.com/procount/pinn/wiki/H ... using-PINN)
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

kartable
Posts: 29
Joined: Tue Jun 02, 2020 8:17 am

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 7:01 am

This should be possible with the PiDrive Foundation Edition software available on Github.

User avatar
procount
Posts: 2225
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 7:49 am

PINN includes the functionality of the PiDrive Foundation edition in the form of its ProjectSpaces.
However, this does not avoid the problem the OP faces of having to backup his original OS, install PiDrive/PINN/Berryboot, and then re-install his backup.
But if the requirement is to simply add media center capabilities, then maybe an alternative route is to simply add Kodi (or one of its variants) to the existing Raspbian OS.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

kartable
Posts: 29
Joined: Tue Jun 02, 2020 8:17 am

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 11:27 am

The problem with these PINN Project Spaces as well as with the PiDrive and NOOBs is that all of these solutions will occupy the whole disk. None of them offer the possibility of selecting prepared partitions (with gparted for instance), so that the disk can have additional partitions with data or anything else.

User avatar
procount
Posts: 2225
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 11:48 am

You can use Matt's webpage (http://pinn.mjh.nz) to control the size of each OS, and install a Data Partition to reserve a partition of a specific size, which can then be used for something else, or repartitioned with gparted afterwards as required.
What is not easy is to ADD an OS to a PINN installation after the partitions have been created, unless you use ProjectSpaces to reserve space initially. Not impossible, but it requires manual intervention and knowledge of how it all works.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

kartable
Posts: 29
Joined: Tue Jun 02, 2020 8:17 am

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 2:16 pm

Do you mean that I can prepare a FAT32 16 GB partition anywhere on my 320 Go hard disk?
Selecting 16GB on the Matt's webpage will then allow me to select the OS and the resulting pinn-lite.zip file can target this partition?

User avatar
procount
Posts: 2225
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: Adding an OS to an existing SSD System

Thu Jun 18, 2020 3:53 pm

No, not anywhere, but somewhere.
Why is it important to specify a particular partition?

You should read https://github.com/raspberrypi/noobs/wi ... -explained that explains how the NOOBS partitioning works. The NOOBC v1.5 onwards section is relevant.

I would suggest using Matt's webpage to choose your OSes including a ProjectSpace or DataPartition to reserve some space, adjust the sizes of the partitions as you want, then let PINN manage the partition creation. After that you can use Gparted to adjust the partitions further if necessary, or just repurpose the data partition or project space partitions for whatever you need. Ideally you should leave any free-space (unused projectspaces or datapartitions) at the end of the SD card if you want to do partition alterations so they not alter the partition numbering of the OSes that PINN has installed, but currently it is not possible to force the ordering of the OSes that PINN installs.

Another (untested, but maybe simpler) alternative is to specify a smaller SD card on Matt's webpage than you actually have. That way only half of the SD card will be allocated by PINN and it's OSes and the rest is available for whatever else you want.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

lrhorer
Posts: 67
Joined: Sun Feb 22, 2015 6:35 pm

Re: Adding an OS to an existing SSD System

Sun Jun 21, 2020 8:01 am

fruitoftheloom wrote:
Thu Jun 18, 2020 6:05 am
Have you asked the developers of BerryBoot ?
Yes. So far I have had no response

User avatar
B.Goode
Posts: 10433
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Adding an OS to an existing SSD System

Sun Jun 21, 2020 9:08 am

lrhorer wrote:
Sun Jun 21, 2020 8:01 am
fruitoftheloom wrote:
Thu Jun 18, 2020 6:05 am
Have you asked the developers of BerryBoot ?
Yes. So far I have had no response


In the meantime, you had a prompt and informative reply (2nd reply in the thread) from the developer/maintainer of the alternative PINN. Perhaps there is a hint there about what to do to if you need support...

lrhorer
Posts: 67
Joined: Sun Feb 22, 2015 6:35 pm

Re: Adding an OS to an existing SSD System

Thu Jun 25, 2020 7:37 pm

Which I have not, as yet, had a chance to investigate. My time is limited, and this is not at the top of my priorities. I hope to get back to this some time within the next two weeks.

Return to “Advanced users”