Solved Where is the drive letter for the Windows partition?


Celery

Well-known member
Power User
Local time
5:01 AM
Posts
484
Location
Northern Europe
OS
Windows 11 Pro
This is a clean installation of Windows 11.

Where is the drive letter for the Windows partition when I boot from a USB stick?

IMG_2308.jpg

If I want to repair the EFI system partition, I need to use the following commands.

diskpart
list volume (note the volume number for the Windows partition)
select volume # (where # is the volume number of the Windows partition)
assign letter=w
exit

bcdboot w:\windows
 

My Computers My Computers

  • At a glance

    Windows 11 ProAMD Ryzen 9 9950X3DKingston FURY Beast 64GB (2x32GB) DDR5 6000MT/sASUS TUF Gaming Radeon RX 9070 OC Edition 16G...
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 9 9950X3D
    Motherboard
    ASRock B650E Taichi Lite
    Memory
    Kingston FURY Beast 64GB (2x32GB) DDR5 6000MT/s
    Graphics Card(s)
    ASUS TUF Gaming Radeon RX 9070 OC Edition 16GB GDDR6
    Hard Drives
    Solidigm P44 Pro 2TB M.2 NVMe SSD
  • At a glance

    Windows 11 HomeIntel Core Ultra 9 275HX64GB (2x 32GB) DDR5-6400NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Legion Pro 7i Gen 10 16"
    CPU
    Intel Core Ultra 9 275HX
    Memory
    64GB (2x 32GB) DDR5-6400
    Graphics card(s)
    NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Hard Drives
    2x 1TB M.2 NVMe SSD (SK Hynix)
diskpart
list volume (note the volume number for the Windows partition)
select volume # (where # is the volume number of the Windows partition)
assign letter=w
exit
bcdboot w:\windows
Your instructions say to note the volume number of the Windows partition, then you must assign it the drive letter W yourself before using it in the bcdboot command. You have to know what you are looking for to recognise the Windows partition.

From the size and format types....

Volume 0 = Windows partition
Volume 1 = EFI partition
Volume 2 = Recovery partition

and Volume 3 is a Windows install usb that you have just booted to a command prompt from.
 

My Computers My Computers

  • At a glance

    Windows 11 HomeAMD Athlon Silver 3050U8GBRadeon Graphics
    OS
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Acer Aspire 3 A315-23-R9VY
    CPU
    AMD Athlon Silver 3050U
    Memory
    8GB
    Graphics Card(s)
    Radeon Graphics
    Monitor(s) Displays
    laptop screen
    Screen Resolution
    1366x768 native resolution, up to 2560x1440 with Radeon Virtual Super Resolution
    Hard Drives
    1TB Samsung EVO 870 SSD (from April 2026: 250GB EVO 850)
    Internet Speed
    150 Mbps
    Browser
    Edge, Firefox
    Antivirus
    Defender
    Other Info
    UPDATE - 11 April 2026: due to lid hinges starting to break up this laptop has been retired from active duty. The OS with all software and files has been migrated to my System Seven in 'Other systems' to carry on as my general purpose 'main machine'.

    I've now clean installed 25H2 and used Garlin's scripts to update Secure Boot to CA 2023 and revoke the PCA 2011 certificates. It's new role is to test secure boot issues.

    Info for 2021-2026:
    fully 'Windows 11 ready' laptop. Windows 10 C: partition migrated from my old unsupported 'main machine' then upgraded to 11. A test migration ran Insider builds for 2 months. When 11 was released on 5th October 2021 it was re-imaged back to 10 and was offered the upgrade in Windows Update on 20th October. Windows Update offered the 22H2 Feature Update on 20th September 2022. It got the 23H2 Feature Update on 4th November 2023 through Windows Update, 24H2 on 3rd October 2024 through Windows Update by setting the Target Release Version for 24H2, and 25H2 on 30th September 2025 through Windows Update by setting the Target Release Version for 25H2.
  • At a glance

    Windows 11 ProIntel® Core™ i5-520M8GB(integrated graphics) Intel HD Graphics
    Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E4310
    CPU
    Intel® Core™ i5-520M
    Motherboard
    0T6M8G
    Memory
    8GB
    Graphics card(s)
    (integrated graphics) Intel HD Graphics
    Screen Resolution
    1366x768
    Hard Drives
    500GB Crucial MX500 SSD
    Browser
    Firefox, Edge
    Antivirus
    Defender
    Other Info
    unsupported machine: Legacy bios, MBR, TPM 1.2, upgraded from W10 to W11 using W10/W11 hybrid install media workaround.

    In-place upgrade to 22H2 using ISO and a workaround.
    Feature Update to 23H2 by manually installing the Enablement Package.
    In-place upgrade to 24H2 using hybrid 23H2/24H2 install media.
    Upgraded to 25H2 by Enablement Package.

    Also running Insider Experimental 263xx and 29xxx builds and Windows 10 as native boot .vhdx.
  • My SYSTEM THREE is a Dell Latitude 5410, i7-10610U, 32GB RAM, 512GB NVMe ssd, supported device running Windows 11 Pro.

    My SYSTEM FOUR was a 2-in-1 convertible Lenovo Yoga 11e (1st gen) type 20DA, Celeron N2930, 8GB RAM, 256GB ssd. Unsupported device. This has now been sold. It has been replaced by my System Eight.

    My SYSTEM FIVE is a Dell Latitude 3190 2-in-1, Pentium Silver N5030, 8GB RAM, 1TB NVMe ssd, supported device running Windows 11 Pro, plus Insider Beta, Experimental 263xx and 29xxx builds (and a few others) as a native boot .vhdx.

    My SYSTEM SIX is a Dell Latitude 5550, Core Ultra 7 165H, 64GB RAM, 1TB NVMe SSD, supported device, Windows 11 Pro, Hyper-V host machine. Updated to 25H2 on 30th September 2025.

    My SYSTEM SEVEN is a Lenovo Thinkpad T580, 1920x1080 touchscreen, Intel Core i7-8650U, 16GB RAM, 512GB NVMe SSD + 2nd 512GB NVMe SSD, a supported device for Windows 11. This is my current general purpose 'main machine'. The installed Windows 11 Home from my System One has been migrated to this machine. As its new home has an existing digital licence for Pro I've been able to upgrade the migrated OS from Home to Pro.

    My SYSTEM EIGHT is a 2-in-1 convertible Lenovo Yoga 11e (5th gen) type 20LN, Celeron N4120, 8GB RAM, 512GB NVMe ssd, a supported device for Windows 11. Currently running Windows 11 Pro, plus Insider Beta, Experimental 263xx and 29xxx builds as native boot vhdx.
IMG_2312.jpg
 

My Computers My Computers

  • At a glance

    Windows 11 ProAMD Ryzen 9 9950X3DKingston FURY Beast 64GB (2x32GB) DDR5 6000MT/sASUS TUF Gaming Radeon RX 9070 OC Edition 16G...
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 9 9950X3D
    Motherboard
    ASRock B650E Taichi Lite
    Memory
    Kingston FURY Beast 64GB (2x32GB) DDR5 6000MT/s
    Graphics Card(s)
    ASUS TUF Gaming Radeon RX 9070 OC Edition 16GB GDDR6
    Hard Drives
    Solidigm P44 Pro 2TB M.2 NVMe SSD
  • At a glance

    Windows 11 HomeIntel Core Ultra 9 275HX64GB (2x 32GB) DDR5-6400NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Legion Pro 7i Gen 10 16"
    CPU
    Intel Core Ultra 9 275HX
    Memory
    64GB (2x 32GB) DDR5-6400
    Graphics card(s)
    NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Hard Drives
    2x 1TB M.2 NVMe SSD (SK Hynix)

My Computers My Computers

  • At a glance

    Windows 11AMD Ryzen 7 3800XT32GBEVGA GeForce GTX 1080 Ti
    OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • At a glance

    Windows 11 EducationIntel i7-8550U32GBNvidia Geforce MX150
    Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
Diskpart shows 4 drives on my main Win10 computer but not their drive letters, disks 1, 2, and 3 are External USB drives and Disk 0 has 2 lettered partition, C: and D: with C: being small at 150GB and D: about 780GB. Disk 0 partition C: is the boot/system/Windows drive.
Completely different situation. You ran diskpart from C:\Windows\System32 which indicates that you were booted into Windows when you ran it. In post #3, @aubergine ran diskpart from X:\Sources which indicates that they were booted into Windows PE - probably booted from a Windows installation USB flash drive.
 

My Computers My Computers

  • At a glance

    Windows 11AMD Ryzen 7 3800XT32GBEVGA GeForce GTX 1080 Ti
    OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • At a glance

    Windows 11 EducationIntel i7-8550U32GBNvidia Geforce MX150
    Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
But where is the drive letter for the Windows 11 partition? Today I also noticed this on a Windows 11 virtual machine. This is weird. Has anyone else noticed this? This does not exist in Windows 10 or if you have upgraded from Windows 10 to Windows 11.

Oracle VM VirtualBox ([X]Enable EFI).
This is a clean installation of Windows 11.
(see screenshot below)
I booted from a Windows 11 installation ISO file > diskpart > list volume
Where is the drive letter for the Windows 11 partition?

1 - VirtualBox - Clean installation of Windows 11.jpg

Oracle VM VirtualBox ([X]Enable EFI).
This is a clean installation of Windows 10.
(see screenshot below)
I booted from a Windows 10 installation ISO file > diskpart > list volume
The drive letter of the Windows 10 partition is displayed.

2 - VirtualBox - Clean installation of Windows 10.jpg
 

My Computers My Computers

  • At a glance

    Windows 11 ProAMD Ryzen 9 9950X3DKingston FURY Beast 64GB (2x32GB) DDR5 6000MT/sASUS TUF Gaming Radeon RX 9070 OC Edition 16G...
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 9 9950X3D
    Motherboard
    ASRock B650E Taichi Lite
    Memory
    Kingston FURY Beast 64GB (2x32GB) DDR5 6000MT/s
    Graphics Card(s)
    ASUS TUF Gaming Radeon RX 9070 OC Edition 16GB GDDR6
    Hard Drives
    Solidigm P44 Pro 2TB M.2 NVMe SSD
  • At a glance

    Windows 11 HomeIntel Core Ultra 9 275HX64GB (2x 32GB) DDR5-6400NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Legion Pro 7i Gen 10 16"
    CPU
    Intel Core Ultra 9 275HX
    Memory
    64GB (2x 32GB) DDR5-6400
    Graphics card(s)
    NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Hard Drives
    2x 1TB M.2 NVMe SSD (SK Hynix)
Not quite because you don't know for sure where the BCD was created. You should have also done:
select volume 1
assign letter=s
exit
bcdboot W:\Windows /s S: /f UEFI
But there was no error message. "Boot files successfully created."

/s <volume letter> --- Why should this be used?
/f <firmware type> --- Why should this be used?

At least for me, this is a really hard thing to understand. But if you look at Microsoft's website.

Source: BCDBoot Command-Line Options

/s <volume letter>
- Optional. Specifies the volume letter of the system partition. This option should not be used in typical deployment scenarios.
- Use this setting to specify a system partition when you are configuring a drive that will be booted on another computer, such as a USB flash drive or a secondary hard drive.

/f <firmware type>
- Optional. Specifies the firmware type. Valid values include UEFI, BIOS, and ALL.
- On UEFI/GPT-based systems, the default value is UEFI. This option creates the \Efi\Microsoft\Boot directory and copies all required boot-environment files to this directory.
- If you specify the /f option, you must also specify the /s option to identify the volume letter of the system partition.

I tested the bcdboot command without /s <volume letter> and /f <firmware type> options and commands succeeded without an error message and then the computer started normally. This is a clean installation of Windows 11.

I booted from the Windows 11 installation USB flash drive in UEFI boot mode (marked UEFI in the boot menu) and then I run the following commands.

Recreate the EFI system partition boot files (see below).

Code:
diskpart
list volume
select volume # (where # is the volume number of the Windows partition)
assign letter=w
list volume
exit

bcdboot w:\windows

edit: (copied from another forum)
- BCDBoot copies the boot files from the Windows partition to the EFI system partition and creates the Boot Configuration Data (BCD) store in the same partition. If the volume letter is incorrect or if you boot from the Windows installation USB flash drive in Legacy BIOS mode (not marked UEFI in the boot menu), you will receive the following error message: Failure when attempting to copy boot files.

Format the EFI system partition and recreate the EFI system partition boot files
(see below).

Code:
diskpart
list volume
select volume # (where # is the volume number of the Windows partition)
assign letter=w
list volume
select volume # (where # is the volume number of the EFI system partition)
format quick fs=fat32
list volume
exit

bcdboot w:\windows
 
Last edited:

My Computers My Computers

  • At a glance

    Windows 11 ProAMD Ryzen 9 9950X3DKingston FURY Beast 64GB (2x32GB) DDR5 6000MT/sASUS TUF Gaming Radeon RX 9070 OC Edition 16G...
    OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    CPU
    AMD Ryzen 9 9950X3D
    Motherboard
    ASRock B650E Taichi Lite
    Memory
    Kingston FURY Beast 64GB (2x32GB) DDR5 6000MT/s
    Graphics Card(s)
    ASUS TUF Gaming Radeon RX 9070 OC Edition 16GB GDDR6
    Hard Drives
    Solidigm P44 Pro 2TB M.2 NVMe SSD
  • At a glance

    Windows 11 HomeIntel Core Ultra 9 275HX64GB (2x 32GB) DDR5-6400NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Operating System
    Windows 11 Home
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo Legion Pro 7i Gen 10 16"
    CPU
    Intel Core Ultra 9 275HX
    Memory
    64GB (2x 32GB) DDR5-6400
    Graphics card(s)
    NVIDIA GeForce RTX 5080 16GB GDDR7 Laptop GPU
    Hard Drives
    2x 1TB M.2 NVMe SSD (SK Hynix)
But there was no error message. "Boot files successfully created."

/s <volume letter> --- Why should this be used?
/f <firmware type> --- Why should this be used?

At least for me, this is a really hard thing to understand. But if you look at Microsoft's website.
If you run "bcdboot W:\Windows" it is going to put the boot files to boot Windows from W: drive on whichever BCD the computer booted from. Many times, especially when booted into Windows PE, the user will not know where that BCD came from. Many times when users have multiple HDDs or SSDs installed and they may not realize the computer is booting from a different drive than they thought. For example, "I upgraded my HDD to an SSD by cloning, then I either removed or formatted the HDD and now my computer won't boot!" That's because the user thought the computer was booting from the SSD, but it was booting from the HDD.

Assigning a drive letter to the system partition that you want to populate with boot files, and then using the /s switch with the bcdboot command will ensure that you are doing exactly what you thought you were doing - and not creating or adding to a BCD on some mystery location.
 

My Computers My Computers

  • At a glance

    Windows 11AMD Ryzen 7 3800XT32GBEVGA GeForce GTX 1080 Ti
    OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • At a glance

    Windows 11 EducationIntel i7-8550U32GBNvidia Geforce MX150
    Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
Back
Top Bottom