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.

194 lines
7.3 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>🔁 Migrate from UEFI to (Legacy) 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="Migrate from UEFI to (Legacy) BIOS" />
  12. <meta property="og:description" content="Migrating Grub from a UEFI system to a BIOS (legacy) system The general steps are : Boot the computer using a live boot image - Eg. System Rescue Image Mount the root filesystem Bind mount /dev , /sy" />
  13. <meta property="og:image" content="" />
  14. <meta property="og:url" content="https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS" />
  15. <meta property="og:type" content="website" />
  16. <meta name="twitter:title" content="Migrate from UEFI to (Legacy) BIOS" />
  17. <meta name="twitter:description" content="Migrating Grub from a UEFI system to a BIOS (legacy) system The general steps are : Boot the computer using a live boot image - Eg. System Rescue Image Mount the root filesystem Bind mount /dev , /sy" />
  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="Migrate from UEFI to (Legacy) 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">🔁 Migrate from UEFI to (Legacy) 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>4 versions</span>
  43. </span>
  44. </div>
  45. </div>
  46. <div class="view">
  47. <p dir="auto">Migrating Grub from a UEFI system to a BIOS (legacy) system &#x1f501;</p>
  48. <p dir="auto">The general steps are:</p>
  49. <ul dir="auto">
  50. <li><input type="checkbox" disabled="" > Boot the computer using a live boot image - Eg. <a href="https://www.system-rescue.org/">System Rescue Image</a></li>
  51. <li><input type="checkbox" disabled="" > Mount the root filesystem<sup id="fnref:1"><a href="#fn:1" class="footnote-ref" role="doc-noteref">1</a></sup></li>
  52. <li><input type="checkbox" disabled="" > Bind mount <code>/dev</code>, <code>/sys</code>, <code>/proc</code> and <code>/run</code><sup id="fnref:2"><a href="#fn:2" class="footnote-ref" role="doc-noteref">2</a></sup></li>
  53. <li><input type="checkbox" disabled="" > Change your EFI boot partition to <code>EF02 BIOS boot partition</code><sup id="fnref:3"><a href="#fn:3" class="footnote-ref" role="doc-noteref">3</a></sup></li>
  54. <li><input type="checkbox" disabled="" > Chroot into the mounted file-system</li>
  55. <li><input type="checkbox" disabled="" > Re-install Grub <sup id="fnref:4"><a href="#fn:4" class="footnote-ref" role="doc-noteref">4</a></sup></li>
  56. </ul>
  57. <p dir="auto">Here is someone who has documented this process in good detail:</p>
  58. <div class="card my-5"> <header class="card-header"> <p class="card-header-title"> <strong><a href="https://logan.tw/posts/2015/05/17/grub-install-and-btrfs-root-file-system/">Grub Install and Btrfs Root File System | Logan&#39;s Note</a></strong> </p> </header> <div class="card-footer"> <a class="card-footer-item" href="https://logan.tw/posts/2015/05/17/grub-install-and-btrfs-root-file-system/">https://logan.tw/posts/2015/05/17/grub-install-and-btrfs-root-file-system/</a> </div></div>
  59. <p dir="auto"><a href="/+/tag/grub" class="tag is-info is-light">#grub</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/uefi" class="tag is-info is-light">#uefi</a></p>
  60. <div class="footnotes" role="doc-endnotes">
  61. <hr>
  62. <ol>
  63. <li id="fn:1">
  64. <p dir="auto"><a href="/Mounting%20BTRFS%20subvolumes">Mounting BTRFS subvolumes</a> needs an extra option&#160;<a href="#fnref:1" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
  65. </li>
  66. <li id="fn:2">
  67. <p dir="auto"><code>for f in dev sys proc run; do mount --bind /$f /mnt/$f; done</code>&#160;<a href="#fnref:2" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
  68. </li>
  69. <li id="fn:3">
  70. <p dir="auto">Remember to use <code>gdisk</code> if you have a GPT partition table. The BIOS boot partition code is <strong><code>EF02</code></strong>&#160;<a href="#fnref:3" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
  71. </li>
  72. <li id="fn:4">
  73. <p dir="auto"><code>grub-install /dev/sda</code>&#160;<a href="#fnref:4" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
  74. </li>
  75. </ol>
  76. </div>
  77. <h1> See Also </h1>
  78. <ul>
  79. <li>
  80. <a href="/Detect%20UEFI%20or%20BIOS" dir="auto">👢 Detect UEFI or BIOS</a> <time class="has-text-grey is-size-7">Tuesday 28 February 2023</time>
  81. </li>
  82. </ul>
  83. </div>
  84. </div>
  85. <footer class="mt-6 p-3 py-5">
  86. <hr/>
  87. <nav class="breadcrumb has-bullet-separator">
  88. <ul>
  89. <li>
  90. <a href="/&#43;/tags" class="icon-text has-text-grey-dark">
  91. <span class="icon">
  92. <i class="fa-solid fa-tags"></i>
  93. </span>
  94. <span>Hashtags</span>
  95. </a>
  96. </li>
  97. <li>
  98. <a href="/&#43;/recent" class="icon-text has-text-grey-dark">
  99. <span class="icon">
  100. <i class="fa-solid fa-clock-rotate-left"></i>
  101. </span>
  102. <span>Recent</span>
  103. </a>
  104. </li>
  105. <li>
  106. <a href="/&#43;/feed.rss" class="icon-text has-text-grey-dark">
  107. <span class="icon">
  108. <i class="fa-solid fa-rss"></i>
  109. </span>
  110. <span>RSS</span>
  111. </a>
  112. </li>
  113. <li>
  114. <a href="/Home" class="icon-text has-text-grey-dark">
  115. <span class="icon">
  116. 🏡
  117. </span>
  118. <span>Home</span>
  119. </a>
  120. </li>
  121. </ul>
  122. </nav>
  123. </footer>
  124. </div>
  125. </body>
  126. </html>