<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">Windows에 WSL기능이 추가되면서 Linux를 윈도우에서 사용할 수 있게 되었다. 그런데 WSL이 완전한 Linux는 아니기 때문에 여러가지 제약사항이 존재하는데 바로 USB 장치를 연결하는 것이다. 하지만 이것도 찾아보니 가능한 작업이었다. 이번 포스트에서는 WSL에 USB장치를 연결하는 법을 알아보자. WSL에서 USB장치를 연결하는 것은 오픈소스 프로젝트인 usbipd-win이라는 프로젝트로 가능하다.&nbsp;</p>
<h2 data-ke-size="size26" style="margin: 29px 0px 22px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; clear: both; line-height: 2; font-weight: normal;">0. 환경</h2>
<ul data-ke-list-type="disc" style="margin: 0px 0px 22px; padding: 0px; list-style-position: inside; list-style-image: initial; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;">
   <li style="margin: 0px 0px 10px; padding: 0px 0px 0px 22px; list-style-position: inherit; list-style-image: inherit; list-style-type: disc; position: relative; font-size: 0.9375em; line-height: 1.4; color: #666666; text-indent: -10px;">WSL에서 USB장치를 연결하기 위해서는 다음과 같은 요구사항이 있따.</li>
   <li style="margin: 0px 0px 10px; padding: 0px 0px 0px 22px; list-style-position: inherit; list-style-image: inherit; list-style-type: disc; position: relative; font-size: 0.9375em; line-height: 1.4; color: #666666; text-indent: -10px;">Windows 11 이상(혹은 WSL2가 활성화된 Windows10)</li>
   <li style="margin: 0px 0px 10px; padding: 0px 0px 0px 22px; list-style-position: inherit; list-style-image: inherit; list-style-type: disc; position: relative; font-size: 0.9375em; line-height: 1.4; color: #666666; text-indent: -10px;">x64/x86 CPU(ARM은 지원하지 않아요)</li>
   <li style="margin: 0px 0px 10px; padding: 0px 0px 0px 22px; list-style-position: inherit; list-style-image: inherit; list-style-type: disc; position: relative; font-size: 0.9375em; line-height: 1.4; color: #666666; text-indent: -10px;">WSL2에 설치된 Linux.(커널 5.10.60.1 이상)</li>
   </ul>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">참고로 Linux 커널 버전은 uname -a 명령어로 확인 할 수 있으며, 커널버전이 낮을 경우 wsl --update 명령어로 업데이트 하면 가능하다.</p>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="1159" data-origin-height="372" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/cxTxHj/btrTRpsCUcW/Zj1shhzGdFKPITRj3NeFF1/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/cxTxHj/btrTRpsCUcW/Zj1shhzGdFKPITRj3NeFF1/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcxTxHj%2FbtrTRpsCUcW%2FZj1shhzGdFKPITRj3NeFF1%2Fimg.png" data-origin-width="1159" data-origin-height="372" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<h2 data-ke-size="size26" style="margin: 29px 0px 22px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; clear: both; line-height: 2; font-weight: normal;">1. USBIPD-WIN 설치하기</h2>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;"><a href="https://github.com/dorssel/usbipd-win/releases" target="_blank" rel="noopener" style="text-decoration-line: none; color: #04beb8;">https://github.com/dorssel/usbipd-win/releases</a>&nbsp;에서 usbipd-win 을 다운받아 설치한다.</p>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="774" data-origin-height="601" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/c0K5Jv/btrTVUrlahH/pVqvXeiHvJDSkqnjBLd2tK/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/c0K5Jv/btrTVUrlahH/pVqvXeiHvJDSkqnjBLd2tK/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fc0K5Jv%2FbtrTVUrlahH%2FpVqvXeiHvJDSkqnjBLd2tK%2Fimg.png" width="400" data-origin-width="774" data-origin-height="601" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">cmd 콘솔창을 다시 켜 usbipd 명령어를 실행하여 실행되는지 확인한다.</p>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="1534" data-origin-height="871" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/b9dHjz/btrTSLBKEzs/Mn59DyiparK2qkVwf4jaz0/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/b9dHjz/btrTSLBKEzs/Mn59DyiparK2qkVwf4jaz0/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb9dHjz%2FbtrTSLBKEzs%2FMn59DyiparK2qkVwf4jaz0%2Fimg.png" data-origin-width="1534" data-origin-height="871" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<div class="revenue_unit_wrap" style="margin: 20px 0px; padding: 0px; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;">
   <div class="revenue_unit_item adsense responsive" style="margin: 0px; padding: 0px; position: relative; box-sizing: border-box; background-position: 50% 50%; background-repeat: no-repeat; background-image: url(&quot;//t1.daumcdn.net/tistory_admin/static/revenue/adsense.svg&quot;);"><ins class="adsbygoogle" data-ad-host="ca-host-pub-9691043933427338" data-ad-client="ca-pub-3696437811109315" data-ad-format="auto" data-adsbygoogle-status="done" data-ad-status="filled" style="display: block; height: 280px;">
         <div id="aswift_2_host" tabindex="0" title="Advertisement" aria-label="Advertisement" style="margin: 0px; padding: 0px; border: none; height: 280px; width: 756px; position: relative; visibility: visible; display: inline-block; overflow: visible;"><iframe id="aswift_2" name="aswift_2" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="756" height="280" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3696437811109315&amp;output=html&amp;h=280&amp;adk=2547474805&amp;adf=3409523958&amp;w=756&amp;fwrn=4&amp;fwrnh=100&amp;lmt=1676124376&amp;rafmt=1&amp;format=756x280&amp;url=https%3A%2F%2Flucidmaj7.tistory.com%2F388&amp;host=ca-host-pub-9691043933427338&amp;fwr=0&amp;rpe=1&amp;resp_fmts=3&amp;wgl=1&amp;uach=WyJXaW5kb3dzIiwiMTAuMC4wIiwieDg2IiwiIiwiMTA5LjAuNTQxNC4xMjEiLFtdLGZhbHNlLG51bGwsIjY0IixbWyJOb3RfQSBCcmFuZCIsIjk5LjAuMC4wIl0sWyJHb29nbGUgQ2hyb21lIiwiMTA5LjAuNTQxNC4xMjEiXSxbIkNocm9taXVtIiwiMTA5LjAuNTQxNC4xMjEiXV0sZmFsc2Vd&amp;dt=1676124376755&amp;bpp=1&amp;bdt=830&amp;idt=117&amp;shv=r20230207&amp;mjsv=m202302080101&amp;ptt=9&amp;saldr=aa&amp;abxe=1&amp;cookie=ID%3D7683a47a7e06ac69-22b5454fbbd900f9%3AT%3D1676118110%3ART%3D1676118110%3AS%3DALNI_MY8o8zG4_vWyNXbL_EgDOzAR9CV_A&amp;gpic=UID%3D00000bbfc1b09316%3AT%3D1676118110%3ART%3D1676118110%3AS%3DALNI_MaY8Uf1urnGMZkaWjsu0kWKpAlJZw&amp;prev_fmts=0x0%2C756x280&amp;nras=1&amp;correlator=6176162519126&amp;frm=20&amp;pv=1&amp;ga_vid=914402863.1676118110&amp;ga_sid=1676124377&amp;ga_hid=1320357281&amp;ga_fc=1&amp;ga_cid=1387108235.1676118110&amp;u_tz=540&amp;u_his=3&amp;u_h=1440&amp;u_w=2560&amp;u_ah=1400&amp;u_aw=2560&amp;u_cd=24&amp;u_sd=1&amp;dmc=8&amp;adx=91&amp;ady=2997&amp;biw=1261&amp;bih=1286&amp;scr_x=0&amp;scr_y=0&amp;eid=44759876%2C44759927%2C44759837%2C44719338%2C31072225%2C31072272%2C44779794%2C31071264&amp;oid=2&amp;pvsid=1716754198714516&amp;tmod=1231742580&amp;uas=0&amp;nvt=1&amp;ref=https%3A%2F%2Fwww.google.com%2F&amp;eae=0&amp;fc=1920&amp;brdim=-7%2C0%2C-7%2C0%2C2560%2C0%2C1294%2C1407%2C1278%2C1286&amp;vis=1&amp;rsz=o%7C%7CeEbr%7C&amp;abl=CS&amp;pfx=0&amp;fu=128&amp;bc=31&amp;ifi=3&amp;uci=a!3&amp;btvi=1&amp;fsb=1&amp;xpc=5wqmCftNUm&amp;p=https%3A//lucidmaj7.tistory.com&amp;dtd=122" data-google-container-id="a!3" data-google-query-id="CPP97fDRjf0CFRrzvAodqp0EOA" data-load-complete="true" style="margin: 0px auto; max-width: 100%; left: 0px; position: absolute; top: 0px; border-width: 0px; border-style: initial; width: 756px; height: 280px;"></iframe></div>
         </ins></div>
   </div>
