XFCE gentoo derivative: booting from iso

Non release banter
User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

XFCE gentoo derivative: booting from iso

Post#1 by francois » 31 Oct 2017, 02:53

This is a splitted post from Deepin desktop and other DE or window managers, there was a tangent from the original subjet to boot from iso file on a xfce gentoo derivative named CLDX.

What is wrong on these grub2 entries to boot the cldr.iso, given that /mnt/sda2/1_iso/cldx-17.6-x86_64.iso, so that I can test that gentoo derivative:

Code: Select all

    menuentry "CLDX" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,2)
    set isofile="/1_iso/cldx-17.6-x86_64.iso"
    search --no-floppy --file --set=root $isofile
    loopback loop $isofile
    linux (loop)/boot/vmlinuz from=$isofile login=guest changes=/cldx
    initrd (loop)/boot/initrd.xz
    }
    menuentry "CLDX" {
    insmod part_msdos
    insmod ext2
    set root=(hd0,2)
	set iso=/1_isos/
	loopback loop ${iso}
	linux  (loop)/boot/vmlinuz nomodeset vga=791 docache setkmap=fr isoloop=${iso}
	initrd (loop)/boot/initrd.xz
    }

Code: Select all

root@porteus:~# lsblk
...
sda      8:0    0 298.1G  0 disk 
├─sda2   8:2    0    92G  0 part /mnt/sda2
├─sda3   8:3    0     2G  0 part [SWAP]
└─sda1   8:1    0 204.1G  0 part /mnt/sda1
loop7    7:7    0  70.2M  0 loop 
loop5    7:5    0 172.1M  0 loop 
loop3    7:3    0  79.7M  0 loop 
root@porteus:~# 
Prendre son temps, profiter de celui qui passe.

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

Deepin desktop and other DE or window managers

Post#2 by Ed_P » 31 Oct 2017, 04:08

francois this is a grub2 menu I use to boot Porteus.

Code: Select all

menuentry " Porteus 4.0 ISO - AF"  {

     set linux_folder=/porteus4.0
     set iso=/ISOs/porteus-4.0-x86_64-20171023.iso
     set boot_parms="volume=33 reboot=cold extramod=$linux_folder/003Modules"
     set gfxpayload=1024x768

     search -f $iso --set=root
     loopback loop $iso
     linux  (loop)/boot/syslinux/vmlinuz from=$iso $boot_parms
     initrd (loop)/boot/syslinux/initrd.xz
     }
If you change the iso name and the boot_parms to your cldx iso I think it will work for you.
Ed

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Deepin desktop and other DE or window managers

Post#3 by francois » 31 Oct 2017, 10:39

This does not work, do not forget that the iso is located in /mnt/sda2/1_iso.

Code: Select all

    menuentry " cldx"  {
     set linux_folder=/1_iso
     set iso=cldx-17.6-x86_64.iso
     set boot_parms="volume=33 reboot=cold extramod=$linux_folder/003Modules"
     set gfxpayload=1024x768
     search -f $iso --set=root
     loopback loop $iso
     linux  (loop)/boot/syslinux/vmlinuz from=$iso $boot_parms
     initrd (loop)/boot/syslinux/initrd.xz
    }   

Thanks.
Prendre son temps, profiter de celui qui passe.

User avatar
francois
Contributor
Contributor
Posts: 6434
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

XFCE gentoo derivative: booting from iso

Post#4 by francois » 02 Nov 2017, 21:43

Sorry Ed and neko, by trying to split the thread I have lost your propositions.
Prendre son temps, profiter de celui qui passe.

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

XFCE gentoo derivative: booting from iso

Post#5 by Ed_P » 02 Nov 2017, 22:33

I believe neko indicated you don't need the search command and recommended you use the drive's uuid.

I suggested you need to include the path when setting the iso variable:
set iso=/1_iso/cldx-17.6-x86_64.iso
and unless you have multiple copies of the iso the search should be adequate without a uuid.

Do you have a /1_iso/003Modules folder? If not you don't need the extramod cheatcode in the boot_parms setting.
Ed

Post Reply