LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch
User Name
Password
Arch This Forum is for the discussion of Arch Linux.

Notices


Reply
  Search this Thread
Old 09-05-2015, 03:34 AM   #1
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Rep: Reputation: 15
Detect via Terminal if BIOS can be emulated


Hi!
On several distros
Code:
sudo dmidecode -t0 | grep -Ei "BIOS boot|UEFI"
gives you, if you have UEFI with CSM, the output:
Code:
		BIOS boot specification is supported
		UEFI is supported
On ARCH based distros?

Edit:
"[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS"
-> only shows (it is not enough)
"BIOS"

Last edited by alfredo10; 09-05-2015 at 03:41 AM. Reason: Addition
 
Old 09-05-2015, 07:50 PM   #2
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Code:
empty@Arch ~ % sudo dmidecode -t0 | grep -Ei "BIOS boot|UEFI"
[sudo] password for empty: 
sudo: dmidecode: command not found
1 empty@Arch ~ % pkgfile dmidecode                                                                                                  :(
extra/dmidecode
empty@Arch ~ % sudo pacman -S dmidecode
resolving dependencies...
looking for conflicting packages...

Package (1)      New Version  Net Change  Download Size

extra/dmidecode  2.12-2         0.16 MiB       0.05 MiB

Total Download Size:   0.05 MiB
Total Installed Size:  0.16 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 dmidecode-2.12-2-x86_64                                 54.9 KiB   914K/s 00:00 [----------------------------------------------] 100%
(1/1) checking keys in keyring                                                   [----------------------------------------------] 100%
(1/1) checking package integrity                                                 [----------------------------------------------] 100%
(1/1) loading package files                                                      [----------------------------------------------] 100%
(1/1) checking for file conflicts                                                [----------------------------------------------] 100%
(1/1) checking available disk space                                              [----------------------------------------------] 100%
(1/1) installing dmidecode                                                       [----------------------------------------------] 100%
empty@Arch ~ % sudo dmidecode -t0 | grep -Ei "BIOS boot|UEFI"
		BIOS boot specification is supported
		UEFI is supported
EDIT: *All* UEFI machines should support "CSM"/"Legacy" mode, at least according to the official UEFI specification.
http://www.uefi.org/specifications

Unfortunately, implementations of this standard are highly variable (to put it politely)...

Last edited by Head_on_a_Stick; 09-05-2015 at 08:05 PM.
 
1 members found this post helpful.
Old 09-07-2015, 03:43 AM   #3
alfredo10
Member
 
Registered: Sep 2010
Location: Algarve
Distribution: Linux Multiboot
Posts: 295

Original Poster
Rep: Reputation: 15
Thank you - solved!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIOS does not detect Drive claudius753 Linux - Hardware 4 12-16-2007 02:45 PM
BIOS and GRUB can't detect hard disk DC_Tsunami Linux - General 1 12-07-2005 03:16 AM
Bios does not detect hard drive. akihandyman Linux - Newbie 5 02-13-2005 06:47 AM
old BIOS (1992) won't detect my cdrom drive; BIOS says: neither IDE prots enabled carbono Linux - Hardware 5 05-18-2004 11:07 AM
How long should i take for a bios to detect ide? PlatinumRik Linux - Hardware 10 05-30-2003 11:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Arch

All times are GMT -5. The time now is 06:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration