TrueNAS SCALE + GRUB USB

alyrian

Cadet
Joined
Sep 3, 2021
Messages
2
I am running TrueNAS CORE on a Microserver Gen8,
using a GRUB USB for booting with a grub.conf file as below

Code:
menuentry "TrueNAS" --class freebsd --class bsd --class os {
insmod zfs
insmod ext2
insmod part_gpt
echo Chainloading hd5 ...
set root=(hd5)
chainloader +1
}

What would be the equivalent for TrueNAS SCALE ?
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
On SCALE we use a GRUB entry like this:


Code:
menuentry 'TrueNAS Scale GNU/Linux 21.08-BETA.1' --class truenas --class gnu-linux --class gnu --class os $menuentry_id_option 'g
nulinux-simple-07bb1b812d5f2379' {
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod zfs
        set root='hd16,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd16,gpt3 --hint-efi=hd16,gpt3 --hint-baremetal=ahci16,gpt3  07bb1b
812d5f2379
        else
          search --no-floppy --fs-uuid --set=root 07bb1b812d5f2379
        fi
        echo    'Loading Linux 5.10.42+truenas ...'
        linux   /ROOT/21.08-BETA.1@/boot/vmlinuz-5.10.42+truenas root=ZFS=boot-pool/ROOT/21.08-BETA.1 ro console=0x03f8,115200 co
nsole=tty1 libata.allow_tpm=1 systemd.unified_cgroup_hierarchy=0 amd_iommu=on iommu=pt kvm_amd.npt=1 kvm_amd.avic=1 intel_iommu=o
n
        echo    'Loading initial ramdisk ...'
        initrd  /ROOT/21.08-BETA.1@/boot/initrd.img-5.10.42+truenas
}
 

simonj

Dabbler
Joined
Feb 28, 2022
Messages
32
For me this worked on a HPE microserver Gen8

Code:
menuentry "TrueNAS" --class truenas --class gnu-linux --class os {
insmod gzio
insmod zfs
insmod ext2
insmod part_gpt
echo Chainloading hd1 ...
set root=(hd1)
chainloader +1
}


SSD connected to ODD. For testing no other Harddisks in yet.
I had to completely disable the RAID controller in BIOS pcie settings. Before that it didn't boot.
 
Top