A Wikiful of Hacks: Hacks.Wiki is an experiment to organise quick hacks, notes, bookmarks and tools into an easy-to-build-and-maintain “Digital Garden”.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

223 lines
17 KiB

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  6. <link rel="icon" href="/public/logo.png">
  7. <link rel="stylesheet" href="/public/style.css">
  8. <title>👢 Detect UEFI or BIOS | Hacks.Wiki - A wikiful of hacks</title>
  9. <link href="/+/feed.rss" rel="alternate" title="Hacks.Wiki - A wikiful of hacks" 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">
  10. <meta property="og:site_name" content="Hacks.Wiki - A wikiful of hacks" />
  11. <meta property="og:title" content="Detect UEFI or BIOS" />
  12. <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" />
  13. <meta property="og:image" content="" />
  14. <meta property="og:url" content="https://hacks.wiki/Detect%20UEFI%20or%20BIOS" />
  15. <meta property="og:type" content="website" />
  16. <meta name="twitter:title" content="Detect UEFI or BIOS" />
  17. <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" />
  18. <meta name="twitter:image" content="" />
  19. <meta name="twitter:card" content="summary_large_image" />
  20. <meta name="twitter:creator" content="abhasabhinav" />
  21. <meta name="twitter:site" content="abhasabhinav" />
  22. <meta name="twitter:image:alt" content="Detect UEFI or BIOS" />
  23. </head>
  24. <body>
  25. <div class="container is-max-desktop px-3" dir="auto" style="margin-bottom: 50vh;">
  26. <div class="columns pt-5">
  27. <div class="column">
  28. <a class="icon-text title is-5 pt-2" href="/">
  29. <span class="icon"><img alt="logo" src="/public/logo.png"/></span>
  30. <span>Hacks.Wiki - A wikiful of hacks</span>
  31. </a>
  32. </div>
  33. </div>
  34. <div dir="auto" class="title is-1 has-text-weight-bold">👢 Detect UEFI or BIOS</div>
  35. <div class="content">
  36. <div class="columns subtitle is-size-7">
  37. <div class="column">
  38. <span class="icon-text">
  39. <span class="icon"> <i class="fa-solid fa-clock"></i> </span>
  40. <span>Tuesday 28 February 2023</span>
  41. <span class="icon"> <i class="fa-solid fa-code-branch"></i> </span>
  42. <span>5 versions</span>
  43. </span>
  44. </div>
  45. </div>
  46. <div class="view">
  47. <p dir="auto">Here is how you can detect if you&rsquo;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>
  48. <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
  49. </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>
  50. <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 &gt; /dev/null <span style="color:#ff79c6">&amp;&amp;</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
  51. </span></span></code></pre><p dir="auto">On a (Legacy) BIOS system you would see:</p>
  52. <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>
  53. </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>
  54. </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.
  55. </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.
  56. </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>
  57. </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
  58. </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
  59. </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
  60. </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>
  61. </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
  62. </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
  63. </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:
  64. </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
  65. </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
  66. </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
  67. </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
  68. </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
  69. </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
  70. </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
  71. </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
  72. </span></span></code></pre><p dir="auto">On a UEFI system you would see:</p>
  73. <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>
  74. </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>
  75. </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.
  76. </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.
  77. </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>
  78. </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
  79. </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
  80. </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.
  81. </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>
  82. </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
  83. </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
  84. </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
  85. </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
  86. </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:
  87. </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
  88. </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
  89. </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
  90. </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
  91. </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
  92. </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
  93. </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
  94. </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
  95. </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>
  96. </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>
  97. </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>
  98. </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>
  99. </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
  100. </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
  101. </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
  102. </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
  103. </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
  104. </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
  105. </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> &#x1f462;</p>
  106. <h1> See Also </h1>
  107. <ul>
  108. <li>
  109. <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>
  110. </li>
  111. </ul>
  112. </div>
  113. </div>
  114. <footer class="mt-6 p-3 py-5">
  115. <hr/>
  116. <nav class="breadcrumb has-bullet-separator">
  117. <ul>
  118. <li>
  119. <a href="/&#43;/tags" class="icon-text has-text-grey-dark">
  120. <span class="icon">
  121. <i class="fa-solid fa-tags"></i>
  122. </span>
  123. <span>Hashtags</span>
  124. </a>
  125. </li>
  126. <li>
  127. <a href="/&#43;/recent" class="icon-text has-text-grey-dark">
  128. <span class="icon">
  129. <i class="fa-solid fa-clock-rotate-left"></i>
  130. </span>
  131. <span>Recent</span>
  132. </a>
  133. </li>
  134. <li>
  135. <a href="/&#43;/feed.rss" class="icon-text has-text-grey-dark">
  136. <span class="icon">
  137. <i class="fa-solid fa-rss"></i>
  138. </span>
  139. <span>RSS</span>
  140. </a>
  141. </li>
  142. <li>
  143. <a href="/Home" class="icon-text has-text-grey-dark">
  144. <span class="icon">
  145. 🏡
  146. </span>
  147. <span>Home</span>
  148. </a>
  149. </li>
  150. </ul>
  151. </nav>
  152. </footer>
  153. </div>
  154. </body>
  155. </html>