Wed May 24 18:58:08 2017 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.

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

We 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 2 entries: one of them is for NuTyX. The first entry will start the NuTyX distribution located on the /dev/sda2 partition. The second 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 xfs on /dev/sda2" { set root=(hd0,2) linux /boot/kernel root=/dev/sda2 ro quiet # initrd /boot/initrd } menuentry "Windows 10" { set root=(hd0,3) chainloader (hd0,3)+1 }