Add bootable iso in Porteus(X) live USB

Post here if you are a new Porteus member and you're looking for some help.
benjibasson
Samurai
Samurai
Posts: 141
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

Add bootable iso in Porteus(X) live USB

Post#1 by benjibasson » 18 Sep 2023, 21:38

Hi, I have currently porteus(X) in a live USB.
I would like to add an ubuntu or linux mint in this media to be abble to install in the computers I recovered, or to try differents distributions from iso. and choose between linux mint iso and Porteus

I have learnt that it is possible to launch iso directly from GRUB2 by

Code: Select all

menuentry "..    linuxmint-21.2-xfce-64bit-iso" {
	iso_path="/isos/linuxmint-21.2-xfce-64bit.iso"
	export iso_path
	search --set=root --file $iso_path
	loopback loop $iso_path
        echo "Lancement de l'iso en cours, veuillez patienter.."
	root=(loop)
	configfile /boot/grub/loopback.cfg
	loopback --delete loop
}
How add this entry into the porteus.cfg ?

Cheers

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

Add bootable iso in Porteus(X) live USB

Post#2 by Ed_P » 18 Sep 2023, 22:29

I don't believe Porteus supports ISO booting. Easier to install grub2 to the USB drive and use it to boot your ISO files and Portues install. Or even Porteus ISOs.
Ed

samuelmurphy
Ronin
Ronin
Posts: 2
Joined: 29 Sep 2023, 08:46
Distribution: Porteus

Add bootable iso in Porteus(X) live USB

Post#3 by samuelmurphy » 29 Sep 2023, 08:48

Hello, To add the menu entry for launching an Ubuntu or Linux Mint ISO from GRUB2 in Porteus, you can follow these steps:

1. Boot into Porteus from your live USB.

2. Locate the porteus.cfg file. It is typically found in the /mnt/sdXy/boot/syslinux directory, where X and y represent the appropriate drive and partition numbers for your USB.

3. Open porteus.cfg using a text editor.

4. Scroll to the bottom of the file and add the following menu entry code:

Code: Select all

label ubuntu
    menu label Ubuntu
    com32 linux.c32
    append /casper/vmlinuz iso_path=/isos/ubuntu.iso boot=casper toram noeject noprompt splash --
    initrd /casper/initrd
5. Replace /isos/ubuntu.iso with the appropriate path to your Ubuntu ISO file. Adjust the label and menu item name (Ubuntu) according to your preference.

6. Save the changes to porteus.cfg and exit the text editor.

7. Reboot your system and select the Ubuntu menu entry from the GRUB2 boot menu. It should launch the Ubuntu ISO and allow you to install or try the distribution.

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

Add bootable iso in Porteus(X) live USB

Post#4 by Ed_P » 29 Sep 2023, 16:42

samuelmurphy wrote:
29 Sep 2023, 08:48
from the GRUB2 boot menu.
:hmmm: Have you tried this menu entry? The Porteus boot menu is not GRUB2 and it has no linux.c32 subroutine.
Ed

Post Reply