{"id":4788,"date":"2019-05-30T13:25:03","date_gmt":"2019-05-30T20:25:03","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/commandline\/?p=4788"},"modified":"2019-05-30T16:09:31","modified_gmt":"2019-05-30T23:09:31","slug":"a-deep-dive-into-how-wsl-allows-windows-to-access-linux-files","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/commandline\/a-deep-dive-into-how-wsl-allows-windows-to-access-linux-files\/","title":{"rendered":"A Deep Dive Into How WSL Allows Windows to Access Linux Files"},"content":{"rendered":"<p>Three months ago, we announced that the Windows Subsystem for Linux will be able to access Linux files from Windows in the blog post: <a href=\"https:\/\/devblogs.microsoft.com\/commandline\/whats-new-for-wsl-in-windows-10-version-1903\/\">What\u2019s new for WSL in Windows 10 version 1903<\/a>, and in today\u2019s post we will be showing you how we made these changes possible.<\/p>\n<h2>Let&#8217;s jump in!<\/h2>\n<p>We\u2019re continuing our whiteboard series of deep dives (you can find the full list <a href=\"https:\/\/devblogs.microsoft.com\/commandline\/learn-about-windows-console-and-windows-subsystem-for-linux-wsl\/#deep-dives\">here<\/a>) with a new video where Sven Groot and Craig Loewen explain the full architecture behind this new feature. You can expect to learn about how WSL currently accesses Linux files, how we\u2019ve added a 9P file server into the init process of each Linux distro, and how Windows interacts with that 9P file server to interact with Linux files inside of your distro. So, grab a coffee and a snack, sit down, relax, and enjoy this look behind the scenes of WSL!<\/p>\n<div style=\"text-align:center;\">\n  <iframe width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/63wVlI9B3Ac\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div>\n<p>You can also view this video <a href=\"https:\/\/channel9.msdn.com\/Shows\/Going+Deep\/How-WSL-accesses-Linux-files-from-Windows\">on Channel 9<\/a> and <a href=\"https:\/\/youtu.be\/63wVlI9B3Ac\">on YouTube<\/a>.<\/p>\n<h2>How does this story fit in with WSL 2?<\/h2>\n<p>We don\u2019t explicitly mention <a href=\"https:\/\/devblogs.microsoft.com\/commandline\/announcing-wsl-2\/\">WSL 2<\/a> in the video above as at the time of filming we were still finalizing the details behind WSL 2, and ultimately there are very little changes to our explanation of how Linux files are accessed from Windows with the new architecture.<\/p>\n<p>The only difference from the explanation in the video, is where the Linux files themselves are stored. In WSL 1, these Linux files are stored in the Windows drive (which uses the NT file system), while in WSL 2 these Linux files are stored in a virtual hard disk which uses the EXT4 file system. Every other detail on how the files are accessed remains the same.<\/p>\n<h2>What would you like to see next?<\/h2>\n<p>If you have more questions about how we use a 9P file server, accessing Linux files, or just about WSL in general you can find a list of our team members on twitter <a href=\"https:\/\/twitter.com\/craigaloewen\/lists\/wsl-team-members\/members\">here<\/a>! Please feel free to reach out to ask us any questions, and give suggestions on any other deep dives that you\u2019d be interested in seeing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Three months ago, we announced that the Windows Subsystem for Linux will be able to access Linux files from Windows in the blog post: What\u2019s new for WSL in Windows 10 version 1903, and in today\u2019s post we will be showing you how we made these changes possible. Let&#8217;s jump in! We\u2019re continuing our whiteboard [&hellip;]<\/p>\n","protected":false},"author":2191,"featured_media":4799,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4788","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash-on-ubuntu-on-windows"],"acf":[],"blog_post_summary":"<p>Three months ago, we announced that the Windows Subsystem for Linux will be able to access Linux files from Windows in the blog post: What\u2019s new for WSL in Windows 10 version 1903, and in today\u2019s post we will be showing you how we made these changes possible. Let&#8217;s jump in! We\u2019re continuing our whiteboard [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/4788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/users\/2191"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/comments?post=4788"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/posts\/4788\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media\/4799"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/media?parent=4788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/categories?post=4788"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/commandline\/wp-json\/wp\/v2\/tags?post=4788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}