DIY: Change your Default OS on Boot in Raspberry PI

Change your Default OS on Boot in Raspberry PI
Spread the love

Are you working on multiple OS on Raspberry PI? Are you able to manage it properly??
This tutorial is about to manage your OS on boot. It will help you to change your default OS to run with your favourite project and be more productive. Multiple OS requires more memory space to boot.

These are simple steps to follow –

Connect your Raspberry with ssh terminal

ssh [email protected]
& your raspberry password

Make Directory to mount

sudo /tmp/noobs

Mount noobs partition

sudo mount /dev/mmcblk0p3 tmp/noobs

See also: VNC server on Raspberry PI: Simple and Secure Remote Working

Look which os is on which partition

cat /tmp/noobs/installed_os.json
"name": "RISC OS"
"partitions": [
"/dev/mmcblk0p5",
"/dev/mmcblk0p6"
],
...

The mmcblk0p5 is important.

Edit the noobs.conf with e.g. nano or your favourite editor and the change the value default_partition_to_boot to the partition number

sudo nano noobs.conf
[General]
default_partition_to_boot=5
display_modr=0
keyboard_layout=us
language=en

Now finally perform reboot to reflect changes and boot with other os

sudo reboot

P.S you can write a shell script to edit the noobs.conf and change the OS according to your need.

Please share your valuable feedback on the comment box.

For more reading:

Torrent Server on Raspberry Pi
Install Kodi on Raspbian: An amazing multimedia experience

Founder of #thinkInnovative. A passionate Blogger and Digital Marketing Expert.

2 Comment

  1. Can we use raspbian and ubuntu mate on dual boot ?

  2. yes Shashank, you can use both the OS on dual boot.. You have to give a preference which should boot first. 🙂

Leave a Reply