Tue Jan 11 12:21:59 2022 UTC

Setting up GRUB

If you haven't installed GRUB yet (by mistake or on purpose), it's not too late. As you will see, it's very simple to install GRUB separately.

Important

[Important] It is strongly recommended not to use native grub commands. The grub.cfg file will be overwritten and will contain unnecessary information or even incompatible with NuTyX. Moreover, the menu structure will be lost.

To be able to install GRUB

It is not necessary to have NuTyX installed; you can install GRUB to any other distribution.

Restart the PC and boot the ISO

Figure 1: Iso bootup

Once you arrive at the Main menu, choose "Boot Configure the boot of the PC (optional)" like this:

Figure 2: Boot Configure the boot of the PC

It's now time to ...

Select the partition

Choose the partition where the GRUB application will be installed. Please note that the destination partition does not have to be on the disk you booted from. A menu appears giving you the chance to choose another disk.

Figure 3: Choose of the partition

Grub is installed

It's now time to edit the grub.cfg file.

Figure 4: Modify the configuration file

caution Be aware of the syntax for addressing disks and partitions. It's a bit special.
Figure 5: Default configuration

With grub 2.00, the first hard drive is called 0 and the first partition is 1. This means that the following example:

set root=(hd0,5)

defines the fifth partition on the first hard drive.

In the following example, we can see 4 entries: three of them are for NuTyX. The first entry will start the NuTyX distribution located on the /dev/sda2 partition.

The second entry will start the NuTyX distribution located on the /dev/sda2 partition with runyx as init system.

The third entry will start the NuTyX distribution located on the /dev/sda2 partition with systemd as init system.

The last entry will start Windows 10 located on /dev/sda3

# Begin grub.cfg
# By default boot the first menu entry.
set default 0
# Allow 5 seconds before booting the default.
set timeout 5
set color_highlight=blue/white set color_normal=cyan/black
set gfxpayload=1024x768x16 menuentry "NuTyX SysV on /dev/sda2" { set root=(hd0,2) linux /boot/kernel root=/dev/sda2 ro quiet verbose=no # initrd /boot/initrd } menuentry "NuTyX RuNyX on /dev/sda2" { set root=(hd0,2) linux /boot/kernel root=/dev/sda2 init=/sbin/runit-init ro quiet verbose=no # initrd /boot/initrd } menuentry "NuTyX Systemd on /dev/sda2" { set root=(hd0,2) linux /boot/kernel root=/dev/sda2 init=/sbin/systemd-init ro quiet # initrd /boot/initrd } menuentry "Windows 10" { set root=(hd0,3) chainloader (hd0,3)+1 }