Sign in to follow this  
Followers 0
darksimoon

diskpart commands

7 posts in this topic

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

0

Share this post


Link to post
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
0

Share this post


Link to post
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
0

Share this post


Link to post
Share on other sites

From the error I see, it seems you're already at a C:\ prompt.

It seems that the problem is that the C letter is already assigned to a drive.

Edited by TheReasonIFail
0

Share this post


Link to post
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 ?

0

Share this post


Link to post
Share on other sites

It's possible that the drive existed when you navigated to it through the command prompt.

Try changing to another drive letter so you're not at a c:\ prompt and try again.

0

Share this post


Link to post
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
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.