I cannot assign an access path (mount point) to a newly created partition with diskpart.
I try the following:
CODE
select disk 5
create partition primary size=2000
select volume 6
assign mount=K:\mnt
create partition primary size=2000
select volume 6
assign mount=K:\mnt
And get this error message:
CODE
DiskPart could not assign the drive letter or mount point.
Make sure the drive letter or mount point is valid.
Make sure the drive letter or mount point is valid.
Assigning a drive letter to the partition works:
CODE
select volume 6
assign letter=G
assign letter=G
Mounting an existing partition at the same point works:
CODE
select volume 5
assign mount=K:\mnt
assign mount=K:\mnt
If I reboot WinPe, the previously failed command now succeeds:
CODE
select volume 6
assign mount=K:\mnt
assign mount=K:\mnt
It seems that some discovery task occurs at boot that does not occur when the partition is created.
Has anybody else seen this?
Does anybody know how to fix it without a reboot?
Thanks!