Is UEFI the preferred bootloader?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
cobaka
Posts: 572
Joined: Thu Jul 16, 2020 6:04 am
Location: Central Coast, NSW - au
Has thanked: 94 times
Been thanked: 63 times

Is UEFI the preferred bootloader?

Post by cobaka »

Hello all:

I wish to experiment/install Puppy Linux using UEFI.
Until now I always used the Grub4DOS bootloader.

The present bootloader (on this PC) is GRUB4DOS (because I used it).
I read that I can tell if my PC has UEFI (I think it probably does) by searching for a file, "efi". Do I have it? Yes, I have it!

Code: Select all

# cd /
# find -iname 'efi'
./etc/file/magic/efi
./initrd/pup_ro2/etc/file/magic/efi
./initrd/pup_z/lib/modules/5.15.80/kernel/drivers/firmware/efi
./lib/modules/5.15.80/kernel/drivers/firmware/efi
# 

My question: Is the preferred boot-loader for this PC UEFI?
If I installed this OS using GRUB4DOS why does this file exist?
Another Q: if the file 'efi' exists, is UEFI the preferred bootloader?

Thanks to all and a hearty "woof"!
cobaka

Last edited by cobaka on Sun Jul 30, 2023 8:33 am, edited 1 time in total.

собака --> это Русский --> a dog
"c" -- say "s" - as in "see" or "scent" or "sob".

User avatar
bigpup
Moderator
Posts: 6985
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 906 times
Been thanked: 1522 times

Re: Is UEFI the preferred bootloader?

Post by bigpup »

First UEFI is the type of firmware that is being used to access the hardware as the computer boots.

Bios is the older type firmware.

They both do the same thing, but have different built in abilities.

UEFI provide more features. Well it does, but Puppy really does not need them.
The biggest feature is secure boot enabled and ability to support it.

When computer boots.

You press the power button on your laptop/desktop.
The CPU starts up, but needs some instructions to work on (remember, the CPU always needs to do something).
Since the main memory is empty at this stage, CPU defers to load instructions from the firmware chip on the motherboard and begins executing instructions.

The firmware code does a Power On Self Test (POST), initializes the remaining hardware, detects the connected peripherals (mouse, keyboard, pendrive etc.) and checks if all connected devices are healthy.
You might remember it as a 'beep' that desktops used to make after POST is successful.
Finally, the firmware code cycles through all storage devices and looks for a boot-loader (usually located in first sector of a disk).
If the boot-loader is found, then the firmware hands over control of the computer to it.

This is good info on differences of bios and UEFI firmware
https://www.freecodecamp.org/news/uefi-vs-bios/

To fully support all the features of UEFI you need a boot loader that provides that.

Grub2 boot loader does

If you are using Grub4dos as the boot loader.
It works OK with UEFI as long as you have secure boot disabled and/or the UEFI set to legacy or CSM mode.

I have computers with UEFI setup in normal operation, booting with Grub2 and secure boot enabled.
Must also install Puppy security key on the computer.

As far as what you see happen, as the computer boots, and Puppy Linux reaches a working desktop.
Both setups look the same as they boot.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
wizard
Posts: 1973
Joined: Sun Aug 09, 2020 7:50 pm
Has thanked: 2635 times
Been thanked: 686 times

Re: Is UEFI the preferred bootloader?

Post by wizard »

@cobaka

The files you found only relate to your Puppy OS and not to your computers bios/setup capabilites. If you're currently booting with Grub4dos, then the computer is set for BIOS/Legacy booting.

To find if your computer is UEFI capable, you'll need to boot into bios/setup and look for a UEFI setting. CAUTION: if you enable that, your current Puppy install won't boot.

Your questions:
Is the preferred boot-loader for this PC UEFI? No, the boot method is your choice (& only if UEFI is available)
If I installed this OS using GRUB4DOS why does this file exist? In case needed for a UEFI enabled system
Another Q: if the file 'efi' exists, is UEFI the preferred bootloader? No, it's your choice

wizard

Big pile of OLD computers

Post Reply

Return to “Users”