Luke alcatel wrote:
> I need to use diskpart to partition & format unallocated areas on
> new disks. The only diskpart operations I can find for unallocated
> space applies to expanding existing partitions. Diskpart is
> supposed to be a superset of the disk management snapin but the
> snapin seems to have more functionality for unallocated disk areas
> than diskpart. Can someone explain how I can use diskpart to setup
> new partitions in unallocated storage?
Shenan wrote:
> Have you reviewed everything about diskpart?
> http://support.microsoft.com/kb/300415
>
> Basically - you set the focus on the disk in question and create
> your partition(s) with various commands (most are well described in
> the article above.)
Luke alcatel wrote:
> Does not work under the conditions of my OP. Example - I have a
> new, uninitialized CF device mounted via USB reader/writer. The
> Disk Management snapin shows it as "Disk 1, 243 MB Unallocated." I
> can proceed to format the CF with the snapin by selecting the
> unallocated area graphically. However using diskpart I can "select
> disk 0" which is my C: drive but "select disk 1" results in the
> response "The disk you specified is not valid." Similar result
> with "select volume 1" followed by "detail volume" which shows the
> C: drive. "Select volume 2" does not fail but a subsequent "detail
> volume" shows nothing selected.
> In summary I can find no way in diskpart to give the focus to
> unallocated storage but that can be done with the snapin. I need
> to do these operations in light-weight XP systems (i.e. XP
> Embedded) that do not have the snapin installed.
Sounds like my advice *would* work then - given your original post did not
include the information given in your follow-up example.
I asked if you reviewed the material about diskpart, and by your follow-up,
you have not. Your original posting made no mention of removable media -
this is the first I saw mention of it in this conversation. You asked about
"unallocated areas on new disks", not the same as your new posting where you
specify removable media.
The example you gave specified an external device (an "uninitialized CF
device mounted via USB reader/writer") - and the material I gave you to
review specifies very clearly:
"You cannot use Diskpart to create a partition on removable media. Windows
supports at most one MBR partition on removable media. If the media is
manufactured with an MBR, that MBR cannot be altered, but the MBR is
followed even if multiple partitions or logical drives are configured. If
the media is manufactured without an MBR, the media is treated as a
"superfloppy" and no partition structure is written to the media."
Simply a case of knowing the tools you are trying to use and not explaining
what you were actually doing (leaving out some pertinent details.) ;-)
You are not just trying to get "diskpart to give the focus to unallocated
storage", but specifically trying to get "diskpart to give the focus to
unallocated storage on removable media"...
http://www.google.com/search?q=diskp...emovable+media
If you were using Windows Vista - you might not have this issue - but given
the restrictions of your original and follow-up posts (particularly that you
posted in an XP newsgroup), diskpart from Windows XP is not going to do what
you are looking to do.
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html