I've recently started running my favourite three Pi OSes from an external USB hard drive but, at the moment, the only way I can choose which OS to boot is by SSH-ing in to the Pi from my Windows PC using Putty.
The three OSes are mounted as '/dev/sda2', '/dev/sda3', and '/dev/sda4', so to simplify matters, I've created directories on the boot SD card named 'sda2', 'sda3', and 'sda4' containing copies of the original boot files for the relevant OS with appropriate 'root=' modifications.
At present, to change OS, I SSH in with Putty and type...
Code: Select all
cd /boot
sudo rm *.*
cd sda2
sudo cp *.* /boot
sudo rebootCode: Select all
cd /boot
sudo rm *.*
cd sda3
sudo cp *.* /boot
sudo rebootCode: Select all
cd /boot
sudo rm *.*
cd sda4
sudo cp *.* /boot
sudo rebootUnfortunately, I have zero knowledge of BASH scripting, but I was wondering if it's possible to write a simple text-based menu system in BASH that goes on the SD card to allow this to be achieved directly from the Pi, both on initial boot-up, and on exit from each OS.
For example...
Code: Select all
Raspberry Pi Boot Menu
======================
PRESS A KEY...
1/ Raspbmc
2/ Raspbian
3/ RetroPie
======================If someone is prepared to help me with the scripting then I'd be happy to throw together a guide for the Raspberry Pi forum to help others achieve the same thing.