Skip to content

Instantly share code, notes, and snippets.

@carry0987
Last active September 19, 2018 01:43
Show Gist options
  • Save carry0987/cdc296cdb2d2809a17a00f510d105053 to your computer and use it in GitHub Desktop.
Save carry0987/cdc296cdb2d2809a17a00f510d105053 to your computer and use it in GitHub Desktop.
RPi3-Change-Berryboot-Default-System-By-SSH

RPi3 Change Berryboot Default System By SSH

Step

  1. Use sudo mount /dev/mmcblk0p2 /mnt to mount raw storage

  2. Use ls /mnt/images to check what the full file name of the operating you would like to run

  3. Use sudo su to change user into root

  4. Write out the desired image file's name to "runonce":
    echo [filename_of_operating_system].img[memsplit amount] > /mnt/data/runonce
    For example: echo Raspbian.img128 > /mnt/data/runonce

  5. Reboot

Note

That this will only change the booted OS for the next reboot. You could probably change the default by changing the 4th step to the following:
echo -n [filename_of_operating_system].img[memsplit amount] > /mnt/data/default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment