Technical issues/questions of an intermediate or advanced nature.
-
Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#1
by Ed_P » 27 Jun 2021, 17:56
If I boot Porteus via the EFI folder I get the porteus.cfg menu to appear.
Code: Select all
menuentry " Porteus 4.0 USB - EFI" --class slackware --class icon-porteus {
set bootmgr=/EFI/boot/bootx64.efi #grubx64.efi # bootx64.efi
set bootdrv=$root
search -f $bootmgr --set=root
if [ $root != $bootdrv ]; then
chainloader $bootmgr
else
echo "----------------------------------------"
echo USB drive NOT found.
echo
sleep -v -i 10
fi
set root=$bootdrv
}
How do I do that on a normal, non-EFI, menu? I've tried setting the bootmgr to /boot/syslinux/vmlinuz and /boot/syslinux/initrd.xz and used chainloader $bootmgr and chainloader +1 to no avail. Yes, I'm guessing.
I know how to boot Porteus directly using grub2 menu parms but was impressed to see the EFI boot option invoked the Porteus boot menu and would like to try seeing it like a direct boot of the drive shows.
Added in 11 hours 26 minutes 11 seconds:
This works!
Code: Select all
menuentry " Porteus 4.0 USB - syslinux" --class slackware --class icon-porteus {
set bootmgr=/boot/syslinux/isolinux.bin
set bootdrv=$root
search -f $bootmgr --set=root
if [ $root != $bootdrv ]; then
syslinux_source $bootmgr
syslinux_configfile /boot/syslinux/porteus.cfg
else
echo "----------------------------------------"
echo Porteus drive NOT found.
echo
sleep -v -i 10
fi
set root=$bootdrv
}
Not the same background as my EFI boot menu but the menu items are definitely the same.
Ed
Ed_P
-
raja
- Shogun
- Posts: 434
- Joined: 02 May 2017, 09:51
- Distribution: v3.2.2-32 and Porteus-Artix-64
- Location: Chennai,India
Post#2
by raja » 01 Jul 2021, 08:12
ed_p,
porteus disk ???
1)Should we have an USB disk with volume name 'porteus' and boot,porteus folders in it?
or
2)a CD burnt with porteus iso
where is grub looking for 'porteus' disk?
thanks.
Linux Kernel-4.4.272 -32 bit; Linux Kernel-5.4.185 - 64 bit
raja
-
Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#3
by Ed_P » 01 Jul 2021, 15:33
raja wrote: ↑01 Jul 2021, 08:12
1)Should we have an USB disk with volume name 'porteus' and boot,porteus folders in it?
or
2)a CD burnt with porteus iso
Which ever is more convenient for you. Personally I use ISOs and USB drives.
raja wrote: ↑01 Jul 2021, 08:12
where is grub looking for 'porteus' disk?
Where ever you tell it to look. Personally I have grub search for it.
The code I posted above was a new approach for me in booting my USB drive. Normally I use a menu like this:
Code: Select all
menuentry " Porteus Cinnamon 3.2.2 ISO - changes=" --class slackware --class icon-porteus {
set linux_folder=/porteus3.2
set iso=/ISOs/Porteus-CINNAMON-v3.2.2-x86_64.iso
set boot_parms="volume=33 reboot=cold changes=EXIT:$linux_folder/changes/porteussave.dat extramod=$linux_folder/Modules"
# set boot_parms="nomodeset verbose delay=8 volume=33 reboot=cold changes=EXIT:$linux_folder/changes/porteussave.dat extramod=$linux_folder/Modules"
set gfxpayload=1024x768
if [ -f /boot/syslinux/vmlinuz ]; then linux_folder=""; fi
search -f $iso --set=root
loopback loop $iso
# linux (loop)/boot/syslinux/vmlinuz from=$iso $boot_parms
linux $linux_folder/vmlinuz from=$iso $boot_parms
initrd (loop)/boot/syslinux/initrd.xz
}
Ed
Ed_P
-
Bicephale
- Full of knowledge
- Posts: 111
- Joined: 28 Dec 2010, 19:10
- Distribution: Live CDs
- Location: Quebec/Qc, Canada
Post#4
by Bicephale » 06 Aug 2021, 14:48
On my to-do list too!
Bicephale