Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

diskpart commands

- - - - -

  • Please log in to reply
6 replies to this topic

#1
darksimoon

darksimoon

    Member

  • Member
  • PipPip
  • 111 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
====================

Attached Files


Darksimoon


How to remove advertisement from MSFN

#2
jaclaz

jaclaz

    The Finder

  • Developer
  • 13,989 posts
  • OS:none specified
  • Country: Country Flag
I guess you cannot format a partition unless you select it. :unsure:

http://support.micro...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, 28 November 2008 - 05:01 AM.


#3
darksimoon

darksimoon

    Member

  • Member
  • PipPip
  • 111 posts
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, 28 November 2008 - 06:17 AM.

Darksimoon

#4
TheReasonIFail

TheReasonIFail

    Member

  • Member
  • PipPip
  • 171 posts
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, 28 November 2008 - 07:43 AM.


#5
darksimoon

darksimoon

    Member

  • Member
  • PipPip
  • 111 posts
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 ?
Darksimoon

#6
TheReasonIFail

TheReasonIFail

    Member

  • Member
  • PipPip
  • 171 posts
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.

#7
darksimoon

darksimoon

    Member

  • Member
  • PipPip
  • 111 posts
thank you for your reply.
Darksimoon




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN