typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

NOOBS 1.8 - reducing the OS selection time / no splash scree

Thu Mar 17, 2016 11:50 am

Hey,

I have a raspi 2B with noobs 1.8 with raspbian and openelec.

how can i disable the OS selection time which is typically 10 seconds.

The autoboot.txt trick did not work for me after adding the line boot_partition=6
I still get the OS selection menu which will take 10 seconds.

I have put that file in "media/pi/SETTINGS" directory

thx
WOLF

User avatar
procount
Posts: 1849
Joined: Thu Jun 27, 2013 12:32 pm
Location: UK

Re: NOOBS 1.8 - reducing the OS selection time / no splash s

Thu Mar 17, 2016 12:15 pm

autoboot.txt is read by the GPU on boot, so you need to put it on the RECOVERY partition along with the other NOOBS files i.e. /dev/mmcblk0p1 - the FAT partition you can see if you put the card in a Windows machine.
PINN - NOOBS with the extras... https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=142574

typxxi
Posts: 44
Joined: Sat Mar 05, 2016 6:11 pm
Location: GERMANY

Re: NOOBS 1.8 - reducing the OS selection time / no splash s

Sun Mar 20, 2016 11:12 am

Thx!
WOLF

HermanR76
Posts: 1
Joined: Tue Apr 12, 2016 7:41 am

Re: NOOBS 1.8 - reducing the OS selection time / no splash s

Tue Apr 12, 2016 8:18 am

I struggled a bit before i found this post. For future reference for myself and maybe help others I'm gonna post my setup and what i did to solve it.

I have a PI v3 and needed it to boot between Raspbian and OpenELEC through SSH commands (using tasker and a ssh plugin on my phone to automate a couple things).

To get it up and running with automatic switching between the two OS's i made a series of command sent through ssh.

To find out which partition to start you use the command:

Code: Select all

sudo fdisk -l

Primary partition Logical partition Type Label Contents
1 FAT RECOVERY NOOBS boot files & initramfs, OS recovery images
2 extended Any logical partitions
5 ext4 SETTINGS NOOBS settings
6 FAT boot ArchLinux boot files
7 ext4 root ArchLinux root filesystem
8 FAT boot1 Raspbian boot files
9 ext4 root1 Raspbian root filesystem

Partition 1 is the noobs partition. Partition 6 is the RaspBian and Partition 8 is OpenELEC (on my setup).

I'm a newbie when it comes to Linux, so if anyone have suggestions of improving how this is done, feel free to tell me :)
I have thought about storing scripts on the OS's to run, but havent gotten that far yet.

To get the PI to reboot into OpenELEC from RaspBian i did the following:

#make a folder in /tmp to mount noobs partition, this folder gets removed on reboot so you have to do the command every time.

Code: Select all

mkdir /tmp/noobs
#mount the partition to said folder

Code: Select all

sudo mount /dev/mmcblk0p1 /tmp/noobs
#make the file autoboot.txt in the root folder of noobs partition

Code: Select all

echo "boot_partition=8" | sudo tee /tmp/noobs/autoboot.txt
#reboot the PI

Code: Select all

sudo reboot

To reboot the PI into Raspbian from OpenELEC:

#make a folder in /tmp to mount noobs partition, this folder gets removed on reboot so you have to do the command every time.

Code: Select all

mkdir /tmp/noobs
#mount the partition to said folder. On OpenElec the actual location is different from Raspbian.
#OpenELEC doesn't have the "sudo" function since you are "root" when logged in.

Code: Select all

mount /dev/mmcblk0p1 [b]/var/media/root[/b]/tmp/noobs
#make the file autoboot.txt in the root folder of noobs partition

Code: Select all

echo "boot_partition=8" > var/media/root/tmp/noobs/autoboot.txt
#reboot the PI

Code: Select all

reboot

Hope this will help some newbies like me :)

Regards

Herman

!PS Added the xml files from tasker.
!PPS Following this guide is done at your own risk :)
Attachments
Tasker.zip
Tasker xml scripts
(2.16 KiB) Downloaded 28 times

Return to “Beginners”