Thu Dec 17 08:32:57 2020 UTC

Install UEFI with multiple OS

Introduction

We will install UEFI with grub, to allow multi Distros to be installed.

We will need the hard drive to have a GPT table written. We then create a vfat efi partition, and a partition for NuTyX and swap.

You can also leave room for other partitions as well.

AS OF WRITING, THIS CAN ONLY BE DONE FROM THE install-nutyx SCRIPT.
BOOT IN USING A LIVE EFI ISO

Preliminaries

Creating the partition

Make sure you select gpt as label type, if you select dos, the boot of NuTyX in UEFI mode will fail.

mkfs.vfat /dev/sda1
Create a swap partition, and a NuTyX partition ext4
mkfs.ext4 /dev/sda3

Then create a mount point for install,

mkdir -pv /mnt/hd
Mount the NuTyX partition,
mount -v /dev/sda3 /mnt/hd

Install NuTyX

install-nutyx
Chroot into NuTyX.
install-nutyx -ec

Install grub-efi and efibootmgr

cards install grub-efi efibootmgr

Create /boot/efi directory

mkdir /boot/efi
Mount EFI partition to /boot/efi
mount -v /dev/sda1 /boot/efi

Install Grub

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=NUTYX

Create your grub.cfg

grub-mkconfig -o /boot/grub/grub.cfg

Note

Add efi partition to the /etc/fstab file. (optional)

/dev/sda?   /boot/efi  vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro   0 2