locked
Disk lettter mappings after oobe RRS feed

  • Question

  • Hi,

    We have a multi disk system. 2 large hard drives and a small SSD for boot. The SSD drive is divided in to two partitions which we like to name C:\ and D:\ for applications to access.

    When I restore an image to the C:\ drive with imagex and boot the system to oobe, the system drive is C: which is fine.

    However the second partition of the SSD drive instead of being D: usually comes after the 2 large hard drives, so it looks like that:

    C: - SSD 1st partition with Windows folder

    D: large HDD1, 1st partition

    E: large HDD2, 1st partition

    F: SSD 2nd partition which I would like to be named D:

    How do I get rid of the madness and force disk letter mappings the drive letters ?

    Many thanks,

    Antoni

    Thursday, December 27, 2012 11:13 PM

Answers

  • your second partition isn't a logical one or anything weird like that?

    I don't have any hardware with multiple disks to test on, but I would have thought that "persistalldevices" was the magic sauce you need.


    =^x^=

    • Marked as answer by tenox2 Monday, October 21, 2013 7:32 PM
    Monday, January 7, 2013 4:05 AM

All replies

  • Can you call diskpart to change the drive letters?

    -Sean


    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

    Friday, December 28, 2012 1:40 AM
  • I do call diskpart co create partitions and assign drive letters at WinPE where I restore the C: partition. Unfortunately these mappings get ignored when I first boot the system and applications fail to start.

    Are you suggesting to call diskpart during / after oobe to change tem?

    Friday, December 28, 2012 2:34 AM
  • Either doing OOBE or after the clone has finished.

    -Sean


    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

    Friday, December 28, 2012 4:00 AM
  • I suppose I could write a script that would unmap and map drive letters at OOBE.

    But isn't there a way that you can tell WES7 ahead of time what are the desired disk letters?

    The system is somehow able to work out that the system disk is always C: - can I not tell it it ahead of time?

    The answer file can tell where to install the system like this:

                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <DiskID>0</DiskID>
                            <PartitionID>1</PartitionID>
                        </InstallTo>
                        <WillShowUI>Never</WillShowUI>
                    </OSImage>
                </ImageInstall>

    Can you not specify somehow that D: should be DiskID 1 Partition 2 and E: should be DiskID 2 Partition 1?

    Thanks,

    Antoni

    Friday, December 28, 2012 5:09 AM
  • Update: I found this ModifyPartitions component:

    http://technet.microsoft.com/en-us/library/cc749309(v=ws.10).aspx

    However this only applies at windowsPE phase. Assigning drive letters at this phase is useless to me because they will be ignored on a target machine after .wim image is restored and system enters OOBE.

    So I'm looking for something similar but at/after OOBE.

    Friday, December 28, 2012 5:19 AM
  • This is only for installing the image.

    -Sean


    www.annabooks.com / www.seanliming.com / Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

    Friday, December 28, 2012 6:45 AM
  • Okay I will write a vbscript to remap these after system is deployed.

    Thanks for the suggestion!

    Antoni

    Friday, December 28, 2012 7:45 AM
  • your second partition isn't a logical one or anything weird like that?

    I don't have any hardware with multiple disks to test on, but I would have thought that "persistalldevices" was the magic sauce you need.


    =^x^=

    • Marked as answer by tenox2 Monday, October 21, 2013 7:32 PM
    Monday, January 7, 2013 4:05 AM
  • OMG sounds like the answer! Thanks so much. I will try it right away.

    My setup is as follows:
    diskpart.txt:
    select disk 0
    clean
    create part pri size=8192
    format fs=ntfs quick
    active
    assgin letter=c
    create part pri
    format fs=ntfs quick
    assign letter=d
    select disk 1
    create part pri
    format fs=ntfs quick
    assign letter=e
    exit

    now after OOBE volume E and D are swapped

    I will try persistalldevices to see if it helps!

    Thanks again!

    Antoni

    Monday, January 7, 2013 4:16 AM