{"id":41046,"date":"2026-02-06T08:00:00","date_gmt":"2026-02-06T13:00:00","guid":{"rendered":"https:\/\/www.dmcinfo.com\/?p=41046"},"modified":"2026-01-28T14:55:53","modified_gmt":"2026-01-28T19:55:53","slug":"resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2","status":"publish","type":"post","link":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/","title":{"rendered":"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0"},"content":{"rendered":"\n<p>After spending hours&nbsp;building a&nbsp;Yocto&nbsp;Linux&nbsp;image&nbsp;in WSL2, it is discouraging&nbsp;to&nbsp;see&nbsp;it&nbsp;crash&nbsp;with a&nbsp;deceptively simple&nbsp;error&nbsp;with surprisingly complex root causes:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">ShellScript<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly> No space left on device (errno = 28, ENOSPC) <\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #DCDCAA\">No<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">space<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">left<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">on<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">device<\/span><span style=\"color: #D4D4D4\"> (errno <\/span><span style=\"color: #CE9178\">=<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">28<\/span><span style=\"color: #CE9178\">,<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">ENOSPC<\/span><span style=\"color: #D4D4D4\">) <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This error often shows up late in the build&nbsp;after&nbsp;you\u2019ve&nbsp;already invested significant&nbsp;time,&nbsp;and it can come back even after&nbsp;cleaning up&nbsp;build&nbsp;files&nbsp;and artifacts. The reason is that WSL&nbsp;storage has one extra layer compared to a typical Linux workstation, and&nbsp;Yocto&nbsp;is&nbsp;excellent&nbsp;at stressing it.&nbsp;<\/p>\n\n\n\n<p>This post walks through what ENOSPC really means in WSL2, why&nbsp;Yocto&nbsp;triggers it so reliably, how to diagnose the root cause, and the correct fixes that make your builds predictable again.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-enospc-actually-means-and-why-wsl2-makes-it-trickier\">What ENOSPC Actually Means (and Why WSL2 Makes It Trickier)<\/h2>\n\n\n\n<p>On a traditional Linux machine,&nbsp;ENOSPC&nbsp;usually means one of two things:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You\u2019re&nbsp;out of disk space<\/li>\n\n\n\n<li>You\u2019re&nbsp;out of&nbsp;inodes&nbsp;(metadata entries used to track files)&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>In WSL2,\u00a0there\u2019s\u00a0a third common cause: the Linux filesystem lives inside a\u00a0<a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/wsl\/disk-space\" target=\"_blank\" rel=\"noreferrer noopener\">virtual hard disk file<\/a>\u00a0on Windows (typically\u00a0<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\"><strong><em>ext4.vhdx<\/em><\/strong><\/mark>).\u00a0So,\u00a0you effectively have\u00a0two storages:\u00a0<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Inside WSL2 (Linux view) &#8211; An ext4 filesystem with \u201cavailable space\u201d&nbsp;<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>On Windows (host view) &#8211;&nbsp;A&nbsp;VHDX file that must be able to expand on the host disk&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>If the VHDX&nbsp;can\u2019t&nbsp;grow (because the Windows&nbsp;host&nbsp;drive is full, or because&nbsp;you\u2019ve&nbsp;hit a configured limit), Linux reports&nbsp;ENOSPC&nbsp;even if&nbsp;you clearly remember&nbsp;deleting&nbsp;a bunch of files yesterday.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-nbsp-yocto-nbsp-builds-hit-the-wall-so-fast-nbsp\">Why&nbsp;Yocto&nbsp;Builds Hit the Wall So Fast&nbsp;<\/h2>\n\n\n\n<p>Yocto&nbsp;produces a large amount of output and (more importantly) a massive number of small files. A typical build tree can easily exceed 100GB once you include build artifacts, shared state, downloads, logs, and repeated iterations.&nbsp;A representative footprint looks like&nbsp;this:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">build\/tmp<\/mark><\/em><\/strong><\/td><td>~ 90 GB<\/td><\/tr><tr><td><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">sstate-cache<\/mark><\/em><\/strong><\/td><td>~ 9 GB<\/td><\/tr><tr><td><strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">downloads<\/mark><\/em><\/strong><\/td><td>~ 2 GB<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Even a \u201csingle\u201d build can push you into triple-digit GB usage quickly,&nbsp;especially with multiple machine configs, SDKs, images, or rebuild cycles.&nbsp;This is why even developers with large SSDs hit space issues faster than expected.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-you-shouldn-t-put-yocto-under-mnt\">Why You\u00a0Shouldn\u2019t\u00a0Put\u00a0Yocto\u00a0Under\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">\/mnt\/\u2026<\/mark><\/em><\/strong>\u00a0<\/h2>\n\n\n\n<p>It\u2019s\u00a0tempting to just place your\u00a0Yocto\u00a0workspace on a Windows host drive (<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">\/mnt\/c\/yocto\/\u2026<\/mark><\/em><\/strong>), so it uses space on your physical SSD instead of the virtual hard disk file. But\u00a0the\u00a0Windows filesystem (NTFS) gets mounted into WLS via a translation layer. That cross-OS layer is convenient, but\u00a0it\u2019s\u00a0not\u00a0optimized\u00a0for this style of compilations\/builds that deal with\u00a0hundreds of thousands of files.\u00a0<\/p>\n\n\n\n<p>Microsoft\u2019s guidance for these situations is\u00a0<a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/wsl\/filesystems\" target=\"_blank\" rel=\"noreferrer noopener\">straightforward<\/a>: for best performance, keep your build files\u00a0inside the WSL filesystem. So, using the physical SSD\u00a0won\u2019t\u00a0work in this case,\u00a0and we should\u00a0keep the\u00a0Yocto\u00a0tree under something like\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">~\/yocto<\/mark><\/em><\/strong>, and not under\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">\/mnt\/c\u2026<\/mark><\/em><\/strong>\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-the-right-fix-clean-reclaim-and-put-the-vhdx-on-the-right-disk-nbsp\">The Right Fix: Clean, Reclaim, and Put the VHDX on the Right Disk&nbsp;<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-1-clean-nbsp-yocto-nbsp-build-artifacts-inside-wsl-nbsp\">Step 1: Clean&nbsp;Yocto&nbsp;Build Artifacts (Inside WSL)&nbsp;<\/h3>\n\n\n\n<p>If you need to get unblocked quickly, removing build outputs helps:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">ShellScript<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>rm -rf build\/tmp\/* \nrm -rf sstate-cache\/* \nrm -rf downloads\/* <\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">rm<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-rf<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">build\/tmp\/<\/span><span style=\"color: #569CD6\">*<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">rm<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-rf<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">sstate-cache\/<\/span><span style=\"color: #569CD6\">*<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">rm<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-rf<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">downloads\/<\/span><span style=\"color: #569CD6\">*<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This frees space&nbsp;inside&nbsp;ext4, which may be enough to complete a build.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-2-shrink-optimize-the-vhdx-so-windows-actually-gets-space-back\">Step 2: Shrink\/Optimize the VHDX (So Windows Actually Gets Space Back)<\/h3>\n\n\n\n<p>Deleting files inside ext4 does\u00a0not\u00a0necessarily reduce the physical size of\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">ext4.vhdx<\/mark><\/em><\/strong>.\u00a0It\u2019s\u00a0common for the VHDX to grow during heavy workloads and\u00a0<a href=\"https:\/\/github.com\/microsoft\/WSL\/issues\/4699\" target=\"_blank\" rel=\"noreferrer noopener\">not automatically return that space to Windows<\/a>.\u00a0<\/p>\n\n\n\n<p>To reclaim space on the Windows host, shut down WSL, then&nbsp;optimize&nbsp;the VHDX from PowerShell:&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">ShellScript<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>wsl --shutdown \nOptimize-VHD -Path \"D:\\WSL\\Ubuntu\\ext4.vhdx\" -Mode Full <\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">wsl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--shutdown<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">Optimize-VHD<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-Path<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">&quot;D:\\WSL\\Ubuntu\\ext4.vhdx&quot;<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">-Mode<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Full<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This approach is commonly recommended for&nbsp;<a href=\"https:\/\/learn.microsoft.com\/en-us\/answers\/questions\/4006845\/reduce-disk-space-consumption-for-wsl\" target=\"_blank\" rel=\"noreferrer noopener\">compacting WSL VHDX files after cleanup<\/a>.<\/p>\n\n\n\n<p>Note:&nbsp;Optimize-VHD&nbsp;requires&nbsp;the Hyper-V VHD tooling (available on many Windows editions). If you&nbsp;don\u2019t&nbsp;have it, you may need to enable the&nbsp;appropriate Windows features.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-step-3-move-the-wsl-distribution-to-a-larger-drive-nbsp\">Step 3: Move the WSL Distribution to a Larger Drive&nbsp;<\/h3>\n\n\n\n<p>If your&nbsp;Yocto&nbsp;workflow is a long-term need, the most robust fix is to ensure the distro (and therefore the VHDX&nbsp;file) lives on a drive with plenty of headroom.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-method-nbsp-0-nbsp-why-moving-ubuntu-in-windows-settings-nbsp-doesn-t-nbsp-work-nbsp\">Method&nbsp;0:&nbsp;Why \u201cMoving Ubuntu\u201d in Windows Settings&nbsp;Doesn\u2019t&nbsp;Work&nbsp;<\/h4>\n\n\n\n<p>Windows has an&nbsp;app setting that&nbsp;appears to \u201cmove\u201d&nbsp;Ubuntu. In practice, this often moves the&nbsp;application wrapper, not necessarily the underlying storage you care about&nbsp;(VHDX file).&nbsp;If you need more space, you typically need to&nbsp;move the&nbsp;distribution\u2019s&nbsp;VHDX&nbsp;(or&nbsp;relocate&nbsp;the distro) to a larger drive using WSL-supported methods (covered below).&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-method-a-export-import-reliable-and-widely-supported\">Method A: Export \/ Import (Reliable and Widely Supported)<\/h4>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">ShellScript<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>wsl --export Ubuntu D:\\backup\\ubuntu.tar \nwsl --unregister Ubuntu \nwsl --import Ubuntu D:\\WSL\\Ubuntu D:\\backup\\ubuntu.tar --version 2 <\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">wsl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--export<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Ubuntu<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">D:<\/span><span style=\"color: #D7BA7D\">\\b<\/span><span style=\"color: #CE9178\">ackup<\/span><span style=\"color: #D7BA7D\">\\u<\/span><span style=\"color: #CE9178\">buntu.tar<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">wsl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--unregister<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Ubuntu<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">wsl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--import<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Ubuntu<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">D:<\/span><span style=\"color: #D7BA7D\">\\W<\/span><span style=\"color: #CE9178\">SL<\/span><span style=\"color: #D7BA7D\">\\U<\/span><span style=\"color: #CE9178\">buntu<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">D:<\/span><span style=\"color: #D7BA7D\">\\b<\/span><span style=\"color: #CE9178\">ackup<\/span><span style=\"color: #D7BA7D\">\\u<\/span><span style=\"color: #CE9178\">buntu.tar<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--version<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This moves the distro storage to\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">D:\\WSL\\Ubuntu<\/mark><\/em><\/strong>\u00a0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-method-b-wsl-manage-move-newer-simpler\">Method B:\u00a0<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\"><strong><em>wsl\u00a0&#8211;manage &#8211;move<\/em><\/strong><\/mark>\u00a0(Newer, Simpler)\u00a0<\/h4>\n\n\n\n<p>Newer WSL releases include a built-in move command:&nbsp;<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#D4D4D4;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:16px 0 0 16px;width:100%;text-align:left;background-color:#1e1e1e\"><span style=\"background:#c7c7c7;padding:0.3rem 0.5rem 0.2rem;border-radius:1rem;font-size:0.8em;line-height:1;height:1.25rem;text-align:center;display:inline-flex;align-items:center;justify-content:center;color:#1e1e1e\">ShellScript<\/span><\/span><span role=\"button\" tabindex=\"0\" style=\"color:#D4D4D4;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>wsl --update \nwsl --manage Ubuntu --move D:\\WSL\\Ubuntu \u00a0<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki dark-plus\" style=\"background-color: #1E1E1E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #DCDCAA\">wsl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--update<\/span><span style=\"color: #D4D4D4\"> <\/span><\/span>\n<span class=\"line\"><span style=\"color: #DCDCAA\">wsl<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--manage<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">Ubuntu<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #569CD6\">--move<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">D:<\/span><span style=\"color: #D7BA7D\">\\W<\/span><span style=\"color: #CE9178\">SL<\/span><span style=\"color: #D7BA7D\">\\U<\/span><span style=\"color: #CE9178\">buntu<\/span><span style=\"color: #D4D4D4\"> <\/span><span style=\"color: #CE9178\">\u00a0<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>This is supported in WSL versions that include the\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">&#8211;move<\/mark><\/em><\/strong>\u00a0option\u00a0and is often the cleanest approach when available.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion-nbsp\">Conclusion&nbsp;<\/h2>\n\n\n\n<p>In WSL2, \u201cNo space left on device\u201d often\u00a0isn\u2019t\u00a0just about what\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">df<\/mark><\/em><\/strong>\u00a0shows inside Linux.\u00a0It\u2019s about how WSL stores Linux data in a Windows-hosted VHDX that expands over time and may not automatically shrink.\u00a0<\/p>\n\n\n\n<p>The most reliable path to predictable&nbsp;Yocto&nbsp;builds is:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Yocto\u00a0is not a 20 GB project. Budget\u00a0hundreds\u00a0of GB.\u00a0<\/li>\n\n\n\n<li>Keep\u00a0Yocto\u00a0workspaces on ext4 inside WSL (not\u00a0<strong><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-custom-medium-blue-color\">\/mnt\/*<\/mark><\/em><\/strong>).<\/li>\n\n\n\n<li>Clean build artifacts when needed.<\/li>\n\n\n\n<li>Compact the VHDX after cleanup.<\/li>\n\n\n\n<li>Move the&nbsp;VHDL file&nbsp;to a larger drive.<\/li>\n<\/ol>\n\n\n\n<p>If you&nbsp;are working through WSL2\u202fand\/or\u202fYocto&nbsp;setup challenges, or&nbsp;\u201cworks\u2011on\u2011my\u2011machine\u201d&nbsp;issues&nbsp;across your team, DMC can help you design&nbsp;and set up&nbsp;a development environment that&nbsp;is&nbsp;stable, scalable, and fast.&nbsp;<\/p>\n\n\n\n<p><strong>Learn more about DMC&#8217;s <a href=\"https:\/\/www.dmcinfo.com\/services\/embedded-development-and-embedded-programming\/\">embedded development and programming<\/a> expertise and <a href=\"https:\/\/www.dmcinfo.com\/contact#get-in-touch\">contact us today<\/a>&nbsp;to&nbsp;get started.<\/strong><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After spending hours&nbsp;building a&nbsp;Yocto&nbsp;Linux&nbsp;image&nbsp;in WSL2, it is discouraging&nbsp;to&nbsp;see&nbsp;it&nbsp;crash&nbsp;with a&nbsp;deceptively simple&nbsp;error&nbsp;with surprisingly complex root causes: This error often shows up late in the build&nbsp;after&nbsp;you\u2019ve&nbsp;already invested significant&nbsp;time,&nbsp;and it can come back even after&nbsp;cleaning up&nbsp;build&nbsp;files&nbsp;and artifacts. The reason is that WSL&nbsp;storage has one extra layer compared to a typical Linux workstation, and&nbsp;Yocto&nbsp;is&nbsp;excellent&nbsp;at stressing it.&nbsp; This post walks through [&hellip;]<\/p>\n","protected":false},"author":26,"featured_media":41067,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[754],"tags":[],"class_list":["post-41046","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-embedded-development-programming"],"yoast_head":"<title>Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0 | DMC, Inc.<\/title>\n<meta name=\"description\" content=\"Learn what ENOSPC really means when building a\u00a0Yocto\u00a0image\u00a0in WSL2 and how to diagnose and correct the error in this guide by DMC, Inc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0\" \/>\n<meta property=\"og:description\" content=\"Learn what ENOSPC really means when building a\u00a0Yocto\u00a0image\u00a0in WSL2 and how to diagnose and correct the error in this guide by DMC, Inc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/\" \/>\n<meta property=\"og:site_name\" content=\"DMC, Inc.\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-06T13:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1536\" \/>\n\t<meta property=\"og:image:height\" content=\"658\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Aleksey Mullin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aleksey Mullin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/\"},\"author\":{\"name\":\"Aleksey Mullin\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/person\/0e19061e0b46e4f229c3d5b9ac9a9af4\"},\"headline\":\"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0\",\"datePublished\":\"2026-02-06T13:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/\"},\"wordCount\":1038,\"publisher\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg\",\"articleSection\":[\"Embedded Development &amp; Programming\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/\",\"url\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/\",\"name\":\"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0 | DMC, Inc.\",\"isPartOf\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg\",\"datePublished\":\"2026-02-06T13:00:00+00:00\",\"description\":\"Learn what ENOSPC really means when building a\u00a0Yocto\u00a0image\u00a0in WSL2 and how to diagnose and correct the error in this guide by DMC, Inc.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage\",\"url\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg\",\"contentUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg\",\"width\":1536,\"height\":658,\"caption\":\"hands typing on a laptop with code\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dmcinfo.com\/#website\",\"url\":\"https:\/\/www.dmcinfo.com\/\",\"name\":\"DMC, Inc.\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dmcinfo.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.dmcinfo.com\/#organization\",\"name\":\"DMC, Inc.\",\"url\":\"https:\/\/www.dmcinfo.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png\",\"contentUrl\":\"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png\",\"width\":418,\"height\":167,\"caption\":\"DMC, Inc.\"},\"image\":{\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929\",\"https:\/\/www.instagram.com\/dmcengineering\",\"https:\/\/www.youtube.com\/DMCEngineering\",\"https:\/\/www.linkedin.com\/company\/dmc-engineering\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/person\/0e19061e0b46e4f229c3d5b9ac9a9af4\",\"name\":\"Aleksey Mullin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dmcinfo.com\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/26.png\",\"contentUrl\":\"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/26.png\",\"caption\":\"Aleksey Mullin\"},\"url\":\"https:\/\/www.dmcinfo.com\/blog\/author\/alekseym\/\"}]}<\/script>","yoast_head_json":{"title":"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0 | DMC, Inc.","description":"Learn what ENOSPC really means when building a\u00a0Yocto\u00a0image\u00a0in WSL2 and how to diagnose and correct the error in this guide by DMC, Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/","og_locale":"en_US","og_type":"article","og_title":"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0","og_description":"Learn what ENOSPC really means when building a\u00a0Yocto\u00a0image\u00a0in WSL2 and how to diagnose and correct the error in this guide by DMC, Inc.","og_url":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/","og_site_name":"DMC, Inc.","article_publisher":"https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929","article_published_time":"2026-02-06T13:00:00+00:00","og_image":[{"width":1536,"height":658,"url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg","type":"image\/jpeg"}],"author":"Aleksey Mullin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aleksey Mullin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#article","isPartOf":{"@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/"},"author":{"name":"Aleksey Mullin","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/person\/0e19061e0b46e4f229c3d5b9ac9a9af4"},"headline":"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0","datePublished":"2026-02-06T13:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/"},"wordCount":1038,"publisher":{"@id":"https:\/\/www.dmcinfo.com\/#organization"},"image":{"@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg","articleSection":["Embedded Development &amp; Programming"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/","url":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/","name":"Resolving \u201cNo Space Left on Device\u201d (ENOSPC) When Building\u00a0Yocto\u00a0in WSL2\u00a0 | DMC, Inc.","isPartOf":{"@id":"https:\/\/www.dmcinfo.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage"},"image":{"@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg","datePublished":"2026-02-06T13:00:00+00:00","description":"Learn what ENOSPC really means when building a\u00a0Yocto\u00a0image\u00a0in WSL2 and how to diagnose and correct the error in this guide by DMC, Inc.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/blog\/41046\/resolving-no-space-left-on-device-enospc-when-building-yocto-in-wsl2\/#primaryimage","url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg","contentUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2026\/01\/23114856\/computer-programming-hero.jpg","width":1536,"height":658,"caption":"hands typing on a laptop with code"},{"@type":"WebSite","@id":"https:\/\/www.dmcinfo.com\/#website","url":"https:\/\/www.dmcinfo.com\/","name":"DMC, Inc.","description":"","publisher":{"@id":"https:\/\/www.dmcinfo.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dmcinfo.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dmcinfo.com\/#organization","name":"DMC, Inc.","url":"https:\/\/www.dmcinfo.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png","contentUrl":"https:\/\/cdn.dmcinfo.com\/wp-content\/uploads\/2025\/05\/27171146\/dmc-logo-1.png","width":418,"height":167,"caption":"DMC, Inc."},"image":{"@id":"https:\/\/www.dmcinfo.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/pages\/DMC-Inc\/107982009242929","https:\/\/www.instagram.com\/dmcengineering","https:\/\/www.youtube.com\/DMCEngineering","https:\/\/www.linkedin.com\/company\/dmc-engineering"]},{"@type":"Person","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/person\/0e19061e0b46e4f229c3d5b9ac9a9af4","name":"Aleksey Mullin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dmcinfo.com\/#\/schema\/person\/image\/","url":"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/26.png","contentUrl":"\/\/www.dmcinfo.com\/wp-content\/uploads\/wpo365\/profile-images\/26.png","caption":"Aleksey Mullin"},"url":"https:\/\/www.dmcinfo.com\/blog\/author\/alekseym\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts\/41046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/users\/26"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/comments?post=41046"}],"version-history":[{"count":17,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts\/41046\/revisions"}],"predecessor-version":[{"id":41214,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/posts\/41046\/revisions\/41214"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/media\/41067"}],"wp:attachment":[{"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/media?parent=41046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/categories?post=41046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dmcinfo.com\/wp-json\/wp\/v2\/tags?post=41046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}