Jump to content











Photo
- - - - -

In a vhd file, is it possible to modify BCD for using {ramdiskoptions} ?

winpe vhd ramdisk

  • Please log in to reply
5 replies to this topic

#1 noel

noel

    Frequent Member

  • Advanced user
  • 111 posts
  • Location:nantes
  •  
    France

Posted 21 February 2019 - 09:26 PM

hello,

Because my english is so poor, i prefere write a long explanation with short sentences.

 

I create a VM (generation2 with UEFI) in HyperV.
I disable snapshots ( too many issues with the differential file )
I create a VHDX file (fixed size, GPT/UEFI)
I create the two partitions ( ESR fat32 and System ntfs )
I create the BCD for UEFI
I expand my "customised" winpe in the "system" partition with dism /apply....
So, in the VHDX file, i get a winpe in Flat mode.
Start is OK.

Now i install an application which modifies "files, system hive, software hive".
Because Flat mode, files are ok for the next boot.
System hive is easy to backup and to modify for the next boot.
Software hive is easy to backup for the next boot. No possibility to recopy it at this time because the file is locked

Now i need to boot on a second "small" winpe in the same VHDX file for recopying the two saved hives.
I create a new directory "x:\newWinpe" and expand a second small winpe.
I create a new entry in the BCD file for this second small winpe.
After boot, i can choose between the two "Flat" winpe.
I choose the second small winpe.
I can recopy the two hives in the first big winpe.
And now, when i boot on this first winpe, i retrieve the "new" application. And it works well.

 

My question : for the second "small" winpe, i want to use a boot.wim (not expanded) file. How can i modify the BCD file for that?

Thank you to give me some ideas.



#2 cdob

cdob

    Gold Member

  • Expert
  • 1442 posts

Posted 22 February 2019 - 06:08 AM

You have to add the file boot.sdi too.
This can be different locations, UEFI ESR, \boot\boot.sdi.
Or at the boot.wim folder.

http://diddy.boot-la...#ramdiskoptions

Copy boot.sdi and boot.wim first.
Adjust ramdisksdidevice and ramdisksdipath to existing file layout next.

#3 wimb

wimb

    Platinum Member

  • Developer
  • 2665 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 22 February 2019 - 02:56 PM

 

My question : for the second "small" winpe, i want to use a boot.wim (not expanded) file. How can i modify the BCD file for that?

Thank you to give me some ideas.

 

If your FAT32 partition has sufficient size to accomodate your boot.wim file Then

- In Win10 x64 OS mount your VHDX file using double click

- Use UEFI MULTI to make boot entry for boot.wim and boot\boot.sdi file added to FAT32 Boot drive

 

Else

- you can use BOOTICE to make New WIM Boot entry for boot.wim + boot.sdi located in folder on NTFS partition

 

More Info:



#4 noel

noel

    Frequent Member

  • Advanced user
  • 111 posts
  • Location:nantes
  •  
    France

Posted 22 February 2019 - 11:15 PM

Thank you for your quick answers. Links are very helpfull.

 

Because of my very poor English, I did not write down all my research or report what I have been manipulating fairly regularly in the last few years. And I understand that they are very difficult for you to invent.

I am familiar with WinPE that I use in various contexts, ISO, Flat, CD/DVD (Ramdisk), USB key/pen, VHD, Hard disk, VM or not....
But this is the first time that I do not find the right solution with this very particular context, VHDX (UEFI/GPT) in a VM with 2 WinPE (one in Flat mode and the other in mode  "boot. wim".

I know how to stay humble and recognize that I don't know much, WinPE is too big a topic for me.

I still have to say that the language barrier is such an obstacle to me that what appears to you simple and obvious is to me as an Egyptian text. That's why I use very little software like grub4dos or others. Please do not hold it against me.

As soon as I can restart my tests (2-3 days), I will post a link here to make available the various bcdedit commands and the associated contents of BCD. Maybe you'll see my mistake?

See you soon



#5 cdob

cdob

    Gold Member

  • Expert
  • 1442 posts

Posted 22 February 2019 - 11:41 PM

Please, can you post a 'dir boot.sdi' and 'dir boot.wim' ? The result should include boot.sdi and boot.wim.
Is boot.sdi located at the EFI ESR partion, or at another partition?
And post a 'bcdedit.exe /store bcd /enum all' ? (change directory to the bcd file first)

Given that information, it's possible to make a specific suggestion.

#6 noel

noel

    Frequent Member

  • Advanced user
  • 111 posts
  • Location:nantes
  •  
    France

Posted 23 February 2019 - 09:19 AM

While I was collecting the information requested by CDOB, I realized that I had renamed  "boot.wim" file to "small-boot.wim".
I'm ashamed not to have checked properly before asking a question.  :realmad: 

 

You found my mistake. :) 
Thank you for taking time to think and solve my problem.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users