darksimoon Posted November 28, 2008 Posted November 28, 2008 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 1select volume 0assign letter=Uselect disk 0cleancreate partition primary size=10000activeassign letter=Cformat fs=ntfs label="SYSTEM" quickcreate partition primaryassign letter D:format fs=ntfs label="DATA" quickexit====================
jaclaz Posted November 28, 2008 Posted November 28, 2008 (edited) I guess you cannot format a partition unless you select it. http://support.microsoft.com/kb/928543/en-ushttp://www.ss64.com/nt/diskpart.htmlMaybe you miss lines:select partition nOr 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 November 28, 2008 by jaclaz
darksimoon Posted November 28, 2008 Author Posted November 28, 2008 (edited) 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 0cleancre par pri size=10000activeassign letter= Wit 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 November 28, 2008 by darksimoon
TheReasonIFail Posted November 28, 2008 Posted November 28, 2008 (edited) 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 November 28, 2008 by TheReasonIFail
darksimoon Posted November 28, 2008 Author Posted November 28, 2008 hi TheReasonIFaili 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 ?
TheReasonIFail Posted November 28, 2008 Posted November 28, 2008 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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now