|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
|
|
<link rel="icon" href="/public/logo.png">
|
|
<link rel="stylesheet" href="/public/style.css">
|
|
<title>👢 Detect UEFI or BIOS | Hacks.Wiki - Today I Learned...</title>
|
|
<link href="/+/feed.rss" rel="alternate" title="Hacks.Wiki - Today I Learned..." type="application/rss+xml"><link href='https://hacks.wiki/+/activitypub/@hacks' rel='alternate' type='application/activity+json'><link rel="stylesheet" href="/public/custom.css"><link rel="manifest" href="/manifest.json">
|
|
<meta property="og:site_name" content="Hacks.Wiki - Today I Learned..." />
|
|
<meta property="og:title" content="Detect UEFI or BIOS" />
|
|
<meta property="og:description" content="Here is how you can detect if you ve booted your computer using a UEFI BIOS or a Legacy BIOS. First, install the dmidecode utility from your operating system repository. On Debian, you can : dmidecod" />
|
|
<meta property="og:image" content="" />
|
|
<meta property="og:url" content="https://hacks.wiki/Detect%20UEFI%20or%20BIOS" />
|
|
<meta property="og:type" content="website" />
|
|
|
|
<meta name="twitter:title" content="Detect UEFI or BIOS" />
|
|
<meta name="twitter:description" content="Here is how you can detect if you ve booted your computer using a UEFI BIOS or a Legacy BIOS. First, install the dmidecode utility from your operating system repository. On Debian, you can : dmidecod" />
|
|
<meta name="twitter:image" content="" />
|
|
<meta name="twitter:card" content="summary_large_image" />
|
|
<meta name="twitter:creator" content="" />
|
|
<meta name="twitter:site" content="" />
|
|
<meta name="twitter:image:alt" content="Detect UEFI or BIOS" />
|
|
|
|
</head>
|
|
<body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="container is-max-desktop px-3" dir="auto" style="margin-bottom: 50vh;">
|
|
<div class="columns pt-5">
|
|
<div class="column">
|
|
<a class="icon-text title is-5 pt-2" href="/">
|
|
<span class="icon"><img alt="logo" src="/public/logo.png"/></span>
|
|
<span>Hacks.Wiki - Today I Learned...</span>
|
|
</a>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div dir="auto" class="title is-1 has-text-weight-bold">👢 Detect UEFI or BIOS</div>
|
|
|
|
<div class="content">
|
|
|
|
|
|
<div class="columns subtitle is-size-7">
|
|
|
|
|
|
<div class="column">
|
|
<span class="icon-text">
|
|
|
|
<span class="icon"> <i class="fa-solid fa-clock"></i> </span>
|
|
<span>Tuesday 28 February 2023</span>
|
|
|
|
<span class="icon"> <i class="fa-solid fa-code-branch"></i> </span>
|
|
<span>5 versions</span>
|
|
|
|
</span>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="view">
|
|
|
|
<p dir="auto">Here is how you can detect if you’ve booted your computer using a UEFI BIOS or a Legacy BIOS. First, install the <code>dmidecode</code> utility from your operating system repository. On Debian, you can:</p>
|
|
<pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1</span><span>apt-get install dmidecode
|
|
</span></span></code></pre><p dir="auto"><code>dmidecode</code> reports information related to the BIOS under a <em>type 0</em> entry. A quick way to detect the BIOS mode is:</p>
|
|
<pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">1</span><span>sudo dmidecode -t <span style="color:#bd93f9">0</span> | grep UEFI > /dev/null <span style="color:#ff79c6">&&</span> <span style="color:#8be9fd;font-style:italic">echo</span> UEFI <span style="color:#ff79c6">||</span> <span style="color:#8be9fd;font-style:italic">echo</span> BIOS
|
|
</span></span></code></pre><p dir="auto">On a (Legacy) BIOS system you would see:</p>
|
|
<pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1</span><span>$ sudo dmidecode -t <span style="color:#bd93f9">0</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2</span><span><span style="color:#6272a4"># dmidecode 3.4</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3</span><span>Getting SMBIOS data from sysfs.
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4</span><span>SMBIOS 3.0.0 present.
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5</span><span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6</span><span>Handle 0x0000, DMI <span style="color:#8be9fd;font-style:italic">type</span> 0, <span style="color:#bd93f9">26</span> bytes
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7</span><span>BIOS Information
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8</span><span> Vendor: 3mdeb
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9</span><span> Version: Dasharo <span style="color:#ff79c6">(</span>coreboot+SeaBIOS<span style="color:#ff79c6">)</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10</span><span> Release Date: 08/23/2022
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11</span><span> ROM Size: <span style="color:#bd93f9">12</span> MB
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12</span><span> Characteristics:
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13</span><span> PCI is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14</span><span> PC Card <span style="color:#ff79c6">(</span>PCMCIA<span style="color:#ff79c6">)</span> is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15</span><span> BIOS is upgradeable
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16</span><span> Selectable boot is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17</span><span> ACPI is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18</span><span> Targeted content distribution is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19</span><span> BIOS Revision: 0.0
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20</span><span> Firmware Revision: 0.0
|
|
</span></span></code></pre><p dir="auto">On a UEFI system you would see:</p>
|
|
<pre tabindex="0" style="color:#f8f8f2;background-color:#282a36;"><code><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 1</span><span>$ sudo dmidecode -t <span style="color:#bd93f9">0</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 2</span><span><span style="color:#6272a4"># dmidecode 3.4</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 3</span><span>Getting SMBIOS data from sysfs.
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 4</span><span>SMBIOS 3.1.1 present.
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 5</span><span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 6</span><span>Handle 0x0000, DMI <span style="color:#8be9fd;font-style:italic">type</span> 0, <span style="color:#bd93f9">26</span> bytes
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 7</span><span>BIOS Information
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 8</span><span> Vendor: American Megatrends Inc.
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f"> 9</span><span> Version: <span style="color:#bd93f9">2202</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">10</span><span> Release Date: 07/14/2020
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">11</span><span> Address: 0xF0000
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">12</span><span> Runtime Size: <span style="color:#bd93f9">64</span> kB
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">13</span><span> ROM Size: <span style="color:#bd93f9">16</span> MB
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">14</span><span> Characteristics:
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">15</span><span> PCI is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">16</span><span> APM is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">17</span><span> BIOS is upgradeable
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">18</span><span> BIOS shadowing is allowed
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">19</span><span> Boot from CD is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">20</span><span> Selectable boot is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">21</span><span> BIOS ROM is socketed
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">22</span><span> EDD is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">23</span><span> Print screen service is supported <span style="color:#ff79c6">(</span>int 5h<span style="color:#ff79c6">)</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">24</span><span> <span style="color:#bd93f9">8042</span> keyboard services are supported <span style="color:#ff79c6">(</span>int 9h<span style="color:#ff79c6">)</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">25</span><span> Serial services are supported <span style="color:#ff79c6">(</span>int 14h<span style="color:#ff79c6">)</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">26</span><span> Printer services are supported <span style="color:#ff79c6">(</span>int 17h<span style="color:#ff79c6">)</span>
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">27</span><span> ACPI is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">28</span><span> USB legacy is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">29</span><span> BIOS boot specification is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">30</span><span> Targeted content distribution is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">31</span><span> UEFI is supported
|
|
</span></span><span style="display:flex;"><span style="white-space:pre;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f">32</span><span> BIOS Revision: 5.13
|
|
</span></span></code></pre><p dir="auto"><a href="/+/tag/uefi" class="tag is-info is-light">#uefi</a> <a href="/+/tag/seabios" class="tag is-info is-light">#seabios</a> <a href="/+/tag/coreboot" class="tag is-info is-light">#coreboot</a> <a href="/+/tag/bios" class="tag is-info is-light">#bios</a> 👢</p>
|
|
|
|
|
|
|
|
<h1> See Also </h1>
|
|
<ul>
|
|
|
|
<li>
|
|
<a href="/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS" dir="auto">🔁 Migrate from UEFI to (Legacy) BIOS</a> <time class="has-text-grey is-size-7">Tuesday 28 February 2023</time>
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<footer class="mt-6 p-3 py-5">
|
|
<hr/>
|
|
|
|
<nav class="breadcrumb has-bullet-separator">
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
<a href="/+/tags" class="icon-text has-text-grey-dark">
|
|
<span class="icon">
|
|
|
|
<i class="fa-solid fa-tags"></i>
|
|
</span>
|
|
<span>Hashtags</span>
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a href="/+/recent" class="icon-text has-text-grey-dark">
|
|
<span class="icon">
|
|
|
|
<i class="fa-solid fa-clock-rotate-left"></i>
|
|
</span>
|
|
<span>Recent</span>
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a href="/+/feed.rss" class="icon-text has-text-grey-dark">
|
|
<span class="icon">
|
|
|
|
<i class="fa-solid fa-rss"></i>
|
|
</span>
|
|
<span>RSS</span>
|
|
</a>
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
<a href="/Home" class="icon-text has-text-grey-dark">
|
|
<span class="icon">
|
|
|
|
🏡
|
|
</span>
|
|
<span>Home</span>
|
|
</a>
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
</nav>
|
|
|
|
</footer>
|
|
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|