Solved

WIndows XP DISKPART

Posted on 2010-09-13
14
687 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:lurezero
  • 5
  • 5
  • 3
  • +1
14 Comments
 
LVL 10

Expert Comment

by:Alan_White
Comment Utility
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.
0
 

Author Comment

by:lurezero
Comment Utility
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
0
 
LVL 5

Expert Comment

by:chqshaitan
Comment Utility
0
 
LVL 6

Expert Comment

by:che6ausc
Comment Utility
Check the section "Commands to Manage Basic Disks" from this knowledge base article: http://support.microsoft.com/kb/300415
0
 
LVL 6

Assisted Solution

by:che6ausc
che6ausc earned 100 total points
Comment Utility
The commands would be:

create partition primary [size=n]
assign [[letter=l]

create partition extended [size=n]
assign [[letter=l]

to create and assign letters to the partition inthe  first unoccupied contiguous disk space.
0
 

Author Comment

by:lurezero
Comment Utility
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?
0
 
LVL 5

Expert Comment

by:chqshaitan
Comment Utility
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.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 6

Assisted Solution

by:che6ausc
che6ausc earned 100 total points
Comment Utility
The partition number is only a placeholder to allow focus for selection while in diskpart.  Other than that it has no significance.  The letter assigned is ultimately the identifying factor in windows.  I don't understand your concern.
0
 

Author Comment

by:lurezero
Comment Utility
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..
0
 
LVL 5

Expert Comment

by:chqshaitan
Comment Utility
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?
0
 

Author Comment

by:lurezero
Comment Utility
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)
0
 
LVL 5

Accepted Solution

by:
chqshaitan earned 400 total points
Comment Utility
yea, you can mount it using the wim imagex tool. have a read of the following bud

http://www.windowsitpro.com/article/deployment/how-can-i-mount-a-windows-imaging-format-wim-file-so-that-i-can-view-or-edit-its-content-.aspx

Dont forget the /commit switch when you unmount or you will loose any changes that you make.
0
 

Author Comment

by:lurezero
Comment Utility
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?
0
 
LVL 5

Expert Comment

by:chqshaitan
Comment Utility
Not as such but you can edit a batch file that gets launched during setup. That's how I used to do it
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
This video discusses moving either the default database or any database to a new volume.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now