/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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

0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Hi!

Have you checked so that you do not have a CDROM or DVD drive on letter D:?

Usually WinPE adds CD/DVD and Memory sticks to the first available driveletter.
Answered 05/30/2008 by: JEBO
Senior Yellow Belt

Please log in to comment
0
Yes, that is what is happening, but I am unclear as to how to prevent this. What I need to know is if I can assign/reassign the CDRom or USB Drive to a drive letter other than C: or D: from with WinPE boots from?
Answered 05/30/2008 by: boats2000
Senior Yellow Belt

Please log in to comment
0
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.
Answered 05/31/2008 by: JEBO
Senior Yellow Belt

Please log in to comment
0
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-
Answered 02/06/2009 by: nicholas
Yellow Belt

Please log in to comment