Where is Ubuntu Installed on Windows 10? A Quick Guide
Running Ubuntu on a Windows 10 machine is a common request for users who want to explore Linux without sacrificing their existing Windows environment. The short answer to "where is Ubuntu installed on Windows 10" depends entirely on the method you used to install it. Unlike a native dual-boot setup, the installation path is virtualized and tied to the Windows file system, specifically within your user directory.
Understanding the Virtual Hard Disk (VHD) Structure
When you install Ubuntu on Windows 10 using the Windows Subsystem for Linux (WSL), the distribution is not installed in the traditional sense on a separate partition. Instead, it is packaged and stored as a virtual hard disk file. This file, usually with a `.vhdx` extension, contains the entire Ubuntu root file system. The location of this virtual disk is the key to answering where Ubuntu actually resides on your machine.
The Default User Directory Location
By default, the Ubuntu file system is stored deep within your Windows user profile folder. This design keeps the installation isolated and contained within your user permissions. You won't find it in `Program Files` or on the root of your C drive; it is hidden in your app data, which is the standard location for application-specific data that shouldn't be modified directly by the user.
- The typical path follows the structure: `%USERPROFILE%\AppData\Local\Packages\`
- Within this directory, you will find a folder named `CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\`.
- Inside this specific package folder, the actual VHD file is located at `LocalState\ext4.vhdx`.
Accessing the Installation via File Explorer
To verify this location on your own system, you can navigate through the Windows file system. Open File Explorer and paste the following path into the address bar, replacing `YourUsername` with your actual Windows login name. This will take you directly to the folder containing the Ubuntu disk image.
The full absolute path will look something like this:
C:\Users\YourUsername\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState
Alternative Installation Methods
While WSL is the most common way to run Ubuntu on Windows 10, it is not the only way. If you used a different tool, such as VirtualBox or VMware, the storage location changes significantly. In these scenarios, "where is Ubuntu installed on Windows 10" refers to the virtual machine configuration.
Virtualization software creates its own virtual hard drives, typically stored in a dedicated folder for virtual machines. You might find it in `Documents\Virtual Machines` or in a custom folder you specified during the initial setup of the virtual machine. These installations are completely separate from the WSL environment and function as independent operating systems running inside a window.
Checking Disk Management
If you are looking for a physical drive letter assignment, such as `E:` or `F:`, WSL does not usually assign one. However, if you used a tool like Disk Management to create a real partition on your hard drive before installing Ubuntu natively, you would find it there. This is distinct from the WSL installation. To check for these partitions, open the Disk Management utility by searching for it in the Windows search bar.