Setting the default entry in the boot menu

Moderator: Forum moderators

Post Reply
User avatar
bigpup
Moderator
Posts: 6993
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 911 times
Been thanked: 1528 times

Setting the default entry in the boot menu

Post by bigpup »

The boot loader used in Raspbian, has a file that provides the entries, in the boot menu.

The file is on the first partition, along with all the other Raspbian files.

To make any changes to the boot menu, edit this file:

bootmenu.txt

Open the file in a text editor to make any changes.

The default boot entry is at the top of the file entries.
It is the menu entry, that is auto booted, after the timeout period finishes.
It is set to raspup

Code: Select all

DEFAULT raspup

To make the default one of the other entries.
Replace the name, with one of the other entries, label name.
Save change.
Example:

Code: Select all

DEFAULT raspupsave

Note:
When you make a save, the default menu entry does not change to the raspupsave entry.
to make it use the raspupsave entry, by default.
Make the change to the bootmenu.txt file.
Save change.

You can also move the entries around in the menu.
Example:
Make raspupsave the first entry and also the default entry.

# Timeout is in tenths of a second, 0 disables it.
TIMEOUT 100

DEFAULT raspupsave

LABEL raspupsave
PMEDIA usbflash
PUPSFS mmcblk0p1:/puppy_raspup_8.2.1.sfs
PSAVE mmcblk0p3:/raspupsave

LABEL raspup
PMEDIA usbflash

LABEL "raspup pfix-ram"
PFIX ram

LABEL "raspup pfix-copy"
PFIX copy

LABEL search
SEARCH_DRIVE all

LABEL "ram disk shell"
PFIX rdsh

# Multiple parameters can be specified in each LABEL section,
# put each one on it's own line.

# Supported parameters passed to init:
# PDEV1 PDRV PFIX PIMOD PMEDIA PSAVE PSAVEMARK PSUBDIR PUPSFS
# ZDRV FDRV ADRV YDRV

# Parameters used by init-bootmenu:

# DISTRO_SPECS # Path of DISTRO_SPECS file to temporarily replace
# the one in initrd.gz (also used to determine the
# DISTRO_FILE_PREFIX when searching for savefiles).

# SEARCH_DIR # Subdirectory to search for savefiles,
# puppy sfs files and DISTRO_SPECS files.

# SEARCH_DRIVE # Drive to search for savefiles,
# puppy sfs files and DISTRO_SPECS files.
# Can be used together with SEARCH_DIR

Note:
For some reason, there are multiple raspupsave entries made in the bootmenu.txt file.
Only need one entry, to boot using the save.
Other raspupsave entries, can be deleted, if you want to.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

Post Reply

Return to “Raspbian Buster”