Page 1 of 1

Add bootable iso in Porteus(X) live USB

Posted: 18 Sep 2023, 21:38
by benjibasson
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

Add bootable iso in Porteus(X) live USB

Posted: 18 Sep 2023, 22:29
by Ed_P
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.

Add bootable iso in Porteus(X) live USB

Posted: 29 Sep 2023, 08:48
by samuelmurphy
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.

Add bootable iso in Porteus(X) live USB

Posted: 29 Sep 2023, 16:42
by Ed_P
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.