1

So, this link shows wonderfully how to root into a USB: Boot from external USB stick / drive?

What I want to do, though, is root from the SD card by default, and then the first available USB if one is inserted.

In the end I would like to have a set up where my pi boots into command line from the SD root if nothing else is there, and it does not ever mistake one of my storage drives for a root source one.

I'm kind of going for a classic cartridge console sort of feel, but I also want it to be standalone because otherwise it's useless without the proper USB stick.

Can you change which root the boot process looks for on run time using conditional statements? What is the "hello world" of boot without root coding?

EDIT: Ideally I would like to be able to choose from a set of cmdline.txt presets based off what exists in the USB slots.

2
  • 1
    Er, no it doesn't. You can't boot from USB.
    – joan
    Commented Sep 4, 2015 at 16:36
  • My wording is wrong. You can boot only into the sd card, but you can have your root be on a USB. I'll change the word boot to root.
    – Seph Reed
    Commented Sep 4, 2015 at 17:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.