brokenman UEFI booting questions

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

brokenman UEFI booting questions

Post#1 by Ed_P » 04 Nov 2015, 05:14

I will be getting a new netbook/laptop in the near future, which will undoubtedly have EFI booting. All my current systems multi-boot and I want the new system to be able to do that also. And I want it to retain it's Windows 10 system and I want my additional systems to be ISOs like I have today.

Based on working with your EFI bootable USB drive (viewtopic.php?f=81&t=4632&p=33638#p33604)
I'm hoping I can add rEFInd to the new machine and use it to be my multi-boot system menu, booting Windows and booting Grub2, the latter providing the ISO booting functions.

My 1st question is where did you get the bootx64.efi file that you use.
Ed

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

Re: brokenman UEFI booting questions

Post#2 by Ed_P » 04 Nov 2015, 15:25

Ed_P wrote:My 1st question is where did you get the bootx64.efi file that you use.
I think I found the answer to that question.

viewtopic.php?f=81&t=2700#p29085
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: brokenman UEFI booting questions

Post#3 by brokenman » 04 Nov 2015, 18:22

Yes I got it from rods website directly. I used his script to install the bootloader to a USB for testing, then just copied the files over from the USB. A lot of this will depend on the system that you buy and you won't know until you try. Some systems (like mine) only boot from the default EFI/BOOT/bootx64.efi file. In this case you need to overwrite this file on your computer (make a backup somewhere first). I have had windows update this file before which broke my bootloader so always make backups.

On some systems you can leave the refind efi file in its folder and tweak your firmware to boot from whichever efi file you want. Most of the procedure will depend on questions you can answer adter you test the new machine. I can safely say that refind is the best bootloader for my situation. It auto detects just about every other OS on the machine.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: brokenman UEFI booting questions

Post#4 by Ed_P » 12 Nov 2015, 05:23

A bit of a digression from my new machine goal. I'm tweaking my Porteus UEFI flash drive to boot ISO files. I've got the non-UEFI side figured out and working but running into a problem on the UEFI side.

I downloaded a Grub2 EFI file that contained a grub2x64.efi and shimx64.efi which I put in a EFI/grub2/Boot/ folder plus a hand made grub2.cfg file made from parts of a grub2win app and Google finds. I added a menu entry to the /EFI/BOOT/refind.conf file to invoke grub2, which it does.

Code: Select all

menuentry Grub2 {
	loader /EFI/grub2/Boot/grubx64.efi
	icon /EFI/BOOT/icons/os_linux.png
}
And EFI grub2 does start with this setup. :Yahoo!: But grub2 is not reading the grub2.cfg file. :( I even put a copy of the grub2.cfg file in the root of the USB drive but still a no go. What am I missing??
Ed

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: brokenman UEFI booting questions

Post#5 by brokenman » 12 Nov 2015, 20:18

I haven't used grub2. You didn't say exactly where you put the grub.cfg file, nor if you compiled the .efi file yourself or are using a pre-made one. I expect the following places should work.

/boot/grub, /grub, /boot/grub2 or /grub2, or right next to the EFI binary.
How do i become super user?
Wear your underpants on the outside and put on a cape.

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

Re: brokenman UEFI booting questions

Post#6 by Ed_P » 12 Nov 2015, 20:59

brokenman wrote:You didn't say exactly where you put the grub.cfg file,
One is in the root of the flash drive and one is next to the grub2x64.efi file in the /EFI/grub2/Boot/ folder.
nor if you compiled the .efi file yourself or are using a pre-made one.
I'm using a premade one. Which I noticed has Ubuntu in the title.
I expect the following places should work.

/boot/grub, /grub, /boot/grub2 or /grub2, or right next to the EFI binary.
An interesting assortment, I'll give them a try. Thanks. I appreciate your taking the time. :beer:
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.

Re: brokenman UEFI booting questions

Post#7 by francois » 12 Nov 2015, 21:29

I might know some guy that has developped a grub2 installer for arch linux. This could be use as a module on nemesis and would add extra value to the distribution (former and closed forum of evolution linux:
http://www.evolutionlinux.com/

Eventually, I could make the contact if desirable.
Prendre son temps, profiter de celui qui passe.

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: brokenman UEFI booting questions

Post#8 by brokenman » 13 Nov 2015, 02:25

How do you envision that this would fit into Porteus?
How do i become super user?
Wear your underpants on the outside and put on a cape.

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.

Re: brokenman UEFI booting questions

Post#9 by francois » 13 Nov 2015, 03:28

@brokenman:
Just brainstorming. In fact, I am not even sure it would fit on nemesis given the structure of the compressed modules which are different from the full install. Though I suspect that it could be not that hard to adapt. As It seems to me that it is simpler to copy paste modules on a partition than to completely unfold a compressed iso onto the same partition.

Then if this is good for nemesis, it could be good for porteus. I was for some time on the evolution linux forum enough to understand that they aimed a distribution that could be more friendly use than arch, designed for naive to intermediate. They went on for a year or two, but the few maintainers seemed to burn out or to get discouraged because of the lack of membership and of technical skills of their community. I imagine you realize how hardworking, courageous and skillfull fanthom, hamza, ahau and you have been during these last years. 8)

Maybe the developper of the installer could be interested in nemesis first and then to porteus. :twisted:

This installer was some kind of perfected debian installer. The older one, if it has changed recently. This would be a great spreading tool or module.
Prendre son temps, profiter de celui qui passe.

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

Re: brokenman UEFI booting questions

Post#10 by Ed_P » 18 Nov 2015, 08:02

brokenman, an update.

It is possible to boot ISOs with your UEFI Porteus USB system. But it depends on what version of grub2 you are using and the one I had, which was looking for the cfg file in a /EFI/ubuntu/ folder, didn't support the loopback command. :evil: But the version in an app named Grub2Win does. :good:

So, an entry in rEFInd.conf:

Code: Select all

menuentry Grub2 {
	loader /EFI/grub2win/grub2win.boot.efi
	icon /EFI/BOOT/icons/os_linux.png
}
and an entry in the /grub2/grub2.cfg file something like this:

Code: Select all

#
#  Menu Item 1       Porteus
#
menuentry "Porteus ISO" --class slackware   --class icon-linux  {
     echo Grub is now booting   Porteus ISO
     echo Boot disk address is  $root
     echo Prefix is             $prefix
     echo The boot mode is      $grub2win_bootmode
     set iso=/ISOs/Porteus-RazorQT-v3.0.1-x86_64-nu.iso
     search -f $iso --set=root 
     echo ISO root              $root
     if [ -f (hd1,1)/USB_INSTALLATION.txt ]; then
         set linux_drv=/mnt/sdb1
     else
         set linux_drv=/mnt/sda5
     fi
     echo Porteus extramods     $linux_drv
     echo
     loopback loop $iso
     sleep -v -i 7 
     echo "Loading Linux" 
     linux (loop)/boot/syslinux/vmlinuz extramod="$linux_drv/Modules;$linux_drv/modsavedat" volume=33 reboot=cold
     echo "Loading initrd"
     initrd (loop)/boot/syslinux/initrd.xz
}

And your Porteus UEFI USB system can boot just about anything. :Yahoo!:

I'll have to try it with a Nemesis iso.
Ed

Post Reply