Changing Disk Enumeration Order for Windows Setup

Page 2 of 2 FirstFirst 12
  1. Ghot's Avatar
    Posts : 9,376
    Win 10 Home 10.0.19043.928 (x64) [21H1]
       #11

    hsehestedt said:
    Doh! Just dawned on me that there is another solution. Before starting Windows installation, temporarily disconnect any SATA drives (or disable SATA in BIOS). Now the NVMe will be enumerated first and existing setup scripts will work without modification.

    No idea why why my old brain cells didn't realize that earlier.



    Well, I assumed we already knew that. @Railtech even mentioned that.
      My Computer

  2. Railtech's Avatar
    Posts : 466
    Win 10 Pro x64 versions
       #12

    Having only a PCIe drive attached during install will accomplish the Disk 0 enumeration of that drive however, if the PCIe drive is attached to a secondary controller then you will end up with the situation I mentioned where the drive gets pushed up the number chain as SATA disks are added to the primary SATA controller after OS installation. To my knowledge there is nothing to prevent this and I would have to assume that depending on bios configurations you might experience this even with the primary PCIe controller. I have yet to see it but if I do I will not be surprised by it.

    With the board I mentioned before having a secondary PCIe controller chip, this board also has two SATA controllers. In this case because of port mapping being enabled only on the primary SATA controller, once all primary SATA ports are in use the PCIe attached OS drive becomes next in line by disk number.

    In the OP's first post it is mentioned that the PCIe attached disk is disk number 2. Board documentation will likely show that primary SATA controller port 2 is the first port where mapping is enabled. SATA ports would need to be enabled during install for Windows to see any disks attached that use port mapping. So even though not having SATA drives attached during install will enumerate a PCIe disk as disk number 0, mapping will remove SATA port 2 from being active and map 0 to that port.

    So what you have here is that the primary SATA controller is the beginning of the disk numbering chain. Any PCIe attached disks will be mapped to occupy any SATA ports enabled for mapping. Once all primary SATA ports are filled/remapped then secondary SATA controller ports become next inline for disk numbers. Following that are externally attached disks so in most cases these days that means USB.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:59.
Find Us




Windows 10 Forums