How to boot Porteus from UEFI computer?

Post here if you are a new Porteus member and you're looking for some help.
benjibasson
Samurai
Samurai
Posts: 173
Joined: 06 Mar 2019, 15:14
Distribution: Arch linux

How to boot Porteus from UEFI computer?

Post#1 by benjibasson » 08 Aug 2024, 16:24

Hi, I would like to boot Porteus usb drive from any uefi computer
So I extract iso to the usb drive sdb2 in fat32 -> fine
I checked it copied the EFI boot and porteus into it: fine
I ran /boot/Porteus-installer-for-linux fine.
I reboot from the linux computer with legacy bios ( 2007 laptop) fine

Reboot and choose the new stick from the Microsoft Surface pro 4: it fail and boot to the windows 10 instead of booting to Porteus menu even if I disable secure boot.

Same problem with asus tablet with windows 8 pro.

If I try unetbootin Ubuntu 22.04 from Surface pro 4 I got the Ubuntu menu and it boot fine.

What Am I suppose to to to boot Porteus to UEFI computer and Microsoft tablets?


Cheers

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

How to boot Porteus from UEFI computer?

Post#2 by Ed_P » 08 Aug 2024, 18:37

When booting can you press F8 or some other key to give you a boot menu?

nanZor
Shogun
Shogun
Posts: 391
Joined: 09 Apr 2019, 03:27
Distribution: Porteus 5.01 x86-64 LXQT

How to boot Porteus from UEFI computer?

Post#3 by nanZor » 08 Aug 2024, 23:20

Are you sure that you are running /boot/Porteus-installer-for-linux *from the physical target drive*, and not from inside the extracted iso itself?

Just a guess since I've become impatient and done that before.
That's a UNIX book - cool. -Garth

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 4073
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

How to boot Porteus from UEFI computer?

Post#4 by ncmprhnsbl » 09 Aug 2024, 02:29

note: Porteus-installer-for-linux.com does nothing in the case of UEFI booting, it's only for legacy bios/MBR. (running it won't cause any problem though)
what is on the first partition of the usb stick, ie. sdb1?
benjibasson wrote:
08 Aug 2024, 16:24
and choose the new stick
are you choosing the correct partition? generally the device chooser identifies and mentions UEFI in it's entries.
it may also help to set the 'boot' and 'esp' flags on sdb2 (see 'manage flags' part of gparted)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

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

How to boot Porteus from UEFI computer?

Post#5 by Ed_P » 09 Aug 2024, 05:58

Some notes from a script I use to create bootable USB drives:

Code: Select all

## Run GParted to partition & format the USB drive with a msdos Partition table.  ##
##  Use GParted's View > Device Information to check Partition Table type.        ##
##  Use GParted's Device > Create Partition Table if Partition Table shows as GPT.##
## Or under Windows use:                                                          ##
## > diskpart          * Run Command Prompt with Admin Rights.                    ##
## > list disk                                                                    ##
## >....                                                                          ##
## > select disk 1     * Note: disk nbr is the nbr of the USB disk                ##
## > clean                                                                        ##
## > create partition primary                                                     ##
## > exit                                                                         ##

Mel1974
White ninja
White ninja
Posts: 13
Joined: 02 Aug 2017, 16:09
Distribution: porteus mate 3.2.2

How to boot Porteus from UEFI computer?

Post#6 by Mel1974 » 15 Aug 2024, 14:13

benjibasson wrote:
08 Aug 2024, 16:24
Hi, I would like to boot Porteus usb drive from any uefi computer
So I extract iso to the usb drive sdb2 in fat32 -> fine
I checked it copied the EFI boot and porteus into it: fine
I ran /boot/Porteus-installer-for-linux fine.
I reboot from the linux computer with legacy bios ( 2007 laptop) fine

Reboot and choose the new stick from the Microsoft Surface pro 4: it fail and boot to the windows 10 instead of booting to Porteus menu even if I disable secure boot.

Same problem with asus tablet with windows 8 pro.

If I try unetbootin Ubuntu 22.04 from Surface pro 4 I got the Ubuntu menu and it boot fine.

What Am I suppose to to to boot Porteus to UEFI computer and Microsoft tablets?


Cheers
Try adding the EFI/BOOT/bootx64.efi file to the root of your USB drive and rename it to EFI/BOOT/boot.efi. This should allow UEFI systems to boot from the USB drive.

Also, make sure the USB drive is formatted as FAT32 and the boot flag is set.

Post Reply