Link to home
Start Free TrialLog in
Avatar of lurezero
lurezeroFlag for United States of America

asked on

WIndows XP DISKPART

Hello, i want to create this exact hard drive setup. How can i do this using diskpart command line?

Partition ###     Type
Partition 1         Extended
Partition 2         Primary
Avatar of Alan_White
Alan_White
Flag of United Kingdom of Great Britain and Northern Ireland image

Confused?!?

How do you intend to run DISKPART, after OS install?

Are you using a PXE installer?

You might be better off with FDISK from a bootable disk.
Avatar of lurezero

ASKER

im booting the PC with a winpe CD...but, that wasent my question...again my question was how to create the partitions as i mention above
Check the section "Commands to Manage Basic Disks" from this knowledge base article: http://support.microsoft.com/kb/300415
SOLUTION
Avatar of che6ausc
che6ausc
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i forgot to mention not to give me any links that in the end do not answer my question. I already have these links.
let me rephrase my question.
the command to create a primary partiiton is "create partition primary". well once i input this command, it creates partition 0. i do not want 0 i want 2.
how can i play around with partitions that are not created in the first place with the correct number i am looking for?
all i can suggest is that you create a small primary partition as this will be set as 0, and then you create additional partitions how you would like.

As far as i know you cannot change the first partition number.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
the real problem i am having, is that i received a PC that was imaged by someone with different sofrware. the partitions were set differently. i captured an image with imagex, then applied it. when i reboot the pc, i get a hardware error problem which i suspect its becuase the C drive was captured on partition 2, thats why its not booting. in other words, the boot,ini file in the image itself is pointing to partition 2. anyways, i will keep trying different ways..
can you not edit the boot.ini file in the image and change it accordingly? or change the boot.ini then re-image the hard drive?
i would have to find a way to edit the image offline ...i am not sure how to do that yet...you know how?
its a windows image (.wim)
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
my hunch was correct, modifying the boot.ini file inside the image fixed the problem..therefore thanks for the link on how to modify images offline...
question, can i also install and remove software to an offline image? what about applying windows updates as well?
Not as such but you can edit a batch file that gets launched during setup. That's how I used to do it