Topic: MBR-UEFI Issues  (Read 570 times)

MBR-UEFI Issues
« on: December 06, 2019, 03:19:23 AM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
I am going to try to explain this the best I can. The version of Win10XPE I downloaded back in 2016 I used image 1803 to make my build. I took one TB USB drive and split it up into two partitions. One MBR NTFS and one FAT32 UEFI.

On the MBR partition I extracted the entire contents of the WinXPE ISO to that drive but only copied the UEFI folders and source folder from the ISO to the FAT32 partition. This created a Multi-Boot drive so to speak. When I would boot from a secure boot UEFI computer, the system would load the boot.wim from the UEFI partition but would find the CDUsb.y on the NTFS partition and make my NTFS drive letter Y:. This was perfect because all the stuff I needed was too big to fit on the FAT32 partition so this worked out perfectly.

The issue I am having now is I downloaded the newer Win10XPE and built my image with 1909. I did the same process of extracting the entire ISO to my NTFS drive and only the UEFI folders to my FAT32 drive but I am getting a huge error once everything boots into Win10XPE. I can still boot from a secure boot UEFI system but WinXPE will no longer locate the CDUsb.y on my NTFS drive so the NTFS drive no longer gets mapped as Y:\. If I use just a jumpdrive with the single FAT32 partition, the system finds the CDUsb.y and loads the USB drive as Y:\ but that isn't helping me any. If I boot the USB in just MBR mode, the Y: drive maps fine. For some reason the new stuff doesn't like the dual partitions. I also notice if you right click My PC and go to properties, it list which mode you have booted for the Model:. How is that determined on boot up to list UEFI Mode or MBR mode in system properties for Model:? The older 2016 version didn't do this. Below is some pics of how my drive is setup and was working fine this way until this newer Win10XPE version.     

MBR NTFS side



UEFI FAT32 side





I wish I could type the explanation out the way I see it in my head.





« Last Edit: December 06, 2019, 03:29:52 AM by laddanator »

Re: MBR-UEFI Issues
« Reply #1 on: December 06, 2019, 04:29:18 AM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Quote
The version of Win10XPE I downloaded back in 2016 I used image 1803 to make my build.
Quote
I also notice if you right click My PC and go to properties, it list which mode you have booted for the Model:. How is that determined on boot up to list UEFI Mode or MBR mode in system properties for Model:? The older 2016 version didn't do this.

Win10XPE was first introduced in March 2018...

Re: MBR-UEFI Issues
« Reply #2 on: December 06, 2019, 11:43:57 AM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Quote
The version of Win10XPE I downloaded back in 2016 I used image 1803 to make my build.
Quote
I also notice if you right click My PC and go to properties, it list which mode you have booted for the Model:. How is that determined on boot up to list UEFI Mode or MBR mode in system properties for Model:? The older 2016 version didn't do this.

Win10XPE was first introduced in March 2018...

My apologizes. I was going by the modified date. The version that I used that I didn't have an issue booting from FAT32 and my drive letter from the NTFS was found as Y: I downloaded 11-15-18 and it's v1. I am now using v2 and having the issue listed in my original post. 

Re: MBR-UEFI Issues
« Reply #3 on: December 06, 2019, 03:16:29 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
I assume you are using a 1TB USB external disk drive ...
I assume you require more then 32GB of partition space on your boot partition...
I assume you tricked the Fat32 Boot Partition to roll over into the Non-Boot NTFS Partition

XPE uses letterswap with the /Bootdrive switch and flag - from within pecmd.ini to assign the Y
I assume that due to your Multi-Partition setup - your BootPartition is not your Y partition
Code: [Select]

Test this Edit in pecmd.ini
> // LetterSwap
// EXEC =!%WinDir%\System32\LetterSwap.exe /auto /bootdrive Y:\CDUsb.y /Log %Temp%\LetterSwap.log

EXEC =!%WinDir%\System32\LetterSwap.exe /auto /SetLetter Y:\CDUsb.y /Log %Temp%\LetterSwap.log

Else you could use a 3rd party tool to format you Fat32 Partition larger then 32GB
Else you could setup you Drive to use a boot partition and a BCD with ramdisk option
« Last Edit: December 06, 2019, 03:19:43 PM by James »

