You are Here:
Linux Lite 5.0 Final is now available for download and installation



got bored and used the Terminal to see if my desktop PC's are UEFI or BIOS.

Author (Read 924 times)

0 Members and 1 Guest are viewing this topic.

 

kissbaby3

  • Forum Regular
  • ***
  • 138
    Posts
  • Country: us
  • Reputation: 11
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • CPU: 1.4 GHz

  • MEMORY: 8Gb

  • VIDEO CARD: on board
today i was just surfing google and wondered to my self, just for fun, if my desktop PC's are either UEFI or BIOS , found this to copy and paste int toe terminal , without the quotes

"  /sys/firmware/efi "

if a desktop PC is NOT UEFI , it will say something like " bash: /sys/firmware/efi: No such file or directory" , which would mean that both of my desktop PC's are bios.

am i right ?. just asking to make sure, i know how to get into and look another way , just wanted a quicker way to tell, ha ha . i like playing with the linux terminal ......

hugs
 


 

Moltke

  • Gold Level Poster
  • *******
  • 726
    Posts
  • Country: ve
  • Reputation: 89
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 4.x
today i was just surfing google and wondered to my self, just for fun, if my desktop PC's are either UEFI or BIOS , found this to copy and paste int toe terminal , without the quotes

"  /sys/firmware/efi "

if a desktop PC is NOT UEFI , it will say something like " bash: /sys/firmware/efi: No such file or directory" , which would mean that both of my desktop PC's are bios.

am i right ?. just asking to make sure, i know how to get into and look another way , just wanted a quicker way to tell, ha ha . i like playing with the linux terminal ......

hugs

Running that command in my laptop gives the same result but then this is a UEFI system. As reported by inxi:
Code: [Select]
inxi -Mx
Machine:   Type: Laptop System: Hewlett-Packard product: HP 2000 Notebook PC v: 0888110003305910000620100
           serial: <root required>
           Mobo: Hewlett-Packard model: 188B v: KBC Version 69.17 serial: <root required> UEFI [Legacy]: Insyde v: F.34
           date: 05/22/2013
But
Code: [Select]
sys/firmware/efi
bash: /sys/firmware/efi: No such file or directory
If I understand it right the /sys/firmware/efi command only tells you whether your system/pc is booting in UEFI or BIOS mode, the laptop is configured to boot in Legacy mode - BIOS -  cause I find it more easy but it had Windows 10 in UEFI mode only.  So, maybe your PCs are UEFI but they're configured to boot from BIOS since your systems can either boot from BIOS or both UEFI and BIOS. I might be wrong though. Maybe someone like @trinidad or @Jerry can provide a better answer cause I honestly am quite confused now lol
Without each others help there ain't no hope for us :)
 

 

DeepThought

  • Forum Regular
  • ***
  • 237
    Posts
  • Country: wales
  • Reputation: 40
  • Linux Lite Member
    • WKDfm Radio | WKDfm Chat

  • Linux Lite: 5.0 64bit

  • CPU: AMD Turion(tm) 64 x 2 Mobile Technology TL-60

  • MEMORY: 4Gb

  • VIDEO CARD: ATI RS480

  • Kernel: 5.x
The command is actually:

Code: [Select]
ls /sys/firmware/efi/
Quote
The easiest way to find out if you are running UEFI or BIOS is to look for a folder /sys/firmware/efi. The folder will be missing if your system is using BIOS

source: https://itsfoss.com/check-uefi-or-bios/
Owner and DJ at WKDfm Radio ( www.wkdfm.co.uk )
 

 

Moltke

  • Gold Level Poster
  • *******
  • 726
    Posts
  • Country: ve
  • Reputation: 89
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 4.x
The command is actually:

Code: [Select]
ls /sys/firmware/efi/
Quote
The easiest way to find out if you are running UEFI or BIOS is to look for a folder /sys/firmware/efi. The folder will be missing if your system is using BIOS

source: https://itsfoss.com/check-uefi-or-bios/

Still same result: No such file or directory.
Without each others help there ain't no hope for us :)
 

 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1416
    Posts
  • Country: us
  • Reputation: 255
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
The command is actually:

Code: [Select]
ls /sys/firmware/efi/


Still same result:
 No such file or directory.



@Moltke


More than likely you have - BIOS -- not UEFI hense it cannot find a efi folder :)
LL 4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL 4.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL 4.6 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL 3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express
RETIRED LL 2.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA
Running Linux Lite since LL2.2
 

 

Moltke

  • Gold Level Poster
  • *******
  • 726
    Posts
  • Country: ve
  • Reputation: 89
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 4.x
The command is actually:

Code: [Select]
ls /sys/firmware/efi/


Still same result:
 No such file or directory.



@Moltke


More than likely you have - BIOS -- not UEFI hense it cannot find a efi folder :)

The laptop boots in LEGACY BIOS mode, yes, but it is UEFI. I've seen the UEFI bios console a couple of times.  In the inxi output reads:
Code: [Select]
UEFI [Legacy]: Insyde v: F.34
And
Quote
Insyde Software is leading worldwide provider of UEFI firmware
https://www.insyde.com/ When this laptop had W10 and a HDD I formatted to install W7 for it previous owner, who gave it to me as a payment for a job few months back. And I had a hard time because I didn't know it was UEFI,  it was the first time I dealt with that and had to read a bit and learn how to; enabling legacy mode in the settings, thus it could boot from the USB and install W7. So yes, it is UEFI. Like I said before, if I understand correctly, running
Code: [Select]
ls /sys/firmware/efi/ or
Code: [Select]
sudo efibootmgr only tells whether your current Operating system is booting in UEFI or LEGACY mode not if the machine, the motherboard, the chip has a LEGACY or UEFI firmware which are two whole different things.

Also, running
Code: [Select]
sudo dmidecode -t bios -q | grep UEFI
Gives
Code: [Select]
UEFI is supported
So again, yes, looks like indeed, it is UEFI. :)
Without each others help there ain't no hope for us :)
 

 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1416
    Posts
  • Country: us
  • Reputation: 255
  • Linux Lite Member

  • Linux Lite: 4.8 64bit

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
Yes... I should have added -- the current OS installed -- not whether its supported..
You installed the BIOS version - no efi folder..
Does not represent if UEFI is supported or not...


The other commands as you post would..  ;)
LL 4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL 4.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL 4.6 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL 3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express
RETIRED LL 2.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA
Running Linux Lite since LL2.2
 

 

Moltke

  • Gold Level Poster
  • *******
  • 726
    Posts
  • Country: ve
  • Reputation: 89
  • Linux Lite Member

  • Linux Lite: 3.8 64bit

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 4.x
Yes... I should have added -- the current OS installed -- not whether its supported..
You installed the BIOS version - no efi folder..
Does not represent if UEFI is supported or not...


The other commands as you post would..  ;)

Yes, that's what I thought. I was at first confused but then I remembered all that problem I went throught with W10. I found this article https://www.pcsuggest.com/check-bios-uefi-motherboard-info-in-linux/ which among other things states that
Quote
Note: The above method (ls /sys/firmware/efi or efibootmgr) works only if the system is booted from a UEFI bootable media, else it behaves like an older legacy BIOS system.

Learnt a few new things :)
Without each others help there ain't no hope for us :)
 

 

kissbaby3

  • Forum Regular
  • ***
  • 138
    Posts
  • Country: us
  • Reputation: 11
  • Linux Lite Member

  • Linux Lite: 4.2 64bit

  • CPU: 1.4 GHz

  • MEMORY: 8Gb

  • VIDEO CARD: on board
this was fun, i learned a few things , thanks every one . if you want to close this , its ok to do so , but maybe one should keep this post of mine open, just for fun..........
 


 


Linux Lite 5.0 Final is now available for download and installation