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?
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)
Please log in to answer
Posted by:
weberik
13 years ago
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
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
13 years ago
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.
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
13 years ago
Posted by:
RandomITPro
13 years ago
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
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
13 years ago
Posted by:
weberik
13 years ago
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.