I currently have my pi booting from a USB drive with only the /boot directory on the card.
My thought was what if I kept all the directories on the SD card also and have something set up in
where if a certain GPIO pin was jumped to ground the OS would boot from the SD card and if the GPIO pin was open then it would boot to the USB drive.
Code: Select all
I'm not sure of the booting sequence to know if this is even something possible so i thought i'd ask! Does anyone have any thoughts on this?
I know I can make a program to check on boot in cron where if it detects a jump it can edit the cmdline.txt file and swap lines then reboot to the SD card but I thought maybe there was a way i could hard code it to save the reboot process.
Thanks, any input is greatly appreciated!