/build/static/layout/Breadcrumb_cap_w.png

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


0 Comments   [ + ] Show comments

Answers (4)

Posted by: JEBO 15 years ago
Senior Yellow Belt
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.
Posted by: boats2000 15 years ago
Senior Yellow Belt
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?
Posted by: JEBO 15 years ago
Senior Yellow Belt
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.
Posted by: nicholas 15 years ago
Yellow Belt
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-
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