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 fails

- - - - -

  • Please log in to reply
12 replies to this topic

#1
hettybembler

hettybembler
  • Member
  • 3 posts
I really hate to bug people but has anyone run against a problem with WinPE 2005 where diskpart with the message "The Disk Management Service Could Not Complete The Operation."

Specifically, I am using the following text file when I run diskpart:

Select disk 0
clean
Create partition primary
Active
Assign Letter C

When I run diskpart from the command line I get the same error. i have seen some discussion about similar problems but I am *not* running a RIS server or anything like it- just running winpe off of a cd to do a network unattended installation.

Has anyone gotten the diskpart hotfix from Microsoft that supposedly fixes this issue with RIS servers? Do you think it might help?

Thanks.


How to remove advertisement from MSFN

#2
campbrs

campbrs

    Newbie

  • Member
  • 24 posts
Try the below config:

select disk 0
clean
create partition primary noerr
assign letter=c noerr
active
exit

You will need the "=" when you assign the letter

Edited by campbrs, 25 May 2006 - 09:40 AM.


#3
hettybembler

hettybembler
  • Member
  • 3 posts
No difference, thanks though.

#4
staples

staples

    Junior

  • Member
  • Pip
  • 63 posts
If it helps, I have been seeing the same issue just not constantly. Reboot and try again and it works or clean the mbr and try again and it works.

I have been trying to troubleshoot with the debuglog set (from document http://technet2.micr...118c6b1033.mspx ) but it has not had the error.

#5
campbrs

campbrs

    Newbie

  • Member
  • 24 posts
Have you verified that disk 0 is the first disk in the system. Sometimes new remote access cards can grab disk 0 (and this will not show up in diskpart) - so you end up having to grab disk 1 not disk 0.

Just a thought.

Which line generates the error?

Have you broken it out one by one?

#6
hettybembler

hettybembler
  • Member
  • 3 posts
Ok, from what i can gather it is just not working at all. I ran it up against each line and by itself and it just does not start up no matter what. Just a note- I have started the dmadmin service. I am also definitely working form disk 0. Actually I'm doing this with Virtual PC but on the pcs I've tested it on I get the same failure.

#7
Jazkal

Jazkal

    Senior Member

  • Member
  • PipPipPipPip
  • 595 posts
can you give use the output to these commands run manually:

diskpart
list disk


And one question: Is your WinPE image built with the PNP switch?

Edited by Jazkal, 25 May 2006 - 09:34 PM.

Did you RTFM?

#8
wrecklesswun

wrecklesswun

    Newbie

  • Member
  • 49 posts
the issue resides with sp2 of winxp...if the rpcss service is not installed diskpart will never work.

#9
AlbinoRaven

AlbinoRaven

    Newbie

  • Member
  • 29 posts
YOu don't have to assign letter C for the first drive. If you force a format it will do that for you automatically and in theory copy your files to the drive afterwards.

I really hate to bug people but has anyone run against a problem with WinPE 2005 where diskpart with the message "The Disk Management Service Could Not Complete The Operation."

Specifically, I am using the following text file when I run diskpart:

Select disk 0
clean
Create partition primary
Active
Assign Letter C

When I run diskpart from the command line I get the same error. i have seen some discussion about similar problems but I am *not* running a RIS server or anything like it- just running winpe off of a cd to do a network unattended installation.

Has anyone gotten the diskpart hotfix from Microsoft that supposedly fixes this issue with RIS servers? Do you think it might help?

Thanks.



#10
techquiet

techquiet
  • Member
  • 2 posts
Hi hettybembler,

Select disk 0
clean
Create partition primary size=10240
Select Partition 1
Active
Format FS=NTFS Label=OSBOOT Quick
Create partition Primary
Select partition 2
Format FS=NTFS Label=Data Quick

This should create two partitions with C drive size set to 10GB
and the rest would be Drive D
You can store this in a file and pass it to disk part
Diskpart /s <File Name>

Hope this helps.

Warm regards
Gomat.G.B.

Edited by techquiet, 03 July 2006 - 09:48 PM.


#11
yzou

yzou
  • Member
  • 4 posts
We had trouble with diskpart too but not exactly the same. We failed to use diskpart to create non-MS partition type, i.e., passing id= s.th that is not fat nor ntfs. However, it finally worked by adding some wait. For example, call "sleep 5" in your bat file before you issuing the next command to diskpart.

hope this helps

#12
twalk482

twalk482

    Newbie

  • Member
  • 29 posts
If you haven't already found a solution, mine was to start the DMADMIN service first.

NET START DMADMIN
DISKPART /S:%DISKPART%

#13
JuMz

JuMz

    Advanced Member

  • Member
  • PipPipPip
  • 466 posts
If you are in WinPE, why not use the winbom.ini to create the partitions? (using the disk.config heading...read the winpe.chm)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN