Jump to content

diskpart commands


darksimoon

Recommended Posts

hello friends;

its me again :) i have a problem about diskpart usage in winpe 2.0.

i'm trying to install win xp unattended from UFD by winpe 2.0. My autorun1.cmd and error picture (saying that:the directory is not empty) is as below.

pls can you tell me what is wrong.

partinfo.txt

====================

select disk 1

select volume 0

assign letter=U

select disk 0

clean

create partition primary size=10000

active

assign letter=C

format fs=ntfs label="SYSTEM" quick

create partition primary

assign letter D:

format fs=ntfs label="DATA" quick

exit

====================

post-58042-1227868481_thumb.png

Link to comment
Share on other sites


I guess you cannot format a partition unless you select it. :unsure:

http://support.microsoft.com/kb/928543/en-us

http://www.ss64.com/nt/diskpart.html

Maybe you miss lines:

select partition n

Or maybe you still have the first partition "in focus" when you try to create the second, and you need another "select disk 0"....

Rule of the thumb whenever a script does not work is to try the commands in it one by one manually, so that you can see which one throws the error....;)

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

hello jaclaz :)

as you mentioned i used diskpart command in a virtual machine in at winpe and here is the strange result.

i used the below command in turn and succesfully.

sel disk 0

clean

cre par pri size=10000

active

assign letter= W

it seems that when i wanted to assign letter C it give me error i speak of above (directory is not empty). bu if i assign any other letter except for C, it is assigned succesfully. meanwhile in order to see if letter C is in use or not i use list volume command but C is not in use :( i am confused anybody help me ?

Edited by darksimoon
Link to comment
Share on other sites

hi TheReasonIFail

i have checked the letters by list volume but it wasnt assigned. just a moment... yes you are right ! i am in C:\ prompt but when i list the volumes i cannot see the letter C. but why ? if C was ram drive i would understand but its not. so can you tell me where the letter C is assigned to ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...