{"id":34136,"date":"2024-06-27T10:34:09","date_gmt":"2024-06-27T02:34:09","guid":{"rendered":"https:\/\/www.deepin.org\/?p=34136"},"modified":"2024-06-27T11:05:19","modified_gmt":"2024-06-27T03:05:19","slug":"how-to-mount-a-linux-disk-on-windows-via-wsl-2","status":"publish","type":"post","link":"https:\/\/www.deepin.org\/zh\/how-to-mount-a-linux-disk-on-windows-via-wsl-2\/","title":{"rendered":"\u6280\u672f\u5e02\u96c6 | \u5982\u4f55\u901a\u8fc7WSL 2\u5728Windows\u4e0a\u6302\u8f7dLinux\u78c1\u76d8\uff1f"},"content":{"rendered":"<section><\/section>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406270254278081_zh.png\" alt=\"\" width=\"900\" height=\"383\" \/><\/p>\n<p>\u4f60\u662f\u5426\u5e38\u5e38\u82e6\u607c\uff0c\u4e3a\u4e86\u4f20\u8f93\u6216\u8005\u5171\u4eab\u4e0d\u540c\u7cfb\u7edf\u7684\u6587\u4ef6\u9700\u8981\u9891\u7e41\u5730\u5728 Windows \u548c Linux \u7cfb\u7edf\u4e4b\u95f4\u5207\u6362\uff0c\u65e2\u803d\u8bef\u5de5\u4f5c\u6548\u7387\uff0c\u4e5f\u5bb9\u6613\u51fa\u9519\u3002<\/p>\n<p>\u90a3\u4e48\u6709\u6ca1\u6709\u4e00\u79cd\u529e\u6cd5\uff0c\u80fd\u591f\u8ba9\u4f60\u5728Windows\u7cfb\u7edf\u4e2d\u50cf\u8bbf\u95ee\u672c\u5730\u786c\u76d8\u4e00\u6837\u6765\u64cd\u4f5cLinux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u5462\uff1f<\/p>\n<p>\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5206\u4eab\u7684\u5b9e\u7528\u64cd\u4f5c\u80fd\u591f\u5e2e\u52a9\u5230\u6709\u9700\u8981\u7684\u670b\u53cb\u3002<\/p>\n<p>&nbsp;<\/p>\n<section><\/section>\n<section><\/section>\n<section><\/section>\n<section>\n<section data-role=\"outer\">\n<section data-role=\"title\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"141089\">\n<section>\n<section>\n<section>\n<section>\n<section>\n<h1 style=\"text-align: center;\"><strong data-brushtype=\"text\">\u5148\u51b3\u6761\u4ef6<\/strong><\/h1>\n<\/section>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-role=\"paragraph\">\u9700\u8981\u5728Windows 10 2004 \u53ca\u66f4\u9ad8\u7248\u672c\uff08Build 19041 \u53ca\u66f4\u9ad8\u7248\u672c\uff09\u6216 Windows 11\u7cfb\u7edf\u7684\u524d\u63d0\u4e0b\u64cd\u4f5c\u3002<\/section>\n<section data-role=\"paragraph\"><\/section>\n<p data-role=\"paragraph\">\n<\/section>\n<section data-role=\"outer\">\n<section data-role=\"title\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"141089\">\n<section>\n<section>\n<section>\n<section>\n<section>\n<h1 style=\"text-align: center;\"><strong data-brushtype=\"text\">\u7b2c\u4e00\u6b65\uff1a\u5728 Windows \u4e0a\u5b89\u88c5 WSL<\/strong><\/h1>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section>1.\u4ee5\u7ba1\u7406\u5458\u6a21\u5f0f\u6253\u5f00 PowerShell \u6216 Windows \u547d\u4ee4\u63d0\u793a\u7b26:<\/p>\n<ul class=\"list-paddingleft-1\">\n<li>\u6309\u4e0bWin + X\u7ec4\u5408\u952e\uff0c\u6253\u5f00\u5feb\u901f\u8bbf\u95ee\u83dc\u5355\u3002<\/li>\n<li>\u5728\u83dc\u5355\u4e2d\u9009\u62e9\u201cWindows PowerShell\uff08\u7ba1\u7406\u5458\uff09\u201d\uff0c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cPowerShell\u3002<\/li>\n<\/ul>\n<p>2.\u8f93\u5165<span style=\"text-decoration: underline;\">\u00a0wsl install\u00a0<\/span>\u547d\u4ee4\u3002<\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406270217167887_\u5fae\u4fe1\u56fe\u7247_20240627101103.jpg\" alt=\"\" width=\"984\" height=\"258\" \/><\/p>\n<\/section>\n<\/section>\n<\/section>\n<p>\u5b8c\u6210\u540e\u91cd\u65b0\u542f\u52a8\u7535\u8111\u3002<\/p>\n<p>3.\u7535\u8111\u91cd\u542f\u540e\uff0c\u4f60\u9700\u8981\u4e3a\u65b0\u5b89\u88c5\u7684 Linux \u5b50\u7cfb\u7edf\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u8d26\u6237\u548c\u5bc6\u7801\u3002<\/p>\n<blockquote><p><em>\u5907\u6ce8\uff1a\u9002\u7528\u4e8e Linux \u7684 Windows \u5b50\u7cfb\u7edf (WSL) \u662f Windows \u7684\u4e00\u9879\u529f\u80fd\uff0c\u53ef\u7528\u4e8e\u5728 Windows \u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c Linux \u73af\u5883\uff0c\u800c\u65e0\u9700\u5355\u72ec\u7684\u865a\u62df\u673a\u6216\u53cc\u5f15\u5bfc\u3002WSL \u65e8\u5728\u4e3a\u5e0c\u671b\u540c\u65f6\u4f7f\u7528 Windows \u548c Linux \u7684\u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u65e0\u7f1d\u9ad8\u6548\u7684\u4f53\u9a8c\u3002<\/em><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<section>\n<section data-role=\"outer\">\n<section data-role=\"title\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"141089\">\n<section>\n<section>\n<section>\n<section>\n<section>\n<h1 style=\"text-align: center;\"><strong data-brushtype=\"text\">\u7b2c\u4e8c\u6b65\uff1a\u5728WSL 2\u4e2d\u6302\u8f7d\u78c1\u76d8<\/strong><\/h1>\n<\/section>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section>\n<h2><strong>\u83b7\u53d6\u9a71\u52a8\u5668\u5217\u8868<\/strong><\/h2>\n<\/section>\n<\/section>\n<ol class=\"list-paddingleft-1\">\n<li>\u4ee5\u7ba1\u7406\u5458\u6a21\u5f0f\u6253\u5f00 PowerShell \u6216 Windows \u547d\u4ee4\u63d0\u793a\u7b26;<\/li>\n<li>\u8fd0\u884c\u547d\u4ee4\uff08<span style=\"text-decoration: underline;\">wmic diskdrive list brief<\/span>\uff09\uff0c\u83b7\u53d6\u53ef\u7528\u9a71\u52a8\u5668\u5217\u8868\u3002<\/li>\n<\/ol>\n<\/section>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406270217256389_\u5fae\u4fe1\u56fe\u7247_20240627101224.jpg\" alt=\"\" width=\"853\" height=\"99\" \/><\/p>\n<p><strong>\u547d\u4ee4\u89e3\u91ca\uff1a<\/strong><\/p>\n<p><span style=\"text-decoration: underline;\">wmic diskdrive list brief\u00a0<\/span>\u662f\u4e00\u4e2a\u7528\u4e8e\u5217\u51fa\u7cfb\u7edf\u4e2d\u6240\u6709\u78c1\u76d8\u9a71\u52a8\u5668\u7684 Windows Management Instrumentation Command-line (WMIC) \u547d\u4ee4\u3002WMIC \u662f Windows \u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7528\u4e8e\u7ba1\u7406\u7cfb\u7edf\u7684\u4e00\u4e2a\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n<ol class=\"list-paddingleft-1\">\n<li><strong>Caption<\/strong>: \u78c1\u76d8\u9a71\u52a8\u5668\u7684\u7b80\u77ed\u63cf\u8ff0\uff0c\u901a\u5e38\u4e0e Model \u7c7b\u4f3c\uff0c\u4f46\u53ef\u80fd\u5305\u542b\u66f4\u591a\u7684\u7528\u6237\u53cb\u597d\u4fe1\u606f\u3002<\/li>\n<li><strong>DeviceID<\/strong>: \u78c1\u76d8\u9a71\u52a8\u5668\u7684\u8bbe\u5907\u6807\u8bc6\u7b26\u3002<\/li>\n<li><strong>Model<\/strong>: \u78c1\u76d8\u9a71\u52a8\u5668\u7684\u578b\u53f7\u3002<\/li>\n<li><strong>Partitions<\/strong>: \u78c1\u76d8\u9a71\u52a8\u5668\u4e0a\u7684\u5206\u533a\u6570\u91cf\u3002<\/li>\n<li><strong>Size<\/strong>: \u78c1\u76d8\u9a71\u52a8\u5668\u7684\u5927\u5c0f\uff0c\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<section>\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section>\n<h2><strong>WSL \u6302\u8f7d<\/strong><\/h2>\n<\/section>\n<\/section>\n<p>\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u7684\u5916\u7f6e\u786c\u76d8\u662f PHYSICALDRIVE1 \uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u52a0\u8f7d\u5b83\uff1a<\/p>\n<p><span style=\"text-decoration: underline;\">wsl --mount \\\\.\\PHYSICALDRIVE1 --partition 1<\/span><\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406270217411847_\u5fae\u4fe1\u56fe\u7247_20240627101421.jpg\" alt=\"\" width=\"856\" height=\"88\" \/><\/p>\n<\/section>\n<p><strong>\u547d\u4ee4\u89e3\u91ca\uff1a<\/strong><\/p>\n<ol class=\"list-paddingleft-1\">\n<li><strong>wsl<\/strong>: \u8fd9\u662f\u542f\u52a8 Windows Subsystem for Linux \u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/li>\n<li><strong>--mount<\/strong>: \u8be5\u9009\u9879\u7528\u4e8e\u6302\u8f7d\u7269\u7406\u78c1\u76d8\u6216\u5176\u5206\u533a\u5230 WSL \u4e2d\u3002<\/li>\n<li><strong>.\\PHYSICALDRIVE1<\/strong>: \u8fd9\u662f\u6307\u5b9a\u7684\u7269\u7406\u9a71\u52a8\u5668\u3002\u5728 Windows \u4e2d\uff0c\u7269\u7406\u9a71\u52a8\u5668\u901a\u5e38\u6807\u8bc6\u4e3a \\\\.\\PHYSICALDRIVE0\uff0c\\\\.\\PHYSICALDRIVE1 \u7b49\u7b49\uff0c\u8fd9\u91cc\u6307\u7684\u662f\u7b2c\u4e8c\u4e2a\u7269\u7406\u9a71\u52a8\u5668\u3002<\/li>\n<li><strong>--partition 1<\/strong>: \u8fd9\u662f\u6307\u5b9a\u8981\u6302\u8f7d\u7684\u5206\u533a\u7f16\u53f7\u3002<\/li>\n<\/ol>\n<p>\u8981\u6302\u8f7d\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\uff0c\u53ef\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<span style=\"text-decoration: underline;\">wsl --mount \\\\.\\PHYSICALDRIVE1 --partition 1 -t ext3<\/span><\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406270222182195_\u5fae\u4fe1\u56fe\u7247_20240627102141.jpg\" alt=\"\" width=\"856\" height=\"79\" \/><\/p>\n<p>&nbsp;<\/p>\n<section>\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section>\n<h2><strong>\u56fe\u5f62\u5316\u8bbf\u95ee\u6302\u8f7d\u7684\u786c\u76d8<\/strong><\/h2>\n<\/section>\n<\/section>\n<p>\u8981\u8bbf\u95ee\u5df2\u6302\u8f7d\u7684\u78c1\u76d8\uff0c\u8bf7\u6253\u5f00 Windows \u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\uff0c\u7136\u540e\u6253\u5f00 Linux \u7c7b\u522b\u5e76\u5bfc\u822a\u5230\/mnt\/wsl<\/p>\n<\/section>\n<section><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406270222271107_\u5fae\u4fe1\u56fe\u7247_20240627102158.jpg\" alt=\"\" width=\"980\" height=\"266\" \/><\/section>\n<section><\/section>\n<p>&nbsp;<\/p>\n<section>\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section>\n<h2><strong>\u5378\u8f7d\u78c1\u76d8<\/strong><\/h2>\n<\/section>\n<\/section>\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u5378\u8f7d\u78c1\u76d8\uff1a<\/p>\n<p><span style=\"text-decoration: underline;\">wsl --unmount \\\\.\\PHYSICALDRIVE1<\/span><\/p>\n<p><img loading=\"lazy\" src=\"https:\/\/storage.deepin.org\/thread\/202406270223421920_\u5fae\u4fe1\u56fe\u7247_20240627102329.jpg\" alt=\"\" width=\"551\" height=\"46\" \/><\/p>\n<p>&nbsp;<\/p>\n<\/section>\n<section><\/section>\n<section><\/section>\n<section>\n<section data-role=\"title\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"141089\">\n<section>\n<section>\n<section>\n<section>\n<section>\n<h1 style=\"text-align: center;\"><strong data-brushtype=\"text\">\u603b\u7ed3<\/strong><\/h1>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>\u5bf9\u4e8e\u9700\u8981\u9891\u7e41\u5728Windows\u548cLinux\u7cfb\u7edf\u4e4b\u95f4\u5207\u6362\u7684\u7528\u6237\u6765\u8bf4\uff0cWindows \u6302\u8f7d Linux \u78c1\u76d8\u662f\u4e00\u4e2a\u6bd4\u8f83\u5b9e\u7528\u7684\u64cd\u4f5c\uff0c\u80fd\u591f\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e4b\u95f4\u65b9\u4fbf\u5730\u8fdb\u884c\u6587\u4ef6\u5171\u4eab\u548c\u64cd\u4f5c\u3002\u611f\u5174\u8da3\u7684\u670b\u53cb\u5feb\u6765\u8bd5\u8bd5\u5427\uff01<\/p>\n<p>\u6700\u540e\uff0c\u7279\u522b\u611f\u8c22deepin\uff08\u6df1\u5ea6\uff09\u8bba\u575b\u7528<em>\u6237\u4e1c\u5937\u6d6a\u5b50<\/em>\u521b\u4f5c\u6b64\u6559\u7a0b\uff0c\u4e5f\u6b22\u8fce\u5404\u4f4d\u7528\u6237\u80fd\u79ef\u6781\u6295\u7a3f\uff0c\u6211\u4eec\u4f1a\u5b9a\u671f\u7cbe\u9009\u5185\u5bb9\u8fdb\u884c\u5c55\u793a\u5ba3\u4f20\uff0c\u5171\u540c\u5c06\u8fd9\u4e2a\u6280\u672f\u5e02\u96c6\u641e\u7684\u7ea2\u7ea2\u706b\u706b\u3002<\/p>\n<\/section>\n<p>&nbsp;<\/p>\n<section><\/section>\n<section>\n<article id=\"post-34123\" class=\"post-34123 post type-post status-publish format-standard hentry category-community-news\">\n<div class=\"entry-content\">\n<h1><strong>\u9644\u5f55\uff1a<\/strong><\/h1>\n<p><strong>\uff081\uff09deepin V23 RC2 \uff1a<\/strong><a href=\"https:\/\/www.deepin.org\/zh\/download\/\">https:\/\/www.deepin.org\/zh\/download\/<\/a><\/p>\n<p><strong>\uff082\uff09deepin \u5386\u53f2\u7248\u672c\u955c\u50cf\uff08\u542b deepin V15\uff09\uff1a<\/strong><a href=\"https:\/\/distrowatch.com\/index.php?distribution=deepin\">https:\/\/distrowatch.com\/index.php?distribution=deepin<\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: right;\">\u5185\u5bb9\u6765\u6e90\uff1adeepin\uff08\u6df1\u5ea6\uff09\u793e\u533a<\/p>\n<p style=\"text-align: right;\">\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904<\/p>\n<\/div>\n<\/article>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>\u4f60\u662f\u5426\u5e38\u5e38\u82e6\u607c\uff0c\u4e3a\u4e86\u4f20\u8f93\u6216\u8005\u5171\u4eab\u4e0d\u540c\u7cfb\u7edf\u7684\u6587\u4ef6\u9700\u8981\u9891\u7e41\u5730\u5728 Windows \u548c Linux \u7cfb\u7edf\u4e4b\u95f4\u5207\u6362\uff0c\u65e2\u803d\u8bef\u5de5\u4f5c\u6548\u7387\uff0c\u4e5f\u5bb9\u6613\u51fa\u9519\u3002 \u90a3\u4e48\u6709\u6ca1\u6709\u4e00\u79cd\u529e\u6cd5\uff0c\u80fd\u591f\u8ba9\u4f60\u5728Windows\u7cfb\u7edf\u4e2d\u50cf\u8bbf\u95ee\u672c\u5730\u786c\u76d8\u4e00\u6837\u6765\u64cd\u4f5cLinux\u7cfb\u7edf\u4e2d\u7684\u6587\u4ef6\u5462\uff1f \u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5206\u4eab\u7684\u5b9e\u7528\u64cd\u4f5c\u80fd\u591f\u5e2e\u52a9\u5230\u6709\u9700\u8981\u7684\u670b\u53cb\u3002 &nbsp; \u5148\u51b3\u6761\u4ef6 \u9700\u8981\u5728Windows 10 2004 \u53ca\u66f4\u9ad8\u7248\u672c\uff08Build 19041 \u53ca\u66f4\u9ad8\u7248\u672c\uff09 ...<a href=https:\/\/www.deepin.org\/zh\/how-to-mount-a-linux-disk-on-windows-via-wsl-2\/>\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":11164,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[155,93],"tags":[],"_links":{"self":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/34136"}],"collection":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/users\/11164"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/comments?post=34136"}],"version-history":[{"count":6,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/34136\/revisions"}],"predecessor-version":[{"id":34142,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/posts\/34136\/revisions\/34142"}],"wp:attachment":[{"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/media?parent=34136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/categories?post=34136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deepin.org\/zh\/wp-json\/wp\/v2\/tags?post=34136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}