Technical issues/questions of an intermediate or advanced nature.
-
Ed_P
- Contributor
- Posts: 8360
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#1
by Ed_P » 03 Sep 2018, 23:01
I've been banging my head against the wall for a week trying to determine how to boot my 32bit Porteus USB install via a grub2 menu that invokes the porteus.cfg menu. I don't want to make 4 or 5 grub2 entries that do the same options as the porteus.cfg menu.
I've tried:
Code: Select all
menuentry " Porteus 3.2 USB menu" --class slackware --class icon-porteus {
# set bootmgr=/boot/syslinux/boot.cat
# set bootmgr=/boot/syslinux/isolinux.bin
# set bootmgr=/boot/syslinux/isolinux.boot
# set bootmgr=/boot/syslinux/vesamenu.c32
set bootmgr=/boot/syslinux/chain.c32
set bootdrv=$root
search -f $bootmgr --set=root
if [ $root != $bootdrv ]; then
# chainloader +1
chainloader $bootmgr
# $bootmgr
else
My netbook is EFI with Secure Boot disabled and boots other USB drives OK.
Ed
Ed_P
-
Ed_P
- Contributor
- Posts: 8360
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Post#2
by Ed_P » 05 Sep 2018, 15:56
Booting to the Porteus menu on my Porteus 4.0 USB drive is easy.
Code: Select all
menuentry " Porteus 4.0 USB " --class slackware --class icon-porteus {
set efibootmgr=/EFI/boot/bootx64.efi
set bootdrv=$root
search -f $efibootmgr --set=root
if [ $root != $bootdrv ]; then
chainloader $efibootmgr
else
echo "----------------------------------------"
echo USB drive NOT found.
echo
sleep -v -i 10
fi
set root=$bootdrv
}
Just wish I could figure how to do it for non-EFI installs.
Ed
Ed_P