# How can I know on which drive is Windows installed?

Super User Asked by Pietro on August 24, 2020

I have two exact copies of Windows 10, one on drive C: and one on drive D:. These are two internal drives in the same laptop.

How can I know which Windows is running?

How can I select the one to launch during boot?

The drive letters like C: are only assigned during Runtime of a Windows installation, so they will usually be both C: for both your installations.

Open an elevated cmd.exe or Powershell.exe (as Administrator), then type:

diskpart


after a moment, type:

list volume


You get something like this:

 Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
----------  ---  -----------  -----  ----------  -------  ---------  --------
Volume 1         WinBOOT      FAT32  Partition    350 MB  Healthy    System
Volume 2     D   Win1         NTFS   Partition     31 GB  Healthy
Volume 3     C   Win2         NTFS   Partition     33 GB  Healthy    Boot
Volume 4     S   Data         NTFS   Partition    380 GB  Healthy


In this case you can see that the Windows on Volume 3 is currently running, there is another one on Volume 2, Boot in the Info column on the far right indicates that this is the current Windows Drive.

you can see the same by open Disk Management:

 diskmgmt.msc


and look for Boot in the Status column of volumes.

When setting up a dual boot Windows you should use descriptive names for each boot entry.

Correct answer by Peter Hahndorf on August 24, 2020

There are many options to do as others users told

A simplest option I use to identify OS in drive in multi boot is to right click the Windows start menu and click explore and the profile directory opens for the user and I got to know the drive letter from which I booted the OS

I have 2 Windows 10, 2 Windows 7 and 3 Windows XP installed and modified boot menu and categorised it and named it like Windows 10 for C drive (study), Windows 10 for D drive (games), Windows 10 for e drive (banking), Windows 10 for f drive (downloading)

You can modify boot menu with the following way

https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/changing-the-friendly-name-of-a-boot-entry

https://youtu.be/RICVlbN5phE

Secondly I run CMD which to opens in the default directory system directory where windows installed

Thirdly as told by other users following ways and commands and variables to know it

1. diskmgmt.msc
2. %windir% 3. echo %systemroot%
3. wmic OS GET SystemDrive /VALUE

Answered by Androidquery on August 24, 2020

Press Windows+R to bring up the Run command box.

Type in the command msconfig and press Enter,

This will bring up system configuration settings. Click on the 'Boot' tab.

Answered by Naeem on August 24, 2020

Some other ways

• Open the run dialog with Win+R, type then Enter. That'll show your Windows drive. (Tip: running . will show your home folder and .. will show your users folder)
• Open start menu, type "system info" and open System Information. You'll see the Windows Directory under System Summary
• Open start menu, type "disk management" or press Win+R > diskmgmt.msc > Enter. That'll list all the drives in your PC. The system drive will be listed with the Boot flag, most likely along with "Crash Dump" and "Page File"
• Simply press Win+R and run cmd. The path to cmd.exe is often shown on the title bar by default. On some systems it simply shows "Command Prompt" but in that case you can look at the prompt string which often points to your user folder in the system drive

This is quick but not reliable either, so while you're at the commmand prompt just run the commands in other answers or you can run echo %systemroot% or set sys

C:>set sys
SystemDrive=C:
SystemRoot=C:WINDOWS

• Press Win+Pause or right click My Computer > Properties > System Protection. Your system drive will be listed with the word "System"

That said, nowadays Windows often shows its system drive always as C: regardless of its system volume position in a drive, so a drive label or device name is more useful than a drive letter

Answered by phuclv on August 24, 2020

Open CMD an Type in wmic OS GET SystemDrive /VALUE

This Will Return System Drive Letter.

Answered by vaku on August 24, 2020

There are a few ways, and I'll mention the quickest ways that come into my mind.

1. Open Run dialog (Winkey+R) and type the below command and Enter, it'll open your current Windows installation directory

%windir%

2. Open Task manager and select a system process (something like svchost.exe or winlogon.exe) in Details/Processes tab. Right click on that and you can see Open File Location, which will also open your windows directory.

Answered by Vishwa on August 24, 2020

## Related Questions

### Regex: Select text/string between symbols that contains another symbol (tags that contains specific string)

2  Asked on November 3, 2021 by just-me

### Working in multiple languages/locales

2  Asked on November 3, 2021 by federico-nafria

### Issues with UEFI: Can’t save settings and can’t boot OS automatically

2  Asked on November 3, 2021 by devank-mishra

### How does a mobile phone carrier, who uses CGNAT, know when you’re using the internet?

1  Asked on November 3, 2021 by chardonnay1234

### does a CMD window stop running while Windows 10 lock screen is enabled?

4  Asked on November 3, 2021

4  Asked on November 3, 2021 by ian93

### Single source worksheet, and multiple pivot tables using filtered data

1  Asked on November 3, 2021

### DiskStation: OpenVPN TLS Handshake error (self-signed cert & defaults)

1  Asked on November 3, 2021 by user199124

### windows 10: Weird mouse movement (jumping and circle seen)

2  Asked on November 3, 2021 by user1480864

### How do I get rid of the “Finalise the string” pop-up for complex scripts in Word 2010?

3  Asked on November 3, 2021

### How to disable WSL password?

1  Asked on November 3, 2021

### How to solve “Error: There was an error trying to save the key to disk” when enabling Bitlocker via command line?

1  Asked on November 3, 2021 by a71

### Windows Update 2004 – Search box and start menu open simultaneously

1  Asked on November 3, 2021 by aerioeus

### How to disable Firefox address bar animation on fullscreen?

1  Asked on November 3, 2021 by jmkjaer

### Default-Gateway preferred over permanent explicit Static Route (Windows Server 2019)

1  Asked on November 3, 2021

### Split data into columns from Pivot Table

2  Asked on November 3, 2021

### What to do when I need more keys than my keyboard has?

13  Asked on November 3, 2021 by carlanthony-zasowski

### How to have unlimited text value in dropdown word doc

1  Asked on November 3, 2021 by serdia

### Can I mix copy and encode in one operation to have an accurate and fast cut?

1  Asked on November 3, 2021 by m-hamdy-ghanem