[HOWTO] make a Porteus ISO for a UEFI CD\DVD(no secure boot) :

Post tutorials, HOWTO's and other useful resources here.
benkenobi36
White ninja
White ninja
Posts: 4
Joined: 08 Jan 2024, 21:05
Distribution: Linux Mint

[HOWTO] make a Porteus ISO for a UEFI CD\DVD(no secure boot) :

Post#1 by benkenobi36 » 28 Jan 2024, 21:39

Made using Porteus 5.01 for x86_64 EFI

[*] download Grub 2.06 from this thread grub-2.06 - Latest and Xorriso from https://sourceforge.net/projects/ikkibo ... m/download
[*] Activate both
[*] Make a directory on the Desktop called ‘UEFI’
[*] Copy your boot,EFI,Porteus folder into the UEFI folder so you have UEFI\boot\,UEFI\EFI\,etc
[*] Copy and save as ~/Desktop/UEFI/mkimage.sh

Code: Select all

#!/bin/sh
grub-mkimage    -o EFI/BOOT/bootx64.efi    -c grub2-embedded.cfg    -p /boot/grub/    -O x86_64-efi  part_gpt part_msdos fat btrfs ext2 f2fs jfs xfs iso9660 ntfs chain linux boot configfile normal regexp extcmd minicmd reboot halt search search_fs_file search_fs_uuid  search_label gfxterm gfxmenu gfxterm_menu gfxterm_background efi_gop efi_uga all_video loadbios gzio echo true probe loadenv bitmap_scale font cat help ls png jpeg tga test at_keyboard  usb_keyboard disk memdisk nativedisk file loopback tar tftp net efinet efifwsetup zstd 
[*] Copy and save as ~/Desktop/UEFI/mkesp.sh

Code: Select all

 #!/bin/sh
dd if=/dev/zero of=EFI/BOOT/efiboot.img bs=512 count=2880



mkfs.msdos -F 12 -n ‘EFIBOOT’ EFI/BOOT/efiboot.img


mmd -i EFI/BOOT/efiboot.img ::EFI
mmd -i EFI/BOOT/efiboot.img ::EFI/BOOT



mcopy -i EFI/BOOT/efiboot.img EFI/BOOT/bootx64.efi ::EFI/BOOT/bootx64.efi
[*] Copy and Save as ~/Desktop/UEFI/mkiso.sh

Code: Select all

 #!/bin/sh 

xorriso -as mkisofs    -r -V ‘PORT’    -o port.iso    -J -J -joliet-long -cache-inodes        -b /boot/syslinux/isolinux.bin    -c /boot/syslinux/boot.cat    -boot-load-size 4 -boot-info-table -no-emul-boot    -eltorito-alt-boot    -e EFI/BOOT/efiboot.img    -no-emul-boot -isohybrid-gpt-basdat ./ 
[*] Copy and save as ~/Desktop/UEFI/grub2-embedded.cfg

Code: Select all



### embedded configuration
loadfont euro

set gfxmode=auto
set gfxpayload=keep
terminal_output gfxterm

set timeout=2
set fallback=1
set pager=1

menu entry "boot"{
search --file --no-floppy --set=root /grub.cfg
configfile /grub.cfg
menuentry “Shutdown” {
	halt
}

menuentry “Reboot” {
	reboot
}
[*]Delete ~/Desktop/UEFI/EFI/boot and make a folder named 'BOOT'
[*] Open terminal in ~/Desktop/UEFI/ then type or copy and paste

Code: Select all

cp /usr/share/grub/euro.pf2 ./
chmod +x mkimage.sh
chmod +x mkesp.sh
chmod +x mkiso.sh
./mkimage.sh
sudo ./mkesp.sh
grub-syslinux2cfg ./boot/syslinux/porteus.cfg >>./grub.cfg
[*] Make sure you have modified your grub.cfg adding this to the beginning

Code: Select all

 
insmod png
loadfont /euro.pf2 

[*] Then run

Code: Select all

./mkiso.sh
Last edited by benkenobi36 on 29 Jan 2024, 05:08, edited 1 time in total.

User avatar
Ed_P
Contributor
Contributor
Posts: 8374
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

[HOWTO] get a Porteus iso with UEFI (no secure boot) :

Post#2 by Ed_P » 29 Jan 2024, 01:08

:%) I boot my Porteus ISO on my EFI system without doing any of these steps. What am I missing?

How to upgrade to UEFI Secure Boot
UEFI Boot Confusion [Solved]
Ed

benkenobi36
White ninja
White ninja
Posts: 4
Joined: 08 Jan 2024, 21:05
Distribution: Linux Mint

[HOWTO] get a Porteus iso with UEFI (no secure boot) :

Post#3 by benkenobi36 » 29 Jan 2024, 02:42

This ISO is for booting a CD or DVD on an UEFI-only system

Post Reply