Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
darksimoon

diskpart commands

Recommended Posts

darksimoon    0

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

Share this post


Link to post
Share on other sites

jaclaz    943

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

Share this post


Link to post
Share on other sites
darksimoon    0

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

Share this post


Link to post
Share on other sites
darksimoon    0

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 ?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×