Change boot order - TUXEDO Computers

  ATTENTION: To use our store you have to activate JavaScript and deactivate script blockers!  
Thank you for your understanding!

Change boot order

If other operating systems such as other Linux distributions or Microsoft Windows are installed on your device in parallel to TUXEDO OS, you have to pay attention to which operating system is loaded at startup. In the default installation, the system automatically boots TUXEDO OS, you select the other systems as needed in the boot loader. However, if you prefer another operating system, the boot order can also be adjusted.

Determine installed systems

Open via System » Konsole or with CTRL+ALT+T a terminal window and execute the following command. It shows you which operating systems are installed under which ID on your system. In the example this would be TUXEDO OS with the ID 0 and a Windows with the ID 2.

Command

awk -F\' '$1=="menuentry " || $1=="submenu " {print i++ " : " $2}; /\smenuentry / {print "\t" i-1">"j++ " : " $2};' /boot/grub/grub.cfg

Example

awk -F\' '$1=="menuentry " || $1=="submenu " {print i++ " : " $2}; /\smenuentry / {print "\t" i-1">"j++ " : " $2};' /boot/grub/grub.cfg
(out)0 : TUXEDO OS GNU/Linux
(out)1 : Advanced options for TUXEDO OS GNU/Linux
(out)2 : Windows Boot Manager (on /dev/sda1)
(out)3 : UEFI Firmware Settings

Boot other OS once

If you now want to boot an operating system other than TUXEDO OS only once, use the command grub-reboot ID. According to the example above, you would boot into the Windows system installed in parallel to TUXEDO OS with the following commands. TUXEDO OS will then automatically load again at the next reboot.

sudo grub-reboot 2 ### Please adjust the ID
sudo reboot

Permanently change boot order

To permanently change the boot order, edit the /etc/default/grub configuration file. To do this, open the Kate text editor with the path to the file.

kate /etc/default/grub

Then change the number in the GRUB_DEFAULT= line. The default option 0 loads the first intry inside the menu. In the standard configuration this is TUXWEDO OS. The 2 would automatically boot Windows according to the example from above. Save the change (you must confirm the action with your password), close the editor and return to the terminal.

Note: If you enter the option GRUB_DEFAULT=saved instead of an ID in /etc/default/grub, Grub remembers your selection at each boot and restarts the selected system at the next boot. In this case, you also have the option of selecting the operating system to be started automatically directly from TUXEDO OS with sudo grub-reboot ID, for example sudo grub-reboot 2.

Now, finally, enter the following command. It updates the grub configuration on the system’s boot partition. On the next reboot, your changes should take effect immediately and the selected operating system should load automatically.

sudo update-grub