Hi dear.

We have a customized image from one of our customers. This imagem has three partitions. First and third ones have fixed sizes. That in the middle contains all left space. So I need a pre-installation script to create these partitions following that rules and format them before installing the image.

 

Can you help me? I tried some diskpart scripts based on information posted here, but no success.

 

Thank you,

 

Patrick Habran

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

6

select disk 0
clean
create partition primary size=100
assign letter="C"
active
create partition primary size=1000
assign letter="E"
create partition primary
assign letter="D"
exit

 

active needs to be put on the partition that has the boot stuff.

Obviously, the sizes and drive letters need to match your original image.

Corey
Lead L3 Enterprise Solutions Engineer, K2000
If my response was helpful, please rate it!

Answered 10/04/2012 by: cserrins
Red Belt

  • Hi Corey,
    What if you want to do this with a secondary hard drive?

    Select disk 1? I only ask because I'm having trouble having my "get-set computer name" scripts to work on a PC with 2 hard drives. I thought I had this figured out when I called support some months ago, but it appears it doesn't work on a new workstation out of the box.

    Thanks,
    awingren
  • When you did this did you get a boot error? Did you have to apply a BDC fix for 3 partitions?
Please log in to comment
Answer this question or Comment on this question for clarity