We have a script which has diskpart send a volume listing to a text file for
subsiquent processing. The Server was a Windows Server 2003 R2. Since we
installed SP2 if I run the batch 5 times the Volume numbers change seemingly
randomly. Any suggestions has this has me scratching my head.....
Kay
Here is more detail...
the test batch that I used to confirm that I wan't nuts ...
echo on
diskpart /s c:\test\diskpart1.txt >c:\test\volume.txt
diskpart /s c:\test\diskpart1.txt >c:\test\volume2.txt
diskpart /s c:\test\diskpart1.txt >c:\test\volume3.txt
diskpart /s c:\test\diskpart1.txt >c:\test\volume4.txt
diskpart /s c:\test\diskpart1.txt >c:\test\volume5.txt
diskpart /s c:\test\diskpart1.txt >c:\test\volume6.txt
Pause
-----------------------------------------------------------------
contents of diskpart1.txt
list volume
exit
-----------------------------------------------------------------------
Output to Volume.txt
Microsoft DiskPart version 5.2.3790.3959
Copyright (C) 1999-2001 Microsoft Corporation.
On computer: TESTSVR
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 D NTFS Removeable 75 GB Healthy
Volume 1 G CD-ROM 0 B Healthy
Volume 2 C NTFS Partition 88 GB Healthy
System
Volume 3 B Data NTFS Partition 50 GB Healthy
Volume 4 F SWAP FAT32 Partition 10 GB Healthy
Leaving DiskPart...
----------------------------------------------------------------------
Output of Volume2.txt
Microsoft DiskPart version 5.2.3790.3959
Copyright (C) 1999-2001 Microsoft Corporation.
On computer: TESTSVR
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 D NTFS Removeable 75 GB Healthy
Volume 1 C NTFS Partition 88 GB Healthy
System
Volume 2 B Data NTFS Partition 50 GB Healthy
Volume 3 F SWAP FAT32 Partition 10 GB Healthy
Volume 4 G CD-ROM 0 B Healthy
Leaving DiskPart...
-------------------------------------------------------------------------------
Output of Volume3.txt (edited to show only the volume info this time)
Volume 0 C NTFS Partition 88 GB Healthy
System
Volume 1 B Data NTFS Partition 50 GB Healthy
Volume 2 F SWAP FAT32 Partition 10 GB Healthy
Volume 3 D NTFS Removeable 75 GB Healthy
Volume 4 G CD-ROM 0 B Healthy
-------------------------------------------------------------------------------
Output of Volume4.txt (edited to show only the volume info this time)
Volume 0 G CD-ROM 0 B Healthy
Volume 1 C NTFS Partition 88 GB Healthy
System
Volume 2 B Data NTFS Partition 50 GB Healthy
Volume 3 F SWAP FAT32 Partition 10 GB Healthy
Volume 4 D NTFS Removeable 75 GB Healthy
-------------------------------------------------------------------------------
Output of Volume5.txt (edited to show only the volume info this time)
Volume 0 G CD-ROM 0 B Healthy
Volume 1 D NTFS Removeable 75 GB Healthy
Volume 2 C NTFS Partition 88 GB Healthy
System
Volume 3 B Data NTFS Partition 50 GB Healthy
Volume 4 F SWAP FAT32 Partition 10 GB Healthy
-------------------------------------------------------------------------------
Output of Volume6.txt (edited to show only the volume info this time)
Volume 0 C NTFS Partition 88 GB Healthy
System
Volume 1 B Data NTFS Partition 50 GB Healthy
Volume 2 F SWAP FAT32 Partition 10 GB Healthy
Volume 3 D NTFS Removeable 75 GB Healthy
Volume 4 G CD-ROM 0 B Healthy
|