{"id":660,"date":"2019-10-14T08:34:22","date_gmt":"2019-10-14T07:34:22","guid":{"rendered":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=660"},"modified":"2019-10-14T08:34:22","modified_gmt":"2019-10-14T07:34:22","slug":"dual-boot-with-uefi","status":"publish","type":"post","link":"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=660","title":{"rendered":"Dual boot with UEFI"},"content":{"rendered":"\n<p>Install Windows first. The setup creates an EFI partition, most likely as \/dev\/sd?2. We&#8217;re gonna need that later. Then turn off fast boot. Enter<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">powercfg -h off<\/pre>\n\n\n\n<p>on the command prompt. Make sure that you have local admin rights. Fast boot is incompatible with dual boot. You&#8217;ll get blue screens with repair options otherwise. While at it, set the system clock to UTC. Create this DWORD registry key:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation\\RealTimeIsUniversal<\/pre>\n\n\n\n<p>and set it to &#8220;1&#8221;.<\/p>\n\n\n\n<p>Then install linux and mount \/dev\/sd?2 from above to boot. Then create a new file named arch.conf in \/boot\/loader\/entries:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">title \u00a0\u00a0Arch Linux\nlinux \u00a0\u00a0\/vmlinuz-linux\ninitrd \u00a0\/initramfs-linux.img\noptions root=UUID=$(blkid \/root\/partition) rw audit=0\n<\/pre>\n\n\n\n<p>The paths are relative to \/boot, so vmlinuz-linux should be \/boot\/vmlinuz-linux. Next edit \/boot\/loader\/loader.conf:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">console-mode auto\ndefault arch\ntimeout 5<\/pre>\n\n\n\n<p>Assuming that you&#8217;re using systemd-boot, run bootctl install and bootctl update, reboot and be happy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Windows first. The setup creates an EFI partition, most likely as \/dev\/sd?2. We&#8217;re gonna need that later. Then turn off fast boot. Enter powercfg -h off on the command prompt. Make sure that you have local admin rights. Fast boot is incompatible with dual boot. You&#8217;ll get blue screens with repair options otherwise. While &hellip; <a href=\"https:\/\/tollana.d-tor.org\/notes-to-self\/?p=660\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Dual boot with UEFI<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,13,77,43],"tags":[157,109],"class_list":["post-660","post","type-post","status-publish","format-standard","hentry","category-arch-linux","category-desktop","category-linux","category-windows","tag-powercfg","tag-uefi"],"_links":{"self":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/660","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=660"}],"version-history":[{"count":1,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions"}],"predecessor-version":[{"id":661,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=\/wp\/v2\/posts\/660\/revisions\/661"}],"wp:attachment":[{"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tollana.d-tor.org\/notes-to-self\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}