<h2 data-ke-size="size26" style="margin: 29px 0px 22px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; clear: both; line-height: 2; font-weight: normal;">&nbsp;</h2>
<h2 data-ke-size="size26" style="margin: 29px 0px 22px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; clear: both; line-height: 2; font-weight: normal;">2. WSL Linux에 USBIP tools와 하드웨어 데이터베이스 설치하기</h2>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">WSL로 돌아와서 USBIP Tools와 하드웨어 데이터베이스를 설치해줘야한다. 다음 명령어를 실행한다.</p>
<pre id="code_1671338409726" class="bash" data-ke-language="bash" data-ke-type="codeblock" style="overflow: auto; margin-top: 25px; margin-bottom: 25px; padding: 0px; border-radius: 5px; box-shadow: rgba(34, 0, 51, 0.04) 0px 12px 18px 2px, rgba(7, 48, 114, 0.12) 0px 6px 22px 4px, rgba(14, 13, 26, 0.12) 0px 6px 10px -4px; word-break: break-all; white-space: pre-wrap; overflow-wrap: break-word; color: #555555;">
   <code class="hljs" style="margin: 0px; padding: 0.5em; font-family: source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; display: block; overflow-x: auto; color: #abb2bf; background: rgb(40, 44, 52);">sudo apt install linux-tools-5.4.0-77-generic hwdata
sudo update-alternatives --install /usr/<span class="hljs-built_in" style="color: #e6c07b;">local</span>/bin/usbip usbip /usr/lib/linux-tools/5.4.0-77-generic/usbip 20</code>
   </pre>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="1534" data-origin-height="871" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/dtDLBd/btrTUDpQFJ9/JLfLjj2StmkfPDgscyEilK/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/dtDLBd/btrTUDpQFJ9/JLfLjj2StmkfPDgscyEilK/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdtDLBd%2FbtrTUDpQFJ9%2FJLfLjj2StmkfPDgscyEilK%2Fimg.png" data-origin-width="1534" data-origin-height="871" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<h2 data-ke-size="size26" style="margin: 29px 0px 22px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; clear: both; line-height: 2; font-weight: normal;">3. USB장치 연결해 보기</h2>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">Powershell이나 cmd를 관리자모드로 열어 다음 명령어로 USB장치 리스트를 확인한다. 나는 Iphone 6를 연결하려한다.</p>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="1325" data-origin-height="296" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/7WK27/btrTZyOT3RL/eR8jljYEav76tMNadx66Yk/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/7WK27/btrTZyOT3RL/eR8jljYEav76tMNadx66Yk/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F7WK27%2FbtrTZyOT3RL%2FeR8jljYEav76tMNadx66Yk%2Fimg.png" data-origin-width="1325" data-origin-height="296" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">아이폰6의 BUSID는 1-4이므로 다음명령어로 attach를 한다.</p>
<pre id="code_1671340593490" class="bash" data-ke-language="bash" data-ke-type="codeblock" style="overflow: auto; margin-top: 25px; margin-bottom: 25px; padding: 0px; border-radius: 5px; box-shadow: rgba(34, 0, 51, 0.04) 0px 12px 18px 2px, rgba(7, 48, 114, 0.12) 0px 6px 22px 4px, rgba(14, 13, 26, 0.12) 0px 6px 10px -4px; word-break: break-all; white-space: pre-wrap; overflow-wrap: break-word; color: #555555;">
   <code class="hljs" style="margin: 0px; padding: 0.5em; font-family: source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; display: block; overflow-x: auto; color: #abb2bf; background: rgb(40, 44, 52);">usbipd wsl attach --busid &lt;busid&gt;</code>
   </pre>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="1021" data-origin-height="115" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/bylQgf/btrTRGudeJ7/TU71IaliBDXnVWhgeii6IK/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/bylQgf/btrTRGudeJ7/TU71IaliBDXnVWhgeii6IK/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbylQgf%2FbtrTRGudeJ7%2FTU71IaliBDXnVWhgeii6IK%2Fimg.png" data-origin-width="1021" data-origin-height="115" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">하지만 아이폰 연결이 다음과 같은 에러를 표시하면서 되지 않는 경우가 생긴다.</p>
<blockquote data-ke-style="style1" style="font-size: 15pt; line-height: 23pt; color: #333333; margin: 20px auto 0px; padding: 34px 0px 0px; border: 0px none; border-top-right-radius: 4px; border-bottom-right-radius: 4px; background-image: url(&quot;https://t1.daumcdn.net/keditor/dist/0.4.9/image/blockquote-style1.svg&quot;); background-position: 50% 0px; background-size: initial; background-repeat: no-repeat; background-attachment: initial; background-origin: initial; background-clip: initial; text-align: center; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif;"><span style="font-family: &quot;Noto Serif KR&quot;;">usbip:&nbsp;error:&nbsp;Attach&nbsp;Request&nbsp;for&nbsp;1-4&nbsp;failed&nbsp;-&nbsp;Device&nbsp;busy&nbsp;(exported)</span></blockquote>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">예상하기로는 Windows에서 이미 iphone을 점유하고 사용하고 있어 장치를 WSL로 attach할 수 없는 것으로 보인다.</p>
<h3 data-ke-size="size23" style="font-size: 1.3125em; margin: 29px 0px 22px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; clear: both; line-height: 1.5; font-weight: normal;">3-1. usbipd&nbsp;Device busy 에러 해결하기</h3>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">위와 같은 에러를 해결하는데 핵심 아이디어는 Windows가 점유하기 전에 wsl에 attach를 해주는 것이다. 그러기 위해서 bind명령을 통해 usbipd가 usb 장치를 먼저 점유하게 해준다. 이때 force 옵션을 추가한다.</p>
<pre id="code_1671346524884" class="bash" data-ke-language="bash" data-ke-type="codeblock" style="overflow: auto; margin-top: 25px; margin-bottom: 25px; padding: 0px; border-radius: 5px; box-shadow: rgba(34, 0, 51, 0.04) 0px 12px 18px 2px, rgba(7, 48, 114, 0.12) 0px 6px 22px 4px, rgba(14, 13, 26, 0.12) 0px 6px 10px -4px; word-break: break-all; white-space: pre-wrap; overflow-wrap: break-word; color: #555555;">
   <code class="hljs" style="margin: 0px; padding: 0.5em; font-family: source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; display: block; overflow-x: auto; color: #abb2bf; background: rgb(40, 44, 52);">usbipd <span class="hljs-built_in" style="color: #e6c07b;">bind</span> --force -b 1-4</code>
   </pre>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">명령 실행후 usbipd list 명령을 실행하여보면 state는 shared(force)로 변경된 것을 볼 수 있다.</p>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="1303" data-origin-height="372" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/Z3usW/btrTSxKwrdw/J6Yu6MGEavlmK0Rr4lDRkk/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/Z3usW/btrTSxKwrdw/J6Yu6MGEavlmK0Rr4lDRkk/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FZ3usW%2FbtrTSxKwrdw%2FJ6Yu6MGEavlmK0Rr4lDRkk%2Fimg.png" data-origin-width="1303" data-origin-height="372" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">다음 아이폰을 재 연결 해보자. 아이폰을 재연결하면 장치관리자에 iphone이 나타나지 않는 것 을 볼 수 있다.</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">이제 다시 attach 명령을 실행해보자.</p>
<pre id="code_1671349890742" class="bash" data-ke-language="bash" data-ke-type="codeblock" style="overflow: auto; margin-top: 25px; margin-bottom: 25px; padding: 0px; border-radius: 5px; box-shadow: rgba(34, 0, 51, 0.04) 0px 12px 18px 2px, rgba(7, 48, 114, 0.12) 0px 6px 22px 4px, rgba(14, 13, 26, 0.12) 0px 6px 10px -4px; word-break: break-all; white-space: pre-wrap; overflow-wrap: break-word; color: #555555;">
   <code class="hljs" style="margin: 0px; padding: 0.5em; font-family: source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; display: block; overflow-x: auto; color: #abb2bf; background: rgb(40, 44, 52);">usbipd wsl attach -b 1-4</code>
   </pre>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="1384" data-origin-height="401" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/bLDFh4/btrTQPyDATY/bsplIzZDkCQF65wESFRmRK/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/bLDFh4/btrTQPyDATY/bsplIzZDkCQF65wESFRmRK/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbLDFh4%2FbtrTQPyDATY%2FbsplIzZDkCQF65wESFRmRK%2Fimg.png" data-origin-width="1384" data-origin-height="401" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">이렇게 아이폰이 wsl에 attach 된 것을 확인 할 수 있다.</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">wsl에서도 다음과 같이 확인해보자.&nbsp;</p>
<pre id="code_1671349969107" class="ebnf" data-ke-language="bash" data-ke-type="codeblock" style="overflow: auto; margin-top: 25px; margin-bottom: 25px; padding: 0px; border-radius: 5px; box-shadow: rgba(34, 0, 51, 0.04) 0px 12px 18px 2px, rgba(7, 48, 114, 0.12) 0px 6px 22px 4px, rgba(14, 13, 26, 0.12) 0px 6px 10px -4px; word-break: break-all; white-space: pre-wrap; overflow-wrap: break-word; color: #555555;">
   <code class="hljs" style="margin: 0px; padding: 0.5em; font-family: source-code-pro, Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; display: block; overflow-x: auto; color: #abb2bf; background: rgb(40, 44, 52);">lsusb</code>
   </pre>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<figure class="imageblock alignCenter" data-ke-mobilestyle="widthOrigin" data-origin-width="942" data-origin-height="255" style="margin: 0px auto 20px; max-width: 100%; clear: both; padding: 0px; display: table; position: relative; text-align: center; color: #555555; font-family: Ubuntu, &quot;Noto Sans KR&quot;, sans-serif; font-size: 16px;"><span data-url="https://blog.kakaocdn.net/dn/bkLfQR/btrTQ2dvGzZ/l63kK0727K77ta8wuK54f0/img.png" data-lightbox="lightbox" style="cursor: pointer;"><img src="https://blog.kakaocdn.net/dn/bkLfQR/btrTQ2dvGzZ/l63kK0727K77ta8wuK54f0/img.png" srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbkLfQR%2FbtrTQ2dvGzZ%2Fl63kK0727K77ta8wuK54f0%2Fimg.png" data-origin-width="942" data-origin-height="255" style="border: none; vertical-align: top; max-width: 100%; display: inline-block; border-radius: 5px; width: 756px; margin: 0px; height: auto;" /></span></figure>
<p style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">WSL에서도 usb장치가 연결 된 것을 확인 할 수 있다.</p>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;">&nbsp;</p>
<h2 data-ke-size="size26" style="margin: 29px 0px 22px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; clear: both; line-height: 2; font-weight: normal;">참고</h2>
<p data-ke-size="size16" style="margin-bottom: 16px; padding: 0px; font-family: &quot;Noto Sans KR&quot;, sans-serif; -webkit-font-smoothing: antialiased; font-size: 1.02rem; color: #222426; line-height: 1.8; overflow-wrap: break-word;"><a href="https://learn.microsoft.com/en-us/windows/wsl/connect-usb" target="_blank" rel="noopener" style="text-decoration-line: none; color: #04beb8;">https://learn.microsoft.com/en-us/windows/wsl/connect-usb</a></p>