{"componentChunkName":"component---src-templates-post-template-js","path":"/note-how-to-create-bootmedia-external-ssd-en","result":{"data":{"markdownRemark":{"id":"9ea88ca0-6942-5167-91b9-6e6f6145292f","html":"<blockquote>\n<p>This page has been machine-translated from the <a href=\"/note-how-to-create-bootmedia-external-ssd\">original page</a>.</p>\n</blockquote>\n<p>This time, I will create boot media that can boot Windows from an external SSD over USB.</p>\n<p>If you search for how to create boot media that can boot Windows from an external SSD over USB, you will find a huge amount of information.</p>\n<p>I found all kinds of claims—such as that Windows machines cannot boot from external SSDs, that it can only be done with paid apps, or that it is possible on a Mac—which was honestly quite confusing.</p>\n<p>To get straight to the point, as of the time of writing, it is possible to create boot media that can boot from an external SSD over USB even with the latest Windows 10 21H2.</p>\n<p>I was able to create a bootable SSD by following the procedure in the article below.</p>\n<p>Reference: <a href=\"https://nisimura.org/usb_ssd_windows_install/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">How to boot Windows 10 from an external USB SSD/HDD (How to manually install Windows To Go to an SSD/HDD for free) | Seiji Nishimura’s PC free support and Windows freeware blog</a></p>\n<!-- omit in toc -->\n<h2 id=\"table-of-contents\" style=\"position:relative;\"><a href=\"#table-of-contents\" aria-label=\"table of contents permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Table of Contents</h2>\n<ul>\n<li>\n<p><a href=\"#create-a-usb-bootable-ssd\">Create a USB-bootable SSD</a></p>\n<ul>\n<li><a href=\"#initialize-the-target-disk\">Initialize the target disk</a></li>\n<li><a href=\"#mark-the-system-partition-as-active-with-diskpart\">Mark the system partition as <code class=\"language-text\">active</code> with diskpart</a></li>\n<li><a href=\"#what-is-diskpart\">What is diskpart?</a></li>\n</ul>\n</li>\n<li>\n<p><a href=\"#deploy-the-iso-image-to-the-disk-with-dism-and-bcdboot\">Deploy the ISO image to the disk with DISM and BCDBoot</a></p>\n<ul>\n<li><a href=\"#what-is-dism\">What is DISM?</a></li>\n<li><a href=\"#create-the-system-partition-with-bcdboot\">Create the system partition with BCDBoot</a></li>\n</ul>\n</li>\n<li><a href=\"#summary\">Summary</a></li>\n<li><a href=\"#update-how-to-specify-the-windows-edition-to-boot-from-usb\">Update: How to specify the Windows edition to boot from USB</a></li>\n<li><a href=\"#update-how-to-delete-the-efi-partition-on-the-storage-device-from-the-os-side\">Update: How to delete the EFI partition on the storage device from the OS side</a></li>\n<li><a href=\"#update-what-to-do-if-disk-management-cannot-create-a-primary-partition\">Update: What to do if Disk Management cannot create a primary partition</a></li>\n<li><a href=\"#update-installing-usbpcap-prevents-the-os-from-booting\">Update: Installing USBPcap prevents the OS from booting</a></li>\n</ul>\n<h2 id=\"create-a-usb-bootable-ssd\" style=\"position:relative;\"><a href=\"#create-a-usb-bootable-ssd\" aria-label=\"create a usb bootable ssd permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Create a USB-bootable SSD</h2>\n<p>The procedure I followed this time could, in the worst case, erase all data on the PC’s storage if something goes wrong.</p>\n<p>So if you try it, please be extremely careful and proceed at your own risk.</p>\n<p>I really did not want to lose the data on my main PC by accident, so I created the boot media on a spare laptop.</p>\n<p>The environment I used was Windows 11 21H2.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 546px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/4e7b7b0683cc430a1b14458dd6f77afb/76aed/image-20220303214811571.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 87.08333333333333%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAARCAYAAADdRIy+AAAACXBIWXMAAAsTAAALEwEAmpwYAAADIUlEQVQ4y3VUSU/bYBDNqf2LPfUn9NBTW/4EUCCsKhWVkHooUi89QEhsCEmgRdlIbJKQBZx4i7ckXgLt63yfw6aqkZ7Gnoyf37xvxglBOEIQ+LAsC5OxB7mnInfloGkEwO8pcDeNIwh/ZhFxfjqNcEsIwxDsJ2YLSBykM4iiEIZp4c53sXI8wMu5Kl7tNHEk6ZhP3eDbrwHHTq6P/YqGHyUV+YaO7ZwC6dqAaw0xmUyQymSR6JVy8CY+zGFMuCQqeEGEr3fbKLWH2D1V8b2o40texQ5h71wjIhWiZECUDXRUC55jIwwCHAonSFQLP+GNRzBNE67jQCOlPc2GolvwRw6isQPfsxCOYgSz65FjYUywySrDMOFPxjHh/qHAW+50upAkCZeyjEupDnXQx0DVCCos24btuBha9gMsHq04Dof8HA6FHBIpImTmdjodXFxcoEYolcrxda2GaqWC3vU1FEUhUgeu6z7A8zwebZu1TITijDCiU1KZmsEAGikaDFT0+33KUVT6uLm54WCtMTWGYXDc1zCEYRATHhDh7e0UMrWbz+dRLBZxenrGFVbKFZTLZbovoEJKmfrz83Oeq1arkOVLtFpNbhcT9UyhpumkrM/VKfRmTdPIx/jtTDlXr8VdxArNf1pOi3lGKHK5LMkKPO6N+xhnGLH/noAROeQpe25II/dImI4JmTdsdPgp2i7Npc2H3WCRoNO1TqqYOlbHa+kZRsq2LPDHEPMXMw+nUzQaDZxkj3FWklGotiF3dVrDIWpdA1LPRLGlo1JvoCFLVNvEVauFdrv9hNBH9qTw6KGu62gSaZ1GpV6rokvFNq3UyHOofYfHp227T/zjhEGITDr96CFLmtSOPhsJBja4th379D9wH6mOfSAEQaBNSWVobSb81CxOYPPNsPgWWNynZ2C5+21hM0learoBb0SrxxRmcwX+6WHLHUXRM0wfEPL15PnQR+h7VD/mVhlegGuVxIwjpETa5Tdv3yG5voX5j0ksLK1icXntAQvL61hY2cAiQ3KL4jpWtvewuSdh82sBydU1rK5vYG1zC1ufPuP9hzn8BRN8zt9rl/sSAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/4e7b7b0683cc430a1b14458dd6f77afb/8ac56/image-20220303214811571.webp 240w,\n/static/4e7b7b0683cc430a1b14458dd6f77afb/d3be9/image-20220303214811571.webp 480w,\n/static/4e7b7b0683cc430a1b14458dd6f77afb/a3666/image-20220303214811571.webp 546w\"\n              sizes=\"(max-width: 546px) 100vw, 546px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/4e7b7b0683cc430a1b14458dd6f77afb/8ff5a/image-20220303214811571.png 240w,\n/static/4e7b7b0683cc430a1b14458dd6f77afb/e85cb/image-20220303214811571.png 480w,\n/static/4e7b7b0683cc430a1b14458dd6f77afb/76aed/image-20220303214811571.png 546w\"\n            sizes=\"(max-width: 546px) 100vw, 546px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/4e7b7b0683cc430a1b14458dd6f77afb/76aed/image-20220303214811571.png\"\n            alt=\"image-20220303214811571\"\n            title=\"image-20220303214811571\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<h3 id=\"initialize-the-target-disk\" style=\"position:relative;\"><a href=\"#initialize-the-target-disk\" aria-label=\"initialize the target disk permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Initialize the target disk</h3>\n<p>Use Windows Disk Management to divide the SSD that will be used as boot media into the following two volumes.</p>\n<ul>\n<li>\n<p>System partition</p>\n<ul>\n<li>Drive letter: L</li>\n<li>Size: 600 MB</li>\n<li>File system: FAT32</li>\n</ul>\n</li>\n<li>\n<p>Volume partition</p>\n<ul>\n<li>Drive letter: M</li>\n<li>Size: all remaining free space</li>\n<li>File system: NTFS</li>\n</ul>\n</li>\n</ul>\n<p>Be careful not to choose the wrong disk to initialize here, because doing so will erase data.</p>\n<p>In particular, make sure you do not wipe the disk you use as drive C.</p>\n<p>While you are at it, also double-click the Windows ISO file you are going to deploy this time so that it gets mounted.</p>\n<p>This time, it was mounted as drive letter <code class=\"language-text\">F</code>.</p>\n<p>The result after initialization looks like this.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 960px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/2dfedb151fc71ca4540e7b37be0f3dca/d318f/image-20220303231738698.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 15.416666666666664%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAADCAYAAACTWi8uAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAk0lEQVQI12XNQQqDMBAFUO9/nnZrFxaxiBKJJUFQSVJDE7VqeoDfoG5KFo8P82eYSAiBPG+Q3BsUhfTUmYeyVMiyFtfLA3FM/R73WChhiG9PREopf9QgTTkIEWDs/Ydzg7oe/NN276tKBgiRoFTCuQWR1hp9/0LXDdB6hrUbjFm97bTus2n6YhxdwNojjVkwzx/8AFdh1erFmw4jAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/2dfedb151fc71ca4540e7b37be0f3dca/8ac56/image-20220303231738698.webp 240w,\n/static/2dfedb151fc71ca4540e7b37be0f3dca/d3be9/image-20220303231738698.webp 480w,\n/static/2dfedb151fc71ca4540e7b37be0f3dca/e46b2/image-20220303231738698.webp 960w,\n/static/2dfedb151fc71ca4540e7b37be0f3dca/e6c83/image-20220303231738698.webp 1421w\"\n              sizes=\"(max-width: 960px) 100vw, 960px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/2dfedb151fc71ca4540e7b37be0f3dca/8ff5a/image-20220303231738698.png 240w,\n/static/2dfedb151fc71ca4540e7b37be0f3dca/e85cb/image-20220303231738698.png 480w,\n/static/2dfedb151fc71ca4540e7b37be0f3dca/d9199/image-20220303231738698.png 960w,\n/static/2dfedb151fc71ca4540e7b37be0f3dca/d318f/image-20220303231738698.png 1421w\"\n            sizes=\"(max-width: 960px) 100vw, 960px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/2dfedb151fc71ca4540e7b37be0f3dca/d9199/image-20220303231738698.png\"\n            alt=\"image-20220303231738698\"\n            title=\"image-20220303231738698\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<p>I will deploy the bootable OS here.</p>\n<h3 id=\"mark-the-system-partition-as-active-with-diskpart\" style=\"position:relative;\"><a href=\"#mark-the-system-partition-as-active-with-diskpart\" aria-label=\"mark the system partition as active with diskpart permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Mark the system partition as <code class=\"language-text\">active</code> with diskpart</h3>\n<p>If you install Windows using the standard installer, unfortunately installation to a disk connected over USB is not supported.</p>\n<p>Because of that, you need to create the boot configuration yourself.</p>\n<p>Run the following commands one by one in PowerShell with administrator privileges.</p>\n<p>Because disk and partition numbers differ depending on the environment, be careful not to copy and paste them blindly.</p>\n<div class=\"gatsby-highlight\" data-language=\"powershell\"><pre class=\"language-powershell\"><code class=\"language-powershell\">diskpart\nlist disk\n<span class=\"token operator\">/</span><span class=\"token operator\">/</span> Specify the number of the disk to use <span class=\"token keyword\">for</span> the boot media\n<span class=\"token function\">select</span> disk 2\n\nlist partition\n<span class=\"token operator\">/</span><span class=\"token operator\">/</span> <span class=\"token function\">Select</span> the partition number initialized to 600 MB <span class=\"token keyword\">for</span> the system partition\n<span class=\"token function\">select</span> partition 1\n\n<span class=\"token operator\">/</span><span class=\"token operator\">/</span> Mark it as active and <span class=\"token keyword\">exit</span>\nactive\n<span class=\"token keyword\">exit</span></code></pre></div>\n<p>The result looked like this.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 539px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/3737aee7701b1d63fdbd9ec64a1c4a6b/10f9a/image-20220303232019097.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 120%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAACXBIWXMAAAsTAAALEwEAmpwYAAACQ0lEQVQ4y5WVWY+CUAyFeVRx3xDcccBoSPj/v67j18zBCy7JPDQXy+3p6WmpUVmWttlsbL/f2+FwsN1u52eaZpZlK8vPmSXrhQ0GsQ2H2NAtjp/PoUW3283W67UlSfIAyBxsPp/bdDr1c7FY+Ps0Te10OrnvE1gDCNB2u/UgTrHFD2MqWC6XX9nJF1EyQBgsCSyKwvCfz2c7Ho/OdjKZfGSGvwG83++W53nDAuDVamX9fv+h26BlBOkMLQSOYIBGGM7RaOQMZ7NZE4yOJIElOsJYMUg0Ho+fDC+Xi2FcxgAkmCAuYvhpBu8AFyD38L8wVAcpG2Y0gsbwGxAZmpKc+1RBDFWQlCQOSDCZACAbbNRxmhRqBSBA+K/Xq2uP1i9dhiWXVALNobTuiIipZOD5pSlkojQ0Ye7ICmuM8sOgbne7fmeIDjCDFaBopEFXZ8PALsDLYPOlAKI5pHQMcMDCuVOgyn4LCBuAMJUKGF0DTLpxmbvIABhNROder9fWkJLRjZPmEAyotFTnNZN0mqoA1OiEOvsc8pLsMIMVmSUBIPi4zIkc2kjEENsCLIrSswAGiIDVKDVFAYAye/zm1HNTsrQgGBA0gkFVVX6GX8ynHdjah+hAIKVQhmbvXRe7GyiOBw1jTYMPNiwoU80BONzaMFcVJNRU8F6jpuXhgPr0AGaguUgg+gkAQG2aMKFWmyqL8suPj4de4BR9NeGTaeG2Sr5XtW8O5quua/9qNGtauv+xKNkwvI+y/sZE3da/27fv9539AqDZSA2kdd0bAAAAAElFTkSuQmCC'); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/3737aee7701b1d63fdbd9ec64a1c4a6b/8ac56/image-20220303232019097.webp 240w,\n/static/3737aee7701b1d63fdbd9ec64a1c4a6b/d3be9/image-20220303232019097.webp 480w,\n/static/3737aee7701b1d63fdbd9ec64a1c4a6b/9cb26/image-20220303232019097.webp 539w\"\n              sizes=\"(max-width: 539px) 100vw, 539px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/3737aee7701b1d63fdbd9ec64a1c4a6b/8ff5a/image-20220303232019097.png 240w,\n/static/3737aee7701b1d63fdbd9ec64a1c4a6b/e85cb/image-20220303232019097.png 480w,\n/static/3737aee7701b1d63fdbd9ec64a1c4a6b/10f9a/image-20220303232019097.png 539w\"\n            sizes=\"(max-width: 539px) 100vw, 539px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/3737aee7701b1d63fdbd9ec64a1c4a6b/10f9a/image-20220303232019097.png\"\n            alt=\"image-20220303232019097\"\n            title=\"image-20220303232019097\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<h3 id=\"what-is-diskpart\" style=\"position:relative;\"><a href=\"#what-is-diskpart\" aria-label=\"what is diskpart permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is diskpart?</h3>\n<p>The <code class=\"language-text\">diskpart</code> command interpreter is a tool for managing drives on a computer.</p>\n<p>This time, after focusing on the disk to install to, I enumerated the partitions and marked the partition that had been initialized with a size of 600 MB as <code class=\"language-text\">active</code>.</p>\n<p>Reference: <a href=\"https://docs.microsoft.com/ja-jp/windows-server/administration/windows-commands/diskpart\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">diskpart | Microsoft Docs</a></p>\n<p>Marking this partition as <code class=\"language-text\">active</code> makes it possible to notify the BIOS or EFI that this partition contains the OS startup files.</p>\n<p>Next, I will place the OS startup files in this area.</p>\n<p>Reference: <a href=\"https://docs.microsoft.com/ja-jp/windows-server/administration/windows-commands/active\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">active | Microsoft Docs</a></p>\n<h2 id=\"deploy-the-iso-image-to-the-disk-with-dism-and-bcdboot\" style=\"position:relative;\"><a href=\"#deploy-the-iso-image-to-the-disk-with-dism-and-bcdboot\" aria-label=\"deploy the iso image to the disk with dism and bcdboot permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Deploy the ISO image to the disk with DISM and BCDBoot</h2>\n<p>Next, deploy the ISO file to the SSD.</p>\n<p>Run the following commands in PowerShell with administrator privileges.</p>\n<p>Again, if the drive letters differ from my environment, do not copy and paste them blindly.</p>\n<p>It took quite a while to complete.</p>\n<div class=\"gatsby-highlight\" data-language=\"powershell\"><pre class=\"language-powershell\"><code class=\"language-powershell\"><span class=\"token comment\"># F is the drive where the ISO is mounted, and M is the volume partition drive</span>\n<span class=\"token comment\"># Change the /Index=1 value depending on the Windows edition you want to use</span>\nDism <span class=\"token operator\">/</span>Apply-Image <span class=\"token operator\">/</span>ImageFile:F:\\sources\\install<span class=\"token punctuation\">.</span>wim <span class=\"token operator\">/</span>Index=1 <span class=\"token operator\">/</span>ApplyDir:M:\\\n\n<span class=\"token comment\"># Specify /l ja-JP when using the Japanese edition</span>\nM:\\Windows\\System32\\bcdboot M:\\Windows <span class=\"token operator\">/</span>l en-US <span class=\"token operator\">/</span>s L: <span class=\"token operator\">/</span>f ALL</code></pre></div>\n<p>The result looked like this.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 798px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/17b17feee4296e2643371ce0f5c713c0/898f6/image-20220303233033290.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 23.333333333333332%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAFCAYAAABFA8wzAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAy0lEQVQY03WQ246DMAxE88olhFtYINciCoLu///erJ3dVlu1fTjyOFHGnghrLUIIsNbBe9YzjDGYpgnz/Ku5juOYzrhnrbVO/TAMqd4Rfd8/HnsfYGhAXdfI8xxZlr2F7z4hYozY9z2ZOudQVQpN00CRKRsrxbX50wpFUbxQluUDcRwHzvPE9bqR8YZ19di3Cy7RwNkvxDBRRJ2iMm3bous6cDIezNHZ6G4slmUhkxW32zdxUmxH2470N5o2kkRFW0uiSkgpn+Cz/4Y/EhB72Jky8eQAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/17b17feee4296e2643371ce0f5c713c0/8ac56/image-20220303233033290.webp 240w,\n/static/17b17feee4296e2643371ce0f5c713c0/d3be9/image-20220303233033290.webp 480w,\n/static/17b17feee4296e2643371ce0f5c713c0/ce206/image-20220303233033290.webp 798w\"\n              sizes=\"(max-width: 798px) 100vw, 798px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/17b17feee4296e2643371ce0f5c713c0/8ff5a/image-20220303233033290.png 240w,\n/static/17b17feee4296e2643371ce0f5c713c0/e85cb/image-20220303233033290.png 480w,\n/static/17b17feee4296e2643371ce0f5c713c0/898f6/image-20220303233033290.png 798w\"\n            sizes=\"(max-width: 798px) 100vw, 798px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/17b17feee4296e2643371ce0f5c713c0/898f6/image-20220303233033290.png\"\n            alt=\"image-20220303233033290\"\n            title=\"image-20220303233033290\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<h3 id=\"what-is-dism\" style=\"position:relative;\"><a href=\"#what-is-dism\" aria-label=\"what is dism permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>What is DISM?</h3>\n<p><code class=\"language-text\">DISM</code> is a tool that can deploy and manage images.</p>\n<p><code class=\"language-text\">DISM</code> creates Windows images and virtual hard disks.</p>\n<p>Reference: <a href=\"https://docs.microsoft.com/ja-jp/windows-hardware/manufacture/desktop/what-is-dism?view=windows-11\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">What is DISM? | Microsoft Docs</a></p>\n<p>This time, I am using the <code class=\"language-text\">Apply-Image</code> option.</p>\n<p>This is the option that places a Windows image in the specified location.</p>\n<p>Reference: <a href=\"https://docs.microsoft.com/ja-jp/powershell/module/dism/expand-windowsimage?view=windowsserver2022-ps\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Expand-WindowsImage (DISM) | Microsoft Docs</a></p>\n<p>This time, I passed <code class=\"language-text\">\\sources\\install.wim</code> inside the ISO as the argument to the <code class=\"language-text\">ImageFile</code> option and deployed it to the free space on the disk that I initialized earlier.</p>\n<p>The <code class=\"language-text\">Index</code> option is set to <code class=\"language-text\">1</code>, which specifies that the data at index 1 in <code class=\"language-text\">install.wim</code> should be deployed.</p>\n<h3 id=\"create-the-system-partition-with-bcdboot\" style=\"position:relative;\"><a href=\"#create-the-system-partition-with-bcdboot\" aria-label=\"create the system partition with bcdboot permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Create the system partition with BCDBoot</h3>\n<p>Finally, run <code class=\"language-text\">BCDBoot</code> to create the system partition.</p>\n<p>The first argument to <code class=\"language-text\">BCDBoot</code> specifies the Windows folder to use as the source of the boot environment.</p>\n<p>This time, I specified the Windows folder in the image that I had deployed with DISM earlier.</p>\n<p><code class=\"language-text\">/l</code> is the locale option. This time, <code class=\"language-text\">ja-JP</code> is specified.</p>\n<p>The <code class=\"language-text\">/s &lt;drive-letter></code> option specifies the drive letter of the partition to use as the system partition.</p>\n<p>Here, specify the partition that you initialized to 600 MB for the system partition.</p>\n<p>The <code class=\"language-text\">/f</code> option specifies the firmware.</p>\n<p>By setting it to <code class=\"language-text\">ALL</code> as in this example, you can support both BIOS and UEFI.</p>\n<p>Reference: <a href=\"https://docs.microsoft.com/ja-jp/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di?view=windows-11\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">BCDBoot command-line options | Microsoft Docs</a></p>\n<h2 id=\"summary\" style=\"position:relative;\"><a href=\"#summary\" aria-label=\"summary permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Summary</h2>\n<p>I was able to create a Windows disk that can boot from USB.</p>\n<p>I tried booting it with the PC and SSD connected over USB 3.1 Gen1, and it was fast enough that, subjectively, it did not feel very different from an OS installed on an internal SSD.</p>\n<p>If the benchmark is this good, that is more than good enough. It feels perfectly comfortable in normal use.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 692px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/164d445b48a5f8760888417208818cf5/91e7e/image-20220303235640818.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 73.33333333333334%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAPCAYAAADkmO9VAAAACXBIWXMAAAsTAAALEwEAmpwYAAAD2klEQVQ4yzWTyW9bVRTG/X/AngUsKlViUYYVSAgQqAUJoUKFxAY2hbbAAqkIIWjipmJQEkinkKZOardJ26RpUjfBTpPg2k5iu55Sx1MSv9jPw/PwPPvZ/nFj4Oh++u75zrlX5+qeo/vZv8XyXgLzVgpzcJ/FkMxSON3DgW8NK7izbTbTGu5MG5dgT6aDS9bYSDZxpwRLTTZ2q8z6FHTrMZmaIlEp5EhLO1RKOdS8TEmRKWSTNCpFGuUCdFvUy3najQqqkqZSzPV0ra7yv2UqFXT23SLFWk44BfYzKfKFAlklh5Tap1QuU6nWyOSyJOWU0JIk0yniezvEE7so+bxAATmTQS0VCacL6IbSw+ilI/wgv8pm1UC7BnI6STQeRpZlJEkSB2TS2TQ5JStYJr4bI7i9RVktk0gkCEVC5JUMcaWEbmbPyt+qHovSTypv65UuJ7N4vUF8T/041h1kRYUHpmmdHucVFbfbz1NxkWPdjpTc7+l7RfHkKwkj/Z6jDPg/5Xbte0ZaHzDKR4wUjvPZpTe4OD3AE/cT7tyaYcE/xcXuh1zpHGdUO8EXk29x/s+zOBwb3DJNMrtiQ2fcn2Y69TnT6a9ZrpznfuMM843TzKlnGPeeZNV3m+1QBJ8ngEda5X7zlIiLnNoZJrZPYg0aRDyG1+PCFgihM+w+4HLgS64Ev8NSHWW2pWeuM8AdtQ/93dOM3xzD4/Zwd2oGW9jKPRGba59ntq7n16VvGBkfxOncxDw/h9m+gW4sOcpY5l2u5T7mXvUUhuYxbrSPcS3/Hj9Z3mbqwVU2nC4s5mXsO/Nc144y2TrGZON99LY3uXqnD/vjTdZWrFhdXnRTOzaMvnOYgoPY1RkeNa+zqk2wpI5iDkzg9T0hISVw2Jw4wzZWNAMrLQPW6hgPtsewO9aIxXcI+L2sio/UDUu/oY8d5oL0GsbqJwy1jnCx8woXSofoW34Hh91JYMvPmuUxc95xfu++xB/ayww2XqTf+TrTU1OsrK5hWXrIvM2Bbm7XI8ZsjMXoLbzqIzxNM+v1e+y3fdSqJYJbgV6F0XCMaDqEq7mAu7GAt7VIoSYRCUdEXGInEmYjHEd3IdnPV6Fn+TZ2iEuVo/RpL3C29QzL3XMUM3WGRoZZWHzI+KiRm67L9PE8Pzaf4xcOE0ytYDLNYLb8xdDgIKbFZXR++aApo7Q7cbrtPTqdg30YOikxv9p/U9oU6IqlonUidLrRHqD8r47W44wqRm/AV+d2vM2NSBtjVMMo2BTpCL/JRLiCYbvC5HZV9NwB1zGFOhi3RF5QYzIgdH+ZCV8Zk8CgU+Ef/tv2kiwXWHwAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/164d445b48a5f8760888417208818cf5/8ac56/image-20220303235640818.webp 240w,\n/static/164d445b48a5f8760888417208818cf5/d3be9/image-20220303235640818.webp 480w,\n/static/164d445b48a5f8760888417208818cf5/f686e/image-20220303235640818.webp 692w\"\n              sizes=\"(max-width: 692px) 100vw, 692px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/164d445b48a5f8760888417208818cf5/8ff5a/image-20220303235640818.png 240w,\n/static/164d445b48a5f8760888417208818cf5/e85cb/image-20220303235640818.png 480w,\n/static/164d445b48a5f8760888417208818cf5/91e7e/image-20220303235640818.png 692w\"\n            sizes=\"(max-width: 692px) 100vw, 692px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/164d445b48a5f8760888417208818cf5/91e7e/image-20220303235640818.png\"\n            alt=\"image-20220303235640818\"\n            title=\"image-20220303235640818\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<p>It was quite educational because I manually created a boot configuration that I had always left up to tools before.</p>\n<h2 id=\"update-how-to-specify-the-windows-edition-to-boot-from-usb\" style=\"position:relative;\"><a href=\"#update-how-to-specify-the-windows-edition-to-boot-from-usb\" aria-label=\"update how to specify the windows edition to boot from usb permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Update: How to specify the Windows edition to boot from USB</h2>\n<p>If you use the above procedure to create boot media from an ISO that contains multiple editions, you can specify which Windows edition boots by setting the <code class=\"language-text\">Index</code> value.</p>\n<p>To get the index of the OS edition you want to use from <code class=\"language-text\">install.wim</code> included in the ISO, run the following command with administrator privileges.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># D:\\sources\\install.wim is on the mounted ISO drive</span>\nDism /Get-ImageInfo /ImageFile:D:<span class=\"token punctuation\">\\</span>sources<span class=\"token punctuation\">\\</span>install.wim\nDetails <span class=\"token keyword\">for</span> image <span class=\"token builtin class-name\">:</span> D:<span class=\"token punctuation\">\\</span>sources<span class=\"token punctuation\">\\</span>install.wim\n\nIndex <span class=\"token builtin class-name\">:</span> <span class=\"token number\">1</span>\nName <span class=\"token builtin class-name\">:</span> Windows <span class=\"token number\">10</span> Home\nDescription <span class=\"token builtin class-name\">:</span> Windows <span class=\"token number\">10</span> Home\nSize <span class=\"token builtin class-name\">:</span> <span class=\"token number\">14,732</span>,719,469 bytes\n<span class=\"token punctuation\">..</span>.\nIndex <span class=\"token builtin class-name\">:</span> <span class=\"token number\">6</span>\nName <span class=\"token builtin class-name\">:</span> Windows <span class=\"token number\">10</span> Pro\nDescription <span class=\"token builtin class-name\">:</span> Windows <span class=\"token number\">10</span> Pro\nSize <span class=\"token builtin class-name\">:</span> <span class=\"token number\">15,010</span>,424,921 bytes</code></pre></div>\n<p>Incidentally, if you want to create an <code class=\"language-text\">install.wim</code> that contains only the edition for the specified <code class=\"language-text\">Index</code>, you can export it with the following command.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\">Dism /Export-Image /SourceImageFile:<span class=\"token string\">\"D:\\sources\\install.wim\"</span> /SourceIndex:6 /DestinationImageFile:<span class=\"token string\">\"C:\\Users\\kash1064\\Downloads\\install.wim\"</span></code></pre></div>\n<h2 id=\"update-how-to-delete-the-efi-partition-on-the-storage-device-from-the-os-side\" style=\"position:relative;\"><a href=\"#update-how-to-delete-the-efi-partition-on-the-storage-device-from-the-os-side\" aria-label=\"update how to delete the efi partition on the storage device from the os side permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Update: How to delete the EFI partition on the storage device from the OS side</h2>\n<p>When you install an OS from installation media and so on, Windows Disk Management cannot delete or format the system partition.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 960px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/5ad7a5564e3422c6d83d925d7faa0c42/d2f5c/image-20221211134715898.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 8.333333333333332%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAACCAIAAADXZGvcAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAYUlEQVQI12WL3Q5AIBhAvf/LiIzP8gzE5qeHoKWaoiS3bOfmbOckCFGACWBuGoZzitI2Q12BhxpmQtiPBeO+Kse4RE20FsbI6zpC8ErxXaxy5+5VF8L9wXun5GaNOq2O/QMftGfcm8VMTgAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/5ad7a5564e3422c6d83d925d7faa0c42/8ac56/image-20221211134715898.webp 240w,\n/static/5ad7a5564e3422c6d83d925d7faa0c42/d3be9/image-20221211134715898.webp 480w,\n/static/5ad7a5564e3422c6d83d925d7faa0c42/e46b2/image-20221211134715898.webp 960w,\n/static/5ad7a5564e3422c6d83d925d7faa0c42/8ae64/image-20221211134715898.webp 1363w\"\n              sizes=\"(max-width: 960px) 100vw, 960px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/5ad7a5564e3422c6d83d925d7faa0c42/8ff5a/image-20221211134715898.png 240w,\n/static/5ad7a5564e3422c6d83d925d7faa0c42/e85cb/image-20221211134715898.png 480w,\n/static/5ad7a5564e3422c6d83d925d7faa0c42/d9199/image-20221211134715898.png 960w,\n/static/5ad7a5564e3422c6d83d925d7faa0c42/d2f5c/image-20221211134715898.png 1363w\"\n            sizes=\"(max-width: 960px) 100vw, 960px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/5ad7a5564e3422c6d83d925d7faa0c42/d9199/image-20221211134715898.png\"\n            alt=\"image-20221211134715898\"\n            title=\"image-20221211134715898\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<p>In that case, use <code class=\"language-text\">diskpart</code> to delete the partition so that the disk can be used as a new system drive.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># Identify the ID of the target disk</span>\nDISKPART<span class=\"token operator\">></span> list disk\n  Disk <span class=\"token comment\">###  Status         Size     Free     Dyn  Gpt</span>\n  --------  -------------  -------  -------  ---  ---\n  Disk <span class=\"token number\">0</span>    Online          <span class=\"token number\">465</span> GB  <span class=\"token number\">1024</span> KB        *\n  Disk <span class=\"token number\">2</span>    Online          <span class=\"token number\">238</span> GB  <span class=\"token number\">1024</span> KB        *\n\n<span class=\"token comment\"># Select the disk you want to delete from and check its partitions</span>\nDISKPART<span class=\"token operator\">></span> <span class=\"token keyword\">select</span> disk <span class=\"token number\">2</span>\nDISKPART<span class=\"token operator\">></span> list partition\n\n  Partition <span class=\"token comment\">###  Type              Size     Offset</span>\n  -------------  ----------------  -------  -------\n  Partition <span class=\"token number\">1</span>    System             <span class=\"token number\">100</span> MB  <span class=\"token number\">1024</span> KB\n  Partition <span class=\"token number\">2</span>    Reserved            <span class=\"token number\">16</span> MB   <span class=\"token number\">101</span> MB\n  Partition <span class=\"token number\">3</span>    Primary            <span class=\"token number\">237</span> GB   <span class=\"token number\">117</span> MB\n  Partition <span class=\"token number\">4</span>    Recovery           <span class=\"token number\">552</span> MB   <span class=\"token number\">237</span> GB\n  \n<span class=\"token comment\"># Specify the partition ID to delete, then delete it with the delete command</span>\nDISKPART<span class=\"token operator\">></span> <span class=\"token keyword\">select</span> partition <span class=\"token number\">1</span>\nDISKPART<span class=\"token operator\">></span> delete partition override\nDiskPart successfully deleted the selected partition.\n\n<span class=\"token comment\"># Delete the other partition in the same way</span>\nDISKPART<span class=\"token operator\">></span> <span class=\"token keyword\">select</span> partition <span class=\"token number\">2</span>\nDISKPART<span class=\"token operator\">></span> delete partition override\nDiskPart successfully deleted the selected partition.\n\n<span class=\"token comment\"># Check the partitions after deletion to confirm the system partition is gone</span>\nDISKPART<span class=\"token operator\">></span> list partition\n\n  Partition <span class=\"token comment\">###  Type              Size     Offset</span>\n  -------------  ----------------  -------  -------\n  Partition <span class=\"token number\">3</span>    Primary            <span class=\"token number\">237</span> GB   <span class=\"token number\">117</span> MB\n  Partition <span class=\"token number\">4</span>    Recovery           <span class=\"token number\">552</span> MB   <span class=\"token number\">237</span> GB</code></pre></div>\n<p>By following the above procedure, you can also confirm from Disk Management that the system partition has been deleted.</p>\n<p><span\n      class=\"gatsby-resp-image-wrapper\"\n      style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 960px; \"\n    >\n      <a\n    class=\"gatsby-resp-image-link\"\n    href=\"/static/4403d62212e2dfd746ee86f4bde2f5fa/d2f5c/image-20221211135308504.png\"\n    style=\"display: block\"\n    target=\"_blank\"\n    rel=\"noopener\"\n  >\n    <span\n    class=\"gatsby-resp-image-background-image\"\n    style=\"padding-bottom: 7.5%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAACCAIAAADXZGvcAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAWElEQVQI123JPQ6AIAxAYe5/FS0DCcUzmKiDCZ5CTPhxoJZKnH35tqecc4gWcQKYx2HptN6M2RGPPx5g7bez1iv5YuYYQ04hxZPoFnnkL2Yq+aq1UC2ttRe7K2b7yAVBlQAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n  ></span>\n  <picture>\n          <source\n              srcset=\"/static/4403d62212e2dfd746ee86f4bde2f5fa/8ac56/image-20221211135308504.webp 240w,\n/static/4403d62212e2dfd746ee86f4bde2f5fa/d3be9/image-20221211135308504.webp 480w,\n/static/4403d62212e2dfd746ee86f4bde2f5fa/e46b2/image-20221211135308504.webp 960w,\n/static/4403d62212e2dfd746ee86f4bde2f5fa/8ae64/image-20221211135308504.webp 1363w\"\n              sizes=\"(max-width: 960px) 100vw, 960px\"\n              type=\"image/webp\"\n            />\n          <source\n            srcset=\"/static/4403d62212e2dfd746ee86f4bde2f5fa/8ff5a/image-20221211135308504.png 240w,\n/static/4403d62212e2dfd746ee86f4bde2f5fa/e85cb/image-20221211135308504.png 480w,\n/static/4403d62212e2dfd746ee86f4bde2f5fa/d9199/image-20221211135308504.png 960w,\n/static/4403d62212e2dfd746ee86f4bde2f5fa/d2f5c/image-20221211135308504.png 1363w\"\n            sizes=\"(max-width: 960px) 100vw, 960px\"\n            type=\"image/png\"\n          />\n          <img\n            class=\"gatsby-resp-image-image\"\n            src=\"/static/4403d62212e2dfd746ee86f4bde2f5fa/d9199/image-20221211135308504.png\"\n            alt=\"image-20221211135308504\"\n            title=\"image-20221211135308504\"\n            loading=\"lazy\"\n            style=\"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;\"\n          />\n        </picture>\n  </a>\n    </span></p>\n<h2 id=\"update-what-to-do-if-disk-management-cannot-create-a-primary-partition\" style=\"position:relative;\"><a href=\"#update-what-to-do-if-disk-management-cannot-create-a-primary-partition\" aria-label=\"update what to do if disk management cannot create a primary partition permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Update: What to do if Disk Management cannot create a primary partition</h2>\n<p>If creating a partition from Disk Management does not result in a primary partition, you can create the partition from <code class=\"language-text\">diskpart</code>.</p>\n<div class=\"gatsby-highlight\" data-language=\"bash\"><pre class=\"language-bash\"><code class=\"language-bash\"><span class=\"token comment\"># Identify the ID of the target disk</span>\nDISKPART<span class=\"token operator\">></span> list disk\n  Disk <span class=\"token comment\">###  Status         Size     Free     Dyn  Gpt</span>\n  --------  -------------  -------  -------  ---  ---\n  Disk <span class=\"token number\">0</span>    Online          <span class=\"token number\">465</span> GB  <span class=\"token number\">1024</span> KB        *\n  Disk <span class=\"token number\">2</span>    Online          <span class=\"token number\">238</span> GB  <span class=\"token number\">1024</span> KB        *\n\n<span class=\"token comment\"># Select the target disk and run clean.</span>\nDISKPART<span class=\"token operator\">></span> <span class=\"token keyword\">select</span> disk <span class=\"token number\">2</span>\nclean\n\n\nDISKPART<span class=\"token operator\">></span> create partition primary <span class=\"token assign-left variable\">size</span><span class=\"token operator\">=</span><span class=\"token number\">600</span> <span class=\"token assign-left variable\">offset</span><span class=\"token operator\">=</span><span class=\"token number\">0</span>\nDISKPART<span class=\"token operator\">></span> list partition\n\n  Partition <span class=\"token comment\">###  Type              Size     Offset</span>\n  -------------  ----------------  -------  -------\n* Partition <span class=\"token number\">1</span>    Primary            <span class=\"token number\">600</span> MB  <span class=\"token number\">1024</span> KB\n\nDISKPART<span class=\"token operator\">></span> <span class=\"token keyword\">select</span> partition <span class=\"token number\">1</span>\nDISKPART<span class=\"token operator\">></span> <span class=\"token function\">format</span> <span class=\"token assign-left variable\">fs</span><span class=\"token operator\">=</span>fat32\nDISKPART<span class=\"token operator\">></span> active</code></pre></div>\n<h2 id=\"update-installing-usbpcap-prevents-the-os-from-booting\" style=\"position:relative;\"><a href=\"#update-installing-usbpcap-prevents-the-os-from-booting\" aria-label=\"update installing usbpcap prevents the os from booting permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Update: Installing USBPcap prevents the OS from booting</h2>\n<p>After installing <code class=\"language-text\">USBPcap</code> on an SSD connected over USB and rebooting, I ran into a problem where the OS would no longer boot and instead displayed “Preparing Automatic Repair” during startup.</p>\n<p>Unfortunately, even after trying to delete all of the following folders and registry entries created during installation from the externally connected SSD, the boot failure did not go away.</p>\n<ul>\n<li>%ProgramFiles%\\USBPcap</li>\n<li>C:\\Windows\\System32\\drivers\\USBPcap.sys</li>\n<li>HKLM\\System\\CurrentControlSet\\Services\\USBPcap</li>\n<li>HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\USBPcap</li>\n</ul>\n<p>As far as I could tell, deleting the items above should have been enough to return the system to the state before <code class=\"language-text\">USBPcap</code> was installed, but I still could not figure out the cause.</p>\n<p>I do not think it is rewriting system files, but at the moment, if this problem occurs, I have not found any solution other than setting up the boot SSD again.</p>","fields":{"slug":"/note-how-to-create-bootmedia-external-ssd-en","tagSlugs":["/tag/windows/","/tag/memo/","/tag/english/"]},"frontmatter":{"date":"2022-03-03","description":"","tags":["Windows","Memo","English"],"title":"Create Bootable Windows Media on a USB-Connected External SSD with DISM and BCDBoot","socialImage":{"publicURL":"/static/b27aa09d25b74779e12f1458bf91ad24/note-how-to-create-bootmedia-external-ssd.png"}}}},"pageContext":{"slug":"/note-how-to-create-bootmedia-external-ssd-en"}},"staticQueryHashes":["251939775","401334301","825871152"]}