Files
clear-linux-documentation/tutorials/multi-boot/dual-boot-win.html
2024-11-04 18:48:51 +00:00

502 lines
29 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="en" data-content_root="../../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Dual-boot Clear Linux* OS and Windows* 10 OS &#8212; Documentation for Clear Linux* project</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../_static/bizstyle.css?v=5283bb3d" />
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
<script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
<script src="../../_static/copybutton.js?v=a56c686a"></script>
<script src="../../_static/bizstyle.js"></script>
<link rel="canonical" href="https://clearlinux.github.io/clear-linux-documentation/tutorials/multi-boot/dual-boot-win.html" />
<link rel="icon" href="../../_static/favicon.ico"/>
<link rel="author" title="About these documents" href="../../about.html" />
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
<link rel="next" title="Multi-boot Clear Linux* OS with other operating systems" href="multi-boot.html" />
<link rel="prev" title="Dual-boot Clear Linux* OS with Any GRUB-based Linux* Distro" href="dual-boot-linux.html" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<!--[if lt IE 9]>
<script src="_static/css3-mediaqueries.js"></script>
<![endif]-->
</head><body>
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="multi-boot.html" title="Multi-boot Clear Linux* OS with other operating systems"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="dual-boot-linux.html" title="Dual-boot Clear Linux* OS with Any GRUB-based Linux* Distro"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Documentation for Clear Linux* project</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" accesskey="U">Tutorials</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Dual-boot Clear Linux* OS and Windows* 10 OS</a></li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="dual-boot-cl-attr-and-windows-10-os">
<span id="dual-boot-win"></span><h1>Dual-boot Clear Linux* OS and Windows* 10 OS<a class="headerlink" href="#dual-boot-cl-attr-and-windows-10-os" title="Link to this heading"></a></h1>
<p>This guide shows how to install Clear Linux* OS adjacent to an existing Windows*
10 <abbr title="operating system">OS</abbr>. To add Clear Linux OS to an existing Windows installation, follow a method below.</p>
<p>In this tutorial youll <a class="reference internal" href="../../get-started/bare-metal-install-desktop.html#bare-metal-install-desktop"><span class="std std-ref">Install Clear Linux* OS from the live desktop</span></a> as
an additional partition. Alternatively, you may also
<a class="reference internal" href="../../get-started/bare-metal-install-server.html#bare-metal-install-server"><span class="std std-ref">Install Clear Linux* OS from the live server</span></a>.</p>
<nav class="contents local" id="contents">
<ul class="simple">
<li><p><a class="reference internal" href="#method-1-shrink-windows-partition-and-install-cl" id="id9">Method 1: Shrink Windows partition and install Clear Linux OS</a></p></li>
<li><p><a class="reference internal" href="#method-2-add-another-hard-disk-to-your-system-where-you-installed-windows" id="id10">Method 2: Add another hard disk to your system where you installed Windows</a></p></li>
<li><p><a class="reference internal" href="#advanced-use-systemd-boot-to-boot-windows-10-os-and-cl" id="id11">Advanced: Use systemd-boot to boot Windows 10 OS and Clear Linux OS</a></p></li>
<li><p><a class="reference internal" href="#alternative-install-windows-10-os-after-cl" id="id12">Alternative: Install Windows 10 OS After Clear Linux OS</a></p></li>
<li><p><a class="reference internal" href="#prerequisites" id="id13">Prerequisites</a></p></li>
</ul>
</nav>
<section id="method-1-shrink-windows-partition-and-install-cl">
<h2><a class="toc-backref" href="#id9" role="doc-backlink">Method 1: Shrink Windows partition and install Clear Linux OS</a><a class="headerlink" href="#method-1-shrink-windows-partition-and-install-cl" title="Link to this heading"></a></h2>
<p>For this method, we shrink the Windows 10 OS partition to make space for Clear Linux OS.</p>
<ol class="arabic">
<li><p>Boot up the Windows 10 OS.</p></li>
<li><p>Launch the <code class="file docutils literal notranslate"><span class="pre">Disk</span> <span class="pre">Management</span></code> utility found under
<span class="guilabel">Create and format hard disk partitions</span>.</p></li>
<li><p>Right-click the primary Windows partition and select <span class="guilabel">Shrink Volume…</span>.</p>
<figure class="dropshadow align-default" id="id1">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-01.png"><img alt="Disk Management &gt; Shrink Volume" src="../../_images/dual-boot-win-01.png" style="width: 640.9px; height: 509.15px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 1: Disk Management &gt; Shrink Volume.</span><a class="headerlink" href="#id1" title="Link to this image"></a></p>
</figcaption>
</figure>
</li>
<li><p>Shrink the size of the partition by at least the following amount:</p>
<ul class="simple">
<li><p>For <em>Desktop</em> version, allow at least 21GB.</p></li>
<li><p>For <em>Server</em> version, allow at least 4GB.</p></li>
</ul>
</li>
<li><p>We shrink C by about 21GB, as shown in Figure 2.</p>
<figure class="dropshadow align-default" id="id2">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-02.png"><img alt="Shrink C" src="../../_images/dual-boot-win-02.png" style="width: 384.2px; height: 261.8px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 2: Shrink C.</span><a class="headerlink" href="#id2" title="Link to this image"></a></p>
</figcaption>
</figure>
</li>
<li><p>Shutdown the Windows 10 OS.</p></li>
<li><p>Follow one of these guides to install Clear Linux OS:</p>
<ul class="simple">
<li><p><em>Desktop</em> version: <a class="reference internal" href="../../get-started/bare-metal-install-desktop.html#bare-metal-install-desktop"><span class="std std-ref">Install Clear Linux* OS from the live desktop</span></a></p></li>
<li><p><em>Server</em> version: <a class="reference internal" href="../../get-started/bare-metal-install-server.html#bare-metal-install-server"><span class="std std-ref">Install Clear Linux* OS from the live server</span></a></p></li>
</ul>
<ol class="loweralpha simple">
<li><p>In the <span class="guilabel">Required options</span> tab, choose <span class="guilabel">Select
Installation Media</span>.</p></li>
<li><p>Within that menu, select <span class="guilabel">Safe Installation</span>.</p></li>
<li><p>Go through remaining steps to complete the installation.</p></li>
<li><p>Reboot.</p></li>
</ol>
</li>
<li><p>During the BIOS POST stage, press <kbd class="kbd docutils literal notranslate">F10</kbd>, or the proper F-key for your
system, to launch the <span class="guilabel">Boot Menu</span>.</p>
<figure class="dropshadow align-default" id="id3">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-03.png"><img alt="Boot menu" src="../../_images/dual-boot-win-03.png" style="width: 633.25px; height: 425.0px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 3: Boot menu</span><a class="headerlink" href="#id3" title="Link to this image"></a></p>
</figcaption>
</figure>
</li>
<li><p>In the <span class="guilabel">Boot Menu</span>, use the arrow to select the
<span class="guilabel">OS bootloader</span> as boot device (highlighted).</p>
<p>Some BIOSes do not support listing multiple partitions. In this case,
it will only show one bootable partition.</p>
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>If you dont want to use the BIOS boot menu each time to select an OS,
follow <a class="reference internal" href="#advanced-systemd-boot"><span class="std std-ref">Advanced: Use systemd-boot to boot Windows 10 OS and
|CL|</span></a>.</p>
</div>
</li>
</ol>
</section>
<section id="method-2-add-another-hard-disk-to-your-system-where-you-installed-windows">
<h2><a class="toc-backref" href="#id10" role="doc-backlink">Method 2: Add another hard disk to your system where you installed Windows</a><a class="headerlink" href="#method-2-add-another-hard-disk-to-your-system-where-you-installed-windows" title="Link to this heading"></a></h2>
<ol class="arabic">
<li><p>Shutdown your system.</p></li>
<li><p>Open your system and attach another hard drive.</p></li>
<li><p>Power up your system.</p></li>
<li><p>Follow one of these guides to install Clear Linux OS:</p>
<ul class="simple">
<li><p><em>Desktop</em> version: <a class="reference internal" href="../../get-started/bare-metal-install-desktop.html#bare-metal-install-desktop"><span class="std std-ref">Install Clear Linux* OS from the live desktop</span></a></p></li>
<li><p><em>Server</em> version: <a class="reference internal" href="../../get-started/bare-metal-install-server.html#bare-metal-install-server"><span class="std std-ref">Install Clear Linux* OS from the live server</span></a></p></li>
</ul>
<ol class="loweralpha">
<li><p>In the <span class="guilabel">Required options</span> tab, choose <span class="guilabel">Select
Installation Media</span>.</p></li>
<li><p>Within that menu, select <span class="guilabel">Destructive Installation</span>, and
select the new hard drive from the device list.</p>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>Make sure you dont select the drive with your Windows 10 OS.</p>
</div>
</li>
</ol>
<blockquote>
<div><ol class="arabic simple">
<li><p>Go through remaining steps to complete the installation.</p></li>
<li><p>Reboot.</p></li>
</ol>
</div></blockquote>
</li>
<li><p>During the BIOS POST stage, press <kbd class="kbd docutils literal notranslate">F10</kbd>, or the proper F-key for your
system, to launch the <span class="guilabel">Boot Menu</span>.</p>
<figure class="dropshadow align-default" id="id4">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-03.png"><img alt="Boot menu" src="../../_images/dual-boot-win-03.png" style="width: 633.25px; height: 425.0px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 4: Boot menu</span><a class="headerlink" href="#id4" title="Link to this image"></a></p>
</figcaption>
</figure>
</li>
<li><p>In the <span class="guilabel">Boot Menu</span>, use the arrow to select the
<span class="guilabel">Linux bootloader</span> as boot device.</p>
<p>Some BIOSes do not support listing multiple partitions. In this case,
it will only show one bootable partition.</p>
</li>
</ol>
<div class="admonition tip">
<p class="admonition-title">Tip</p>
<p>If you dont want to use the BIOS boot menu each time to select an OS,
follow the next section.</p>
</div>
</section>
<section id="advanced-use-systemd-boot-to-boot-windows-10-os-and-cl">
<span id="advanced-systemd-boot"></span><h2><a class="toc-backref" href="#id11" role="doc-backlink">Advanced: Use systemd-boot to boot Windows 10 OS and Clear Linux OS</a><a class="headerlink" href="#advanced-use-systemd-boot-to-boot-windows-10-os-and-cl" title="Link to this heading"></a></h2>
<p>If you prefer not to use your BIOS to load the <span class="guilabel">Boot Menu</span> and select an OS to boot, you can make <strong class="command">systemd-boot</strong> the default bootloader and add Windows 10 OS to the boot list. This option is also a workaround for BIOSes that dont support booting more than one partition.</p>
<ol class="arabic">
<li><p>Boot up a Clear Linux OS live image from a USB thumb drive.</p></li>
<li><p>Open a terminal window and enter:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>lsblk<span class="w"> </span>-po<span class="w"> </span>NAME,SIZE,TYPE,FSTYPE,PARTLABEL
</pre></div>
</div>
<p>Example output:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">clrlinux@clr-live~ $ </span>lsblk<span class="w"> </span>-po<span class="w"> </span>NAME,SIZE,TYPE,FSTYPE,PARTLABEL
<span class="go">NAME SIZE TYPE FSTYPE PARTLABEL</span>
<span class="go">/dev/loop0 2.3G loop squashfs</span>
<span class="go">/dev/sda 335.4G disk</span>
<span class="go">├─/dev/sda1 450M part ntfs Basic data partition</span>
<span class="hll"><span class="go">├─/dev/sda2 100M part vfat EFI system partition</span>
</span><span class="go">├─/dev/sda3 16M part Microsoft reserved partition</span>
<span class="hll"><span class="go">├─/dev/sda4 286G part ntfs Basic data partition</span>
</span><span class="hll"><span class="go">├─/dev/sda5 143M part vfat EFI</span>
</span><span class="go">├─/dev/sda6 244M part swap linux-swap</span>
<span class="hll"><span class="go">└─/dev/sda7 48.5G part ext4 /</span>
</span><span class="go">sdb 7G disk iso9660</span>
<span class="go">├─/dev/sdb1 2.7G part iso9660</span>
<span class="go">└─/dev/sdb2 100M part vfat</span>
</pre></div>
</div>
<p>The example output shows:</p>
<ul class="simple">
<li><p>/dev/sda2 is the EFI system partition created by Windows 10 OS</p></li>
<li><p>/dev/sda4 is the primary Windows partition</p></li>
<li><p>/dev/sda5 is the EFI system partition created by Clear Linux OS</p></li>
<li><p>/dev/sda7 is the Clear Linux OS root partition</p></li>
</ul>
</li>
</ol>
<blockquote>
<div><div class="admonition note">
<p class="admonition-title">Note</p>
<p>To help narrow down a partition even more, you add the <code class="docutils literal notranslate"><span class="pre">PARTTYPE</span></code>
option to <strong class="command">lsblk</strong> and cross-reference against the
<a class="reference external" href="https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs">partition type GUIDs wiki</a>.</p>
</div>
</div></blockquote>
<ol class="arabic">
<li><p>Create mount points.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mkdir<span class="w"> </span>/mnt/windows-efi
sudo<span class="w"> </span>mkdir<span class="w"> </span>/mnt/clearlinux
</pre></div>
</div>
</li>
<li><p>Mount the EFI system partition for Windows 10 OS.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mount<span class="w"> </span>/dev/sda2<span class="w"> </span>/mnt/windows-efi
</pre></div>
</div>
</li>
<li><p>Mount the Clear Linux OS root partition and its EFI system partition.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mount<span class="w"> </span>/dev/sda7<span class="w"> </span>/mnt/clearlinux
sudo<span class="w"> </span>mount<span class="w"> </span>/dev/sda5<span class="w"> </span>/mnt/clearlinux/boot
</pre></div>
</div>
</li>
<li><p>Copy Windows 10 OS bootloader, and other data needed to boot it, to the
Clear Linux OS EFI system partition.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>cp<span class="w"> </span>-r<span class="w"> </span>/mnt/windows-efi/EFI/Microsoft/<span class="w"> </span>/mnt/clearlinux/boot/EFI/
</pre></div>
</div>
</li>
<li><p>Make <strong class="command">systemd-boot</strong> the default bootloader and add Windows 10
OS Boot Manager.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>bootctl<span class="w"> </span>install<span class="w"> </span>--esp-path<span class="o">=</span>/mnt/clearlinux/boot
</pre></div>
</div>
</li>
<li><p>Add a timeout value to the <strong class="command">systemd-boot</strong>. This allows enough
time for you to select your preferred OS from the menu.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>clr-boot-manager<span class="w"> </span>set-timeout<span class="w"> </span><span class="m">20</span><span class="w"> </span>--path<span class="o">=</span>/mnt/clearlinux
</pre></div>
</div>
</li>
<li><p>Umount all partitions.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>umount<span class="w"> </span>/mnt/windows-efi<span class="w"> </span>/mnt/clearlinux/boot<span class="w"> </span>/mnt/clearlinux
</pre></div>
</div>
</li>
<li><p>Reboot</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>reboot
</pre></div>
</div>
</li>
<li><p>Remove the Clear Linux OS installer USB thumb drive.</p></li>
<li><p>You should be presented with the <strong class="command">systemd-boot</strong> menu, as shown
below.</p>
<figure class="dropshadow align-default" id="id5">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-04.png"><img alt="systemd-boot menu" src="../../_images/dual-boot-win-04.png" style="width: 674.9px; height: 385.05px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 5: systemd-boot menu</span><a class="headerlink" href="#id5" title="Link to this image"></a></p>
</figcaption>
</figure>
</li>
</ol>
</section>
<section id="alternative-install-windows-10-os-after-cl">
<h2><a class="toc-backref" href="#id12" role="doc-backlink">Alternative: Install Windows 10 OS After Clear Linux OS</a><a class="headerlink" href="#alternative-install-windows-10-os-after-cl" title="Link to this heading"></a></h2>
<p>The following alternative guide shows how to install Windows 10 OS adjacent
to an existing Clear Linux OS installation.</p>
</section>
<section id="prerequisites">
<h2><a class="toc-backref" href="#id13" role="doc-backlink">Prerequisites</a><a class="headerlink" href="#prerequisites" title="Link to this heading"></a></h2>
<ul class="simple">
<li><p>Clear Linux OS is already installed.</p></li>
<li><p>There is unallocated disk space available. If the entire disk has been
allocated to Clear Linux OS, then shrink the root partition to make space for
Windows 10 OS.</p></li>
</ul>
<section id="install-windows-10-os">
<h3>Install Windows 10 OS<a class="headerlink" href="#install-windows-10-os" title="Link to this heading"></a></h3>
<ol class="arabic">
<li><p>Start the Windows installer and follow the prompts.</p></li>
<li><p>At the <span class="guilabel">What type of installation do you want?</span> screen, choose
<span class="guilabel">Custom: Install Windows only (advanced)</span>. See Figure 6.</p>
<figure class="dropshadow align-default" id="id6">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-06.png"><img alt="Windows - Choose installation type" src="../../_images/dual-boot-win-06.png" style="width: 778.6px; height: 583.9499999999999px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 6: Windows - Choose installation type</span><a class="headerlink" href="#id6" title="Link to this image"></a></p>
</figcaption>
</figure>
</li>
<li><p>Select <span class="guilabel">Unallocated Space</span> and create a new partition of
the desired size. For this example, we will use the entire unallocated
space. See Figure 7.</p>
<figure class="dropshadow align-default" id="id7">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-07.png"><img alt="Windows - Create new partition" src="../../_images/dual-boot-win-07.png" style="width: 778.6px; height: 583.9499999999999px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 7: Windows - Create new partition</span><a class="headerlink" href="#id7" title="Link to this image"></a></p>
</figcaption>
</figure>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>Normally, Windows creates its own 100MB EFI partition if none exists.
In our case, where an EFI partition was created by Clear Linux OS, Windows will
use the previously-created partition.</p>
</div>
</li>
<li><p>Select the newly-created partition and follow the remaining prompts to
complete the Windows installation. See Figure 8.</p>
<figure class="dropshadow align-default" id="id8">
<a class="reference internal image-reference" href="../../_images/dual-boot-win-08.png"><img alt="Windows - Install on newly-created partition" src="../../_images/dual-boot-win-08.png" style="width: 778.6px; height: 583.9499999999999px;" />
</a>
<figcaption>
<p><span class="caption-text">Figure 8: Windows - Install on newly-created partition</span><a class="headerlink" href="#id8" title="Link to this image"></a></p>
</figcaption>
</figure>
</li>
<li><p>Finish the Windows out-of-box-experience process.</p></li>
<li><p>Restore <cite>systemd-boot</cite> - the bootloader Clear Linux OS uses - and add Windows to
its boot menu.</p>
<p>At this point, you cannot boot Clear Linux OS because Windows became the default
bootloader after it was installed. Follow these steps to restore
<cite>systemd-boot</cite>.</p>
<ol class="loweralpha">
<li><p>Boot up a Clear Linux OS live image from a USB thumb drive.</p></li>
<li><p>Open a terminal window.</p></li>
<li><p>Find the location of the EFI partition. In this example, it is
<code class="docutils literal notranslate"><span class="pre">/dev/sda1</span></code>.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>lsblk<span class="w"> </span>-po<span class="w"> </span>NAME,SIZE,TYPE,FSTYPE,PARTLABEL
</pre></div>
</div>
<p>Example output:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp">clrlinux@clr-live~ $ </span>lsblk<span class="w"> </span>-po<span class="w"> </span>NAME,SIZE,TYPE,FSTYPE,PARTLABEL
<span class="go">NAME SIZE TYPE FSTYPE PARTLABEL</span>
<span class="go">/dev/loop0 2.3G loop squashfs</span>
<span class="go">/dev/sda 100G disk</span>
<span class="hll"><span class="go">├─/dev/sda1 150M part vfat CLR_BOOT</span>
</span><span class="go">├─/dev/sda2 250M part swap CLR_SWAP</span>
<span class="go">├─/dev/sda3 8G part ext4 CLR_ROOT</span>
<span class="go">├─/dev/sda4 16M part Microsoft reserved partition</span>
<span class="go">├─/dev/sda5 91.6G part ntfs Basic data partition</span>
<span class="go">sdb 7G disk iso9660</span>
<span class="go">├─/dev/sdb1 2.7G part iso9660</span>
<span class="go">└─/dev/sdb2 100M part vfat</span>
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>To help narrow down a partition even more, you add the
<code class="docutils literal notranslate"><span class="pre">PARTTYPE</span></code> option to <strong class="command">lsblk</strong> and
cross-reference against the <a class="reference external" href="https://en.wikipedia.org/wiki/GUID_Partition_Table#Partition_type_GUIDs">partition type GUIDs wiki</a>.</p>
</div>
</li>
<li><p>Make a mount point for Clear Linux OS.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mkdir<span class="w"> </span>/mnt/clearlinux
</pre></div>
</div>
</li>
<li><p>Mount the root and EFI partitions.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>mount<span class="w"> </span>/dev/sda3<span class="w"> </span>/mnt/clearlinux
sudo<span class="w"> </span>mount<span class="w"> </span>/dev/sda1<span class="w"> </span>/mnt/clearlinux/boot
</pre></div>
</div>
</li>
<li><p>Re-install systemd-boot to make it the default bootloader.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>bootctl<span class="w"> </span>install<span class="w"> </span>--esp-path<span class="o">=</span>/mnt/clearlinux/boot
</pre></div>
</div>
</li>
<li><p>Add a timeout (for example: 25 seconds) to systemd-boot so that it
will present the menu of bootable OSes and give you time to select
the one you want to boot.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>clr-boot-manager<span class="w"> </span>set-timeout<span class="w"> </span><span class="m">25</span><span class="w"> </span>--path<span class="o">=</span>/mnt/clearlinux
sudo<span class="w"> </span>clr-boot-manager<span class="w"> </span>update<span class="w"> </span>--path<span class="o">=</span>/mnt/clearlinux
</pre></div>
</div>
</li>
<li><p>Unmount the root and EFI partitions.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo<span class="w"> </span>umount<span class="w"> </span>/mnt/clearlinux/boot
sudo<span class="w"> </span>umount<span class="w"> </span>/mnt/clearlinux
</pre></div>
</div>
</li>
</ol>
</li>
</ol>
</section>
</section>
</section>
<div class="clearer"></div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="Main">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../../index.html">
<img class="logo" src="../../_static/clearlinux.png" alt="Logo of Clear Linux* Project Docs"/>
</a></p>
<div>
<h3><a href="../../index.html">Table of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Dual-boot Clear Linux* OS and Windows* 10 OS</a><ul>
<li><a class="reference internal" href="#method-1-shrink-windows-partition-and-install-cl">Method 1: Shrink Windows partition and install Clear Linux OS</a></li>
<li><a class="reference internal" href="#method-2-add-another-hard-disk-to-your-system-where-you-installed-windows">Method 2: Add another hard disk to your system where you installed Windows</a></li>
<li><a class="reference internal" href="#advanced-use-systemd-boot-to-boot-windows-10-os-and-cl">Advanced: Use systemd-boot to boot Windows 10 OS and Clear Linux OS</a></li>
<li><a class="reference internal" href="#alternative-install-windows-10-os-after-cl">Alternative: Install Windows 10 OS After Clear Linux OS</a></li>
<li><a class="reference internal" href="#prerequisites">Prerequisites</a><ul>
<li><a class="reference internal" href="#install-windows-10-os">Install Windows 10 OS</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div>
<h4>Previous topic</h4>
<p class="topless"><a href="dual-boot-linux.html"
title="previous chapter">Dual-boot Clear Linux* OS with Any GRUB-based Linux* Distro</a></p>
</div>
<div>
<h4>Next topic</h4>
<p class="topless"><a href="multi-boot.html"
title="next chapter">Multi-boot Clear Linux* OS with other operating systems</a></p>
</div>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="../../_sources/tutorials/multi-boot/dual-boot-win.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<search id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="../../search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="Go" />
</form>
</div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="Related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../../genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="multi-boot.html" title="Multi-boot Clear Linux* OS with other operating systems"
>next</a> |</li>
<li class="right" >
<a href="dual-boot-linux.html" title="Dual-boot Clear Linux* OS with Any GRUB-based Linux* Distro"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="../../index.html">Documentation for Clear Linux* project</a> &#187;</li>
<li class="nav-item nav-item-1"><a href="../index.html" >Tutorials</a> &#187;</li>
<li class="nav-item nav-item-this"><a href="">Dual-boot Clear Linux* OS and Windows* 10 OS</a></li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2022 Intel Corporation. All Rights Reserved..
Last updated on Nov 04, 2024.
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.1.3.
</div>
</body>
</html>