/build/static/layout/Breadcrumb_cap_w.png

Diskpart command help

We have a .WIM file that gets laid down and when it is installed we are left with a 10GB recovery partition on our DISK 0. So DISK 0 looks like this:

10.00GB
Healthy (OEM Partition)

Default (C:)
Healthy (System, Boot, Page File, Active, Crash Dump, Primary Partition)

All of this is on DISK 0.

Is there anyway using Diskpart.exe (or any utility for that matter) that will let you format and assign a drive letter to the 10GB partition without touching or messing up the c:\ drive?

0 Comments   [ + ] Show comments

Answers (6)

Posted by: weberik 12 years ago
Yellow Belt
0
start diskpart and try
select disk 0
list part
(search for the number of the recovery partition)
select part X
(X is the number of your recovery partition)
format quick
(get more format options like volume name or filesystem with help format)
assign Y
(Y is the letter you want to use)
exit

now you can apply the wim with image x to the letter

if you want to put this in a script, just put the diskpart commands in a text file line by line and call diskpart like this
diskpart /s yourfile.txt
Posted by: mhsl808 12 years ago
Fifth Degree Brown Belt
0
Ok, I type in LIST VOLUME and I see that Volume 1 is my C: drive. I then type in SELECT VOLUME 1 then LIST PARTITION. I then see 2 partitions. Partition 2 has an '*' in front and this is the Primary C:\ drive. Partition 1 is a Hidden partition that is the 10GB one I need to manipulate. How do I format and/or assign a drive letter to this hidden Partition?

what I am trying to solve is this: We have a 10GB partition on thousands of machines and we want to copy to this partition the OS.Wim file and app packaged software that together make up our Windows 7 image. So if a user needs to reimage their machine they can.

Thanks.
Posted by: weberik 12 years ago
Yellow Belt
0
try this (on a test machine!)
SELECT VOLUME 1
SELECT PARTITION 1
FORMAT QUICK
ASSIGN X (or the letter you want to use)
Posted by: RandomITPro 12 years ago
4th Degree Black Belt
0
Um thats an OEM partition. That's what you called it. OEM are created by the manufacturer and can not be assigned a drive letter and are hidden. They can't be manipulated. I use Dell systems and all machines have also have a OEM partition, though significantly smaller. Because they are hidden, they can not be assign a drive letter and because of that, they do not appear in WindowsPE.

Let me ask you this. Short of a new blank hard drive, if all your machines have this partition, why not leave it alone and not reapply it?

Im not quite sure what your OEM partition does since its so big, mine only includes diagnostic tools. If it is a recovery partition, Windows can probably reuse the one that's already on the drive
Posted by: RandomITPro 12 years ago
4th Degree Black Belt
0
On another note if you do reformat it (if it lets you), it will cease to function like it should
Posted by: weberik 12 years ago
Yellow Belt
0
my samsung notebook had such a partition.
it contained a so called "recovery system" that could make a image of my system to another partition.
also wasted like 20gb of my precious space.

but there was no magically unremovable thing to it.
i could remove it with the usual windows tools :)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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