NomadBSD and Linux dual boot

Hi,

could you please provide hints on how to make a dual-boot USB stick, NomadBSD and a Linux install, if possible at all?

Some years ago I had a multi-boot desktop PC with FreeBSD and several Linux installs. FreeBSD was chainloaded using the GRUB bootloader.
Nowadays my desktop PC is a multi-boot with Linux installs only, using the syslinux bootloader.
I’m an experienced Linux user, with almost no BSD experiences and absolutely no experiences with bootable USB sticks and also with absolutely no efi experiences.

What I’ve done so far is writing NomadBSD to the USB stick…

[root@archlinux .tmp]# time xzcat nomadbsd-1.3.1.img.lzma | dd of=/dev/sdf bs=1M 
0+552273 records in
0+552273 records out
4999999488 bytes (5.0 GB, 4.7 GiB) copied, 351.293 s, 14.2 MB/s

real	5m51.299s
user	3m25.513s
sys	0m15.494s

…it resulted in…

[root@archlinux .tmp]# fdisk -l /dev/sdf
Disk /dev/sdf: 28.87 GiB, 30972837888 bytes, 60493824 sectors
Disk model: TransMemory     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x90909090

Device     Boot Start     End Sectors  Size Id Type
/dev/sdf1          64   81983   81920   40M ef EFI (FAT-12/16/32)
/dev/sdf2  *    81984 8286271 8204288  3.9G a5 FreeBSD

…I added an ext4 partition at the end of the USB stick’s space, taking half of the USB stick’s size…

[root@archlinux .tmp]# fdisk -l /dev/sdf
Disk /dev/sdf: 28.87 GiB, 30972837888 bytes, 60493824 sectors
Disk model: TransMemory     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x90909090

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdf1             64    81983    81920   40M ef EFI (FAT-12/16/32)
/dev/sdf2  *       81984  8286271  8204288  3.9G a5 FreeBSD
/dev/sdf3       30320640 60493823 30173184 14.4G 83 Linux

…after setting up NomadBSD everything is as expected…

[root@archlinux .tmp]# fdisk -l /dev/sdf
Disk /dev/sdf: 28.87 GiB, 30972837888 bytes, 60493824 sectors
Disk model: TransMemory     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x90909090

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdf1             64    81983    81920   40M ef EFI (FAT-12/16/32)
/dev/sdf2  *       81984  8286271  8204288  3.9G a5 FreeBSD
/dev/sdf3       30320640 60493823 30173184 14.4G 83 Linux
/dev/sdf4        8286272 30320639 22034368 10.5G a5 FreeBSD

Partition table entries are not in disk order.

Regards,
Ralf