Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Redmond desk3 min

Fix DiskPart’s “There Is No Volume Selected” Error in Windows

DiskPart’s “There is no volume selected” message means a command needing a volume ran without one in focus. Inspect the target and select the correct volume before proceeding.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The message “There is no volume selected. Please select a volume and try again” means DiskPart did not have a volume in focus when you ran a command that needs one. Check the disks and volumes, then select the correct volume before using commands such as assign. Selecting a partition or disk is not the same as selecting a volume.

Why DiskPart says no volume is selected

DiskPart works with different storage objects: disks, partitions, and volumes. A command operates on the object that currently has focus, so a volume command cannot act on a selected disk or partition in place of a selected volume. Microsoft explains this focus requirement in its DiskPart command reference.

As an Amazon Associate I earn from qualifying purchases.

The error identifies a selection problem at the time the command ran. By itself, it does not establish whether a volume is missing, the partition is a special type, a prior command changed the disk, or the command sequence was wrong.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Inspect the disk and select the intended volume

Open Command Prompt or Windows Terminal as an administrator. DiskPart requires membership in the local Administrators group or equivalent. Do not guess the disk number from an example: check the size and contents before selecting anything.

  1. Start DiskPart and inspect the disks:

    diskpart
    list disk
  2. Select the disk you have positively identified, then inspect its partitions and all listed volumes:

    select disk <target-disk-number>
    list partition
    list volume
  3. If the intended volume appears in list volume, select its number and check the current focus:

    Rank #2
    Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
    • 256 GB SSD of storage.
    • Multitasking is easy with 16GB of RAM
    • Equipped with a blazing fast Core i5 2.00 GHz processor.
    select volume <target-volume-number>
    select volume

Replace the angle-bracketed examples with the numbers shown on your computer; do not type the brackets. In DiskPart’s list output, an asterisk marks the object with focus. Microsoft documents that select volume shifts focus to the specified volume and can also select by drive letter or mount path; see the select volume reference.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If you were trying to assign a drive letter

assign assigns a drive letter or mount point to the volume in focus. Use list volume to find the target, select it with select volume, and then run the assignment. A partition number is not a substitute for a volume selection.

Rank #3

If a partition appears under list partition but no corresponding target appears under list volume, stop rather than trying to assign a letter to the partition. Inspect the disk in Disk Management and establish what the partition is for. Some Microsoft Q&A reports describe special or hidden partitions in this situation, but individual community reports do not prove that this is the cause on every PC.

If you were trying to format or change the disk

First identify the exact target and confirm that you intend to erase or change it. Formatting can delete data. Microsoft’s Format documentation describes the command and warns about data loss; do not copy a sample workflow that creates and formats a partition onto a disk that contains files you need.

Rank #4
Windows 11 Laptop with i3 Processor 15.6" Work Laptop for College Students
  • 【Efficient Performance】 Powered by Intel Core i3 processor (2 cores, 4 threads, up to 3.4GHz) with 12GB RAM and 256GB SSD. Handles multitasking, office software, online classes, and HD video streaming smoothly. Integrated Intel UHD Graphics 620
  • Backlit Keyboard & Complete Package】Comes with a cool backlit keyboard. Comes with awebcam, dual stereo speakers (8Ω/1.0W each), DC charger, and user manual – ready for late-night studying, online classes, video conferencing, and daily productivity
  • 【Vibrant Display】 15.6-inch Full HD (1920x1080) anti-glare screen with 16:9 aspect ratio delivers crisp images and vivid colors – perfect for studying, watching lectures, or entertainment. Thin-bezel design maximizes viewing area
  • 【Fast Connectivity & Expansion】 Equipped with WiFi 6 (802.11ax) and Bluetooth 5.2 for stable, high-speed wireless. Features 3 x USB 3.0, HDMI 2.1, Type-C (supports PD3.0 fast charging), and a TF card slot expandable up to 2TB – easily connect external monitors, mice, drives, or expand storage for all your files
  • 【Long Battery Life & Portable】 Built-in 11.55V 5000mAh/57.75Wh high-capacity battery delivers approximately 7 hours of mixed-use battery life – enough for a full day of classes and assignments. Lightweight at just 1.63kg (3.6 lbs) and 19.5mm thin, plus a compact packing size – easily slips into a backpack for campus, library, or coffee shop

Do not treat clean as another way to format a volume. Microsoft describes clean as removing partition or volume formatting from the disk with focus. If the disk holds important data, do not use clean, delete, format, or partition-ID and attribute changes as trial-and-error fixes.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When the target volume is missing or the disk state is unclear

If the device is shown as “No Media,” is offline, or is absent from list volume, the error alone is not enough to choose a safe repair. Do not run destructive commands to see whether they help. Record the DiskPart disk, partition, and volume listings and inspect the device in Disk Management before deciding what to do. A missing volume can have different causes, and the available Microsoft Q&A examples are reports of individual cases rather than a universal diagnosis.

Quick Recap

Bestseller No. 1
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00
Bestseller No. 3
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.