<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nathachai B.</title>
    <description>The latest articles on DEV Community by Nathachai B. (@exzenous).</description>
    <link>https://dev.to/exzenous</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1010454%2F6362fe43-7c0d-405b-a4fd-53ae53fba0f3.jpg</url>
      <title>DEV Community: Nathachai B.</title>
      <link>https://dev.to/exzenous</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/exzenous"/>
    <language>en</language>
    <item>
      <title>Easy Distro-hopping with WSL and Share you Data across Distros</title>
      <dc:creator>Nathachai B.</dc:creator>
      <pubDate>Wed, 02 Oct 2024 15:10:12 +0000</pubDate>
      <link>https://dev.to/exzenous/easy-distro-hopping-with-wsl-and-share-you-data-across-distros-2km9</link>
      <guid>https://dev.to/exzenous/easy-distro-hopping-with-wsl-and-share-you-data-across-distros-2km9</guid>
      <description>&lt;p&gt;Ever since Windows for Subsystem Linux (WSL) came out, my life has been so graceful and effortless as I am a System/DevOps Engineer, Developer as a hobby, especially on Windows 🪟.&lt;/p&gt;

&lt;p&gt;I can use tools and software that familiar to me in the Linux world without me needing another computer or virtual machine to spawn an instance of Linux and get in the loophole of managing those machines and selecting a distro of choice. &lt;/p&gt;

&lt;p&gt;As I also have another life in creative works that utilize tools like Adobe Suite. So, Windows is a platform of my choice.&lt;/p&gt;

&lt;p&gt;Choosing a Linux distro and stick with it is something that I wouldn't like to get into and WSL has advantages of giving me a freedom to choose and uncompromised.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdcz7a36zskishqqjud5z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdcz7a36zskishqqjud5z.png" alt="Linux on Microsoft Store"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Multiple Linux Distro?
&lt;/h2&gt;

&lt;p&gt;There're many reason to move across Linux distro (or Distro Hopping) but from one of my experiences, there are many occasion that a software you're looking to try is not available on your default package manager.&lt;/p&gt;

&lt;p&gt;For example, &lt;code&gt;k9s&lt;/code&gt; (at least from the first GitHub page) does not distribute on &lt;code&gt;apt&lt;/code&gt; so, you need to download and maintain yourself that binary which to my preference, would avoid it as it is much simpler to just let package manager do the job.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pvig0wgsmmdzegjncii.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pvig0wgsmmdzegjncii.png" alt="Downloading K9s from GitHub Guide"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Everything should be much simpler if you just distro hopping but if you think about it on bare-hardware, it often requires you a dual (or multiple) booting whereas WSL doesn't require you to restart your computer to hop distro.&lt;/p&gt;

&lt;p&gt;WSL with multiple Linux distro installed, I just open a terminal session for another distro, and done!&lt;/p&gt;

&lt;p&gt;For this instance, I go with &lt;code&gt;Arch Linux&lt;/code&gt; and install &lt;code&gt;k9s&lt;/code&gt; straight with &lt;code&gt;pacman&lt;/code&gt;. &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I use Arch, btw&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe3ldedrmej779id9806x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe3ldedrmej779id9806x.png" alt="Opening another Linux distro on Windows Terminal"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Kudos to: &lt;a href="https://github.com/yuk7/ArchWSL" rel="noopener noreferrer"&gt;ArchWSL&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Alright Multiple Distro, but we got another problem…
&lt;/h2&gt;

&lt;p&gt;As we can have so many distros installed but they all separated. Each of WSL Linux distro has its own disk. (From my own perspective and what I understand). Think of each a virtual machine but more integrated per say.&lt;/p&gt;

&lt;p&gt;Let say that you have a source code and you have been working on a Linux distro that you choose to daily drive but &lt;strong&gt;you maybe need to build or run on a different runtime version or even or using different tool or toolchain.&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I wouldn't talk about version manager stuffs like for &lt;code&gt;npm&lt;/code&gt; with &lt;code&gt;nvm&lt;/code&gt; to switch between Node versions but you go by running another Linux distro and just install a separate runtime on it&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In my case, I need a different tool for my work. I often connect to different Kubernetes Cluster with .yaml files. &lt;/p&gt;

&lt;p&gt;Where I daily drive Ubuntu where typical &lt;code&gt;kubectl&lt;/code&gt; commands are executed but I also use &lt;code&gt;k9s&lt;/code&gt; for TUI-interface but with the condition that I've mentioned about &lt;code&gt;k9s&lt;/code&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;So, I am looking for a way to put these .yaml file in one place and share across Linux distros.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  But WSL actually mount Windows Filesystem to Linux 🪟
&lt;/h2&gt;

&lt;p&gt;WSL actually accommodate us by mounting Windows Filesystem on Linux system by default. I just store them on Windows right? Problem solve!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good choice! But there's a catch&lt;/strong&gt; 🥶&lt;/p&gt;

&lt;p&gt;Long story short, the performance is not really good while accessing Windows filesystem (for WSL2) because of a protocol that was used to mount the drive.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;See: &lt;a href="https://stackoverflow.com/questions/68972448/why-is-wsl-extremely-slow-when-compared-with-native-windows-npm-yarn-processing" rel="noopener noreferrer"&gt;Why is WSL extremely slow when compared with native Windows NPM/Yarn processing? - Stack Overflow&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So, &lt;strong&gt;I need something that is native to Linux and also need to be external from one distro and requires portability.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;From that point, I decided making myself a separate (virtual) drive that is native to Linux (&lt;code&gt;ext4&lt;/code&gt;) to solve the performance problem and match to what I need.&lt;/p&gt;

&lt;p&gt;Windows has &lt;strong&gt;Virtual Hard Disk (VHD)&lt;/strong&gt; which comes in handy where I don't need to spare a partition for a separate drive and as it is a file, it offers portability!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Remarks: This is actually a part of my WSL portable setup. That's why it needs to be portable and using a virtual drive method.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Setup
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Fun fact: For a fortunate occasion, one of my co-worker bought a new computer to office and he must move his work from old to new so, I share him this WSL setup and also to you readers.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Let's go ahead and create one.&lt;/p&gt;

&lt;p&gt;1). Go to Windows Settings App &amp;gt; System &amp;gt; Storage &amp;gt; Disks &amp;amp; volumes &amp;gt; Create a virtual hard disk (VHD)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsl1qpjltyj6wzyq4amyk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsl1qpjltyj6wzyq4amyk.png" alt="Create a virtual hard disk (VHD)"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2). Create a VHD of a size of your choice without initialisation&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0c40dl4egwf98v1txi5q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0c40dl4egwf98v1txi5q.png" alt="Create a 60GB VHD"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I named it &lt;code&gt;Supernova&lt;/code&gt; with &lt;code&gt;.vhdx&lt;/code&gt; Format, Dynamic Disk Type.&lt;br&gt;
Mine is 60 GB (can be extend later, don't worry)&lt;/p&gt;

&lt;p&gt;After you create, don't initialise them yet. Just click &lt;code&gt;Cancel&lt;/code&gt; to skip it&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Felzvrx9f5srwdxuyv126.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Felzvrx9f5srwdxuyv126.png" alt="Skip Initialising VHD"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9xbs38n0tvjdnvcrwytt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9xbs38n0tvjdnvcrwytt.png" alt="VHD File on Disk"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3). Mount the Uninitialised Virtual Disk to WSL&lt;/p&gt;

&lt;p&gt;You need to get the Virtual Disk Identifier&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c"&gt;# PowerShell on Windows&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;GET-CimInstance&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-query&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"SELECT * from Win32_DiskDrive"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgxeu36q7fm3p2ef4ziw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgxeu36q7fm3p2ef4ziw.png" alt="Get Disk Identifier"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mine is &lt;code&gt;\\.\PHYSICALDRIVE3&lt;/code&gt;; &lt;em&gt;It should be in the same order as the settings page.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;And then mount the Virtual Disk to WSL&lt;/p&gt;

&lt;p&gt;As it is not initialised, must mount it as is with &lt;code&gt;--bare&lt;/code&gt; option&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c"&gt;# PowerShell on Windows&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;wsl&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--mount&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;\\.\PHYSICALDRIVE3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Supernova&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--bare&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;If you don't have &lt;code&gt;sudo&lt;/code&gt; for Windows yet, run Terminal with Administrator Privileges first&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In Linux Shell, Using &lt;code&gt;sudo fdisk -l&lt;/code&gt; to check it out.&lt;/p&gt;

&lt;p&gt;4). Initialise Disk on Linux&lt;/p&gt;

&lt;p&gt;Simple create a disk partition and format it to &lt;code&gt;ext4&lt;/code&gt;, I am using &lt;code&gt;fdisk&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl7rpzlgok19kyy4kzp0f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl7rpzlgok19kyy4kzp0f.png" alt="Using fdisk with a drive"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F60228gf6tzxonn7ujb1q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F60228gf6tzxonn7ujb1q.png" alt="Create GPT Partition"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr04lezrwrtqqhtyifvdr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr04lezrwrtqqhtyifvdr.png" alt="Create Primary Partition"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbz21cw1e8l8v8tkpf74.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvbz21cw1e8l8v8tkpf74.png" alt="Formating to ext4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5). Unmount and Re-mount the Disk&lt;/p&gt;

&lt;p&gt;After we initialise it with &lt;code&gt;fdisk&lt;/code&gt; on Linux.&lt;/p&gt;

&lt;p&gt;Go back to PowerShell on Windows, Unmount and Re-mount it with the first partition.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c"&gt;# PowerShell on Windows&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;wsl&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--unmount&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;\\.\PhysicalDrive3&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;sudo&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;wsl&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--mount&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;\\.\PhysicalDrive3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--name&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;Supernova&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-p&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;1&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqnvhytzixybtbaan5gcq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqnvhytzixybtbaan5gcq.png" alt="Unmount and Re-mount"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This will be automatically mounted to &lt;code&gt;/mnt/wsl/&amp;lt;Drive Name&amp;gt;&lt;/code&gt; as it is the WSL default mounting path. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;Drive Name&amp;gt;&lt;/code&gt; is corresponding to &lt;code&gt;--name&lt;/code&gt; parameter when you executing &lt;code&gt;wsl --mount&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F008y9bzms0y0cwzv1lme.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F008y9bzms0y0cwzv1lme.png" alt="Mounting Path"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In my uses, I store all of my work, data on that Virtual Drive and then make symlinks to data on the Virtual Drive.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbellokt6kls2tbvtkgi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqbellokt6kls2tbvtkgi.png" alt="Create Symlinks"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I wish I can do is storing my entire home directory with Virtual Drive.&lt;/p&gt;

&lt;p&gt;This is the same story as when you're installing Linux on bare-hardware with a separate /home on a separate partition.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Optional&lt;/strong&gt;: Setup auto-mounting when logging in with Task Scheduler with the same command.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyaa29bo75pg8wtg6ok8w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyaa29bo75pg8wtg6ok8w.png" alt="Automounting with Task Scheduler"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let see in action!&lt;/p&gt;

&lt;p&gt;I am writing file on &lt;code&gt;Arch&lt;/code&gt; and instantly appear on &lt;code&gt;Ubuntu&lt;/code&gt; and &lt;code&gt;OpenSUSE&lt;/code&gt;!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6fhwflep0nnq025ryosl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6fhwflep0nnq025ryosl.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Thanks for reading, hopping this is useful to y'all 😇&lt;/p&gt;

</description>
      <category>linux</category>
      <category>howto</category>
      <category>windowssubsystemlinux</category>
    </item>
  </channel>
</rss>