Re: MBR-UEFI Issues
« Reply #4 on: December 06, 2019, 06:43:35 PM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
I assume you are using a 1TB USB external disk drive ...
I assume you require more then 32GB of partition space on your boot partition...
I assume you tricked the Fat32 Boot Partition to roll over into the Non-Boot NTFS Partition

XPE uses letterswap with the /Bootdrive switch and flag - from within pecmd.ini to assign the Y
I assume that due to your Multi-Partition setup - your BootPartition is not your Y partition
Code: [Select]

Test this Edit in pecmd.ini
> // LetterSwap
// EXEC =!%WinDir%\System32\LetterSwap.exe /auto /bootdrive Y:\CDUsb.y /Log %Temp%\LetterSwap.log

EXEC =!%WinDir%\System32\LetterSwap.exe /auto /SetLetter Y:\CDUsb.y /Log %Temp%\LetterSwap.log

Else you could use a 3rd party tool to format you Fat32 Partition larger then 32GB
Else you could setup you Drive to use a boot partition and a BCD with ramdisk option

Thank you for the reply! The /SetLetter in the pecmd.ini did the trick! I didn't have to do that on my previous builds. I didn't do anything special, just formatted the drive with Partition Wizard. I appreciate your response. I don't mind adding /Setletter to the ini file. 

Thanks again!!

Re: MBR-UEFI Issues
« Reply #5 on: December 06, 2019, 06:59:10 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Well glad it worked for you..  :great:
I was unsure how letterswap works - but after reading the issue several times I was able to guess the cause...

Re: MBR-UEFI Issues
« Reply #6 on: December 06, 2019, 07:55:21 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
If you make your "Edit" using the "Edit Pecmd.ini" on "Build Core" Main Interface
Your edit will carryover into every build...

Re: MBR-UEFI Issues
« Reply #7 on: December 06, 2019, 09:50:09 PM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Well glad it worked for you..  :great:
I was unsure how letterswap works - but after reading the issue several times I was able to guess the cause...



It just puzzles me why in v1 I did not have to change that line in the pecmd.ini to /SetLetter. I usually edit the pecmd.ini for my custom desktop shortcuts and such but I see I can do that from a cmd on the root of the drive with v2. I will for sure change that setting in the ini before I make my build from here out.

I really appreciate your time on this!

Re: MBR-UEFI Issues
« Reply #8 on: December 06, 2019, 10:08:33 PM »

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
Somewhere along the way the process used was changed...

Re: MBR-UEFI Issues
« Reply #9 on: December 07, 2019, 12:00:25 AM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Somewhere along the way the process used was changed...

I suppose so but I am glad you pointed me to a workaround!  :grin:


Re: MBR-UEFI Issues
« Reply #10 on: December 07, 2019, 11:21:38 AM »

ChrisR

  • Moderator, XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Good to have found the right switch for multiple partitions  :thumbsup:

I didn't look at Nikzzzz's source to see the difference between
/bootdrive Y:\CDUsb.y   and   /SetLetter Y:\CDUsb.y
But I suppose /SetLetter is sufficient and good for the different cases, simple or multi patition(s) usb stick/disk.
And Probably good to have it in pecmd.ini as default value

LetterSwap.exe has changed http://theoven.org/index.php?topic=93.msg31477#msg31477 . Maybe the reason it worked before for you laddanator
:smile:

Re: MBR-UEFI Issues
« Reply #11 on: December 07, 2019, 04:32:18 PM »

laddanator

  • Chef
  • ***
  • Location: Virgina
  • Date Registered: Oct 2012
  • Posts: 268
Good to have found the right switch for multiple partitions  :thumbsup:

I didn't look at Nikzzzz's source to see the difference between
/bootdrive Y:\CDUsb.y   and   /SetLetter Y:\CDUsb.y
But I suppose /SetLetter is sufficient and good for the different cases, simple or multi patition(s) usb stick/disk.
And Probably good to have it in pecmd.ini as default value

LetterSwap.exe has changed http://theoven.org/index.php?topic=93.msg31477#msg31477 . Maybe the reason it worked before for you laddanator
:smile:

Makes complete sense now! I do think setting that \SetLetter would not be a bad idea to set as default in pecmd.ini file. I have set it to default in my builds now. That would pretty much cover almost any type or regular boot or multi-boot situation.

Thank for all that you guys do on this project! Will be sending some Christmas funds to you guys shortly.  :wink:

 

Powered by EzPortal