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

<!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>🔁 Migrate from UEFI to (Legacy) BIOS | Hacks.Wiki - A wikiful of hacks</title>
<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">
<meta property="og:site_name" content="Hacks.Wiki - A wikiful of hacks" />
<meta property="og:title" content="Migrate from UEFI to (Legacy) BIOS" />
<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" />
<meta property="og:image" content="" />
<meta property="og:url" content="https://hacks.wiki/Migrate%20from%20UEFI%20to%20%28Legacy%29%20BIOS" />
<meta property="og:type" content="website" />
<meta name="twitter:title" content="Migrate from UEFI to (Legacy) BIOS" />
<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" />
<meta name="twitter:image" content="" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="abhasabhinav" />
<meta name="twitter:site" content="abhasabhinav" />
<meta name="twitter:image:alt" content="Migrate from UEFI to (Legacy) 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 - A wikiful of hacks</span>
</a>
</div>
</div>
<div dir="auto" class="title is-1 has-text-weight-bold">🔁 Migrate from UEFI to (Legacy) 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>4 versions</span>
</span>
</div>
</div>
<div class="view">
<p dir="auto">Migrating Grub from a UEFI system to a BIOS (legacy) system &#x1f501;</p>
<p dir="auto">The general steps are:</p>
<ul dir="auto">
<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>
<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>
<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>
<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>
<li><input type="checkbox" disabled="" > Chroot into the mounted file-system</li>
<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>
</ul>
<p dir="auto">Here is someone who has documented this process in good detail:</p>
<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>
<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>
<div class="footnotes" role="doc-endnotes">
<hr>
<ol>
<li id="fn:1">
<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>
</li>
<li id="fn:2">
<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>
</li>
<li id="fn:3">
<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>
</li>
<li id="fn:4">
<p dir="auto"><code>grub-install /dev/sda</code>&#160;<a href="#fnref:4" class="footnote-backref" role="doc-backlink">&#x21a9;&#xfe0e;</a></p>
</li>
</ol>
</div>
<h1> See Also </h1>
<ul>
<li>
<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>
</li>
</ul>
</div>
</div>
<footer class="mt-6 p-3 py-5">
<hr/>
<nav class="breadcrumb has-bullet-separator">
<ul>
<li>
<a href="/&#43;/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="/&#43;/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="/&#43;/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>