MSFN Forum: diskpart fails - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

diskpart fails WinPE 2005 diskpart fails Rate Topic: -----

#1 User is offline   hettybembler 

  • Group: Members
  • Posts: 3
  • Joined: 21-June 04

  Posted 25 May 2006 - 08:23 AM

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.


#2 User is offline   campbrs 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 19-December 03

Posted 25 May 2006 - 09:13 AM

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

This post has been edited by campbrs: 25 May 2006 - 09:40 AM


#3 User is offline   hettybembler 

  • Group: Members
  • Posts: 3
  • Joined: 21-June 04

Posted 25 May 2006 - 09:21 AM

No difference, thanks though.

#4 User is offline   staples 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 15-October 04

Posted 25 May 2006 - 10:44 AM

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.microsoft.com/WindowsServe...118c6b1033.mspx ) but it has not had the error.

#5 User is offline   campbrs 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 19-December 03

Posted 25 May 2006 - 12:30 PM

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 User is offline   hettybembler 

  • Group: Members
  • Posts: 3
  • Joined: 21-June 04

Posted 25 May 2006 - 12:57 PM

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 User is offline   Jazkal 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 590
  • Joined: 16-January 04

Posted 25 May 2006 - 09:33 PM

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?

This post has been edited by Jazkal: 25 May 2006 - 09:34 PM


#8 User is offline   wrecklesswun 

  • Newbie
  • Group: Members
  • Posts: 49
  • Joined: 15-September 04

Posted 30 May 2006 - 09:33 PM

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

#9 User is offline   AlbinoRaven 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 20-September 05

Posted 24 June 2006 - 09:10 AM

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.

View Posthettybembler, on May 25 2006, 10:23 AM, said:

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 User is offline   techquiet 

  • Group: Members
  • Posts: 2
  • Joined: 21-June 06

Posted 03 July 2006 - 09:46 PM

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.

This post has been edited by techquiet: 03 July 2006 - 09:48 PM


#11 User is offline   yzou 

  • Group: Members
  • Posts: 4
  • Joined: 17-July 06

Posted 21 July 2006 - 12:58 PM

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 User is offline   twalk482 

  • Newbie
  • Group: Members
  • Posts: 29
  • Joined: 21-April 06

Posted 08 August 2006 - 11:00 AM

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

NET START DMADMIN
DISKPART /S:%DISKPART%

#13 User is offline   JuMz 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 466
  • Joined: 09-August 04

Posted 09 August 2006 - 09:55 AM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy