Quantcast
Channel: Active questions tagged partition - Server Fault
Viewing all articles
Browse latest Browse all 68

Select disk in dispart via GUID/permanent hash [migrated]

$
0
0

I hate that Windows drive letters move around for USB disks.

So how can I reference a disk in diskpart by hardware hash id?

Relative numbering is hard to script, especially if I have drives with same size:

DISKPART> list disk  Disk ###  Status         Size     Free     Dyn  Gpt  --------  -------------  -------  -------  ---  ---  Disk 0    Online          476 GB      0 B        *  Disk 1    Online          232 GB      0 B

I need something like

DISKPART> SELECT DISK=023BC789DISKPART> SELECT DISK=\\?\Volume{023bc789-0000-0000-0000-100000000000}

of course none of these work.

The disk you specified is not valid.

Viewing all articles
Browse latest Browse all 68

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>