diskpart assign=D error
I am attempting to use diskpart with script (below) to partition a drive into two partitions C: and D: but I get an error when the winpe disk assigned drive letter D:. I get an error message when I attempt to assign D: Anyone know how to get around this issue.
------------------------------
[font="courier new"]select disk 0
clean
create partition primary size=45000
assign letter=c
[font="courier new"]format quick
[font="courier new"]create partition primary
[font="courier new"]select partition 2
[font="courier new"]assign letter=d
[font="courier new"]format quick
[font="courier new"]list vol
exit
[font="courier new"]-----------------------
[font="courier new"]
[font="courier new"]Thanks
[font="courier new"]Chris
------------------------------
[font="courier new"]select disk 0
clean
create partition primary size=45000
assign letter=c
[font="courier new"]format quick
[font="courier new"]create partition primary
[font="courier new"]select partition 2
[font="courier new"]assign letter=d
[font="courier new"]format quick
[font="courier new"]list vol
exit
[font="courier new"]-----------------------
[font="courier new"]
[font="courier new"]Thanks
[font="courier new"]Chris
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
JEBO
16 years ago
Posted by:
boats2000
16 years ago
Posted by:
JEBO
16 years ago
Hi Chris!
It's quite simple to change manualy, just run diskpart and issue an list volume, look for CD-ROM, select volume (cdrom). Issue the command "assign letter=(whatever you prefer)" and the CD-ROM letter will change.
If you need to script the procedure you could use an diskpart batch file, however this will only work if the CD-ROM always gets the same volume number. Another way could be to use for instance FIND.exe to search the output of a "list volume" and then capture the output of the correct volume.
It's quite simple to change manualy, just run diskpart and issue an list volume, look for CD-ROM, select volume (cdrom). Issue the command "assign letter=(whatever you prefer)" and the CD-ROM letter will change.
If you need to script the procedure you could use an diskpart batch file, however this will only work if the CD-ROM always gets the same volume number. Another way could be to use for instance FIND.exe to search the output of a "list volume" and then capture the output of the correct volume.
Posted by:
nicholas
15 years ago
If you are working on a regular hardware or VMware, this one will work.
The changes are in the first two lines.
[hr]
select volume 0
assign letter=B
select disk 0
clean
create partition primary size=45000
assign letter=c
format quick
create partition primary
select partition 2
assign letter=d
format quick
list vol
exit
[hr]
If you apply it to a Blade server then you need to play around a bit with it.
-Nicholas-
The changes are in the first two lines.
[hr]
select volume 0
assign letter=B
select disk 0
clean
create partition primary size=45000
assign letter=c
format quick
create partition primary
select partition 2
assign letter=d
format quick
list vol
exit
[hr]
If you apply it to a Blade server then you need to play around a bit with it.
-Nicholas-
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.