关于为Bacula WinBMR 3.4.2 ISO(基于WinPE v4/Win8版本)添加NVMe PCIe SSD驱动的技术咨询
Absolutely, you can integrate NVMe drivers into your Bacula WinBMR 3.4.2 ISO to fix the NVMe detection issue—since this version is built on WinPE 4.0 (Windows 8-based), which doesn't include native NVMe support by default. Here's a practical, step-by-step guide to get this working:
Prerequisites
- 7-Zip (or another ISO extraction tool) to unpack the original WinBMR ISO.
- Windows ADK for Windows 8 (to get the
DISMandoscdimgtools—these are required for modifying WinPE images and rebuilding the bootable ISO). - NVMe drivers compatible with WinPE 4.0/Windows 8: You'll need drivers specifically built for Windows 8 (x86 or x64, matching your WinBMR ISO's architecture). Grab these from your motherboard or NVMe drive manufacturer's website—make sure to avoid newer Windows 10/11 drivers, as they won't work with WinPE 4.0.
Step 1: Extract the original ISO content
- Use 7-Zip to open your
Bacula WinBMR 3.4.2.isofile. - Extract all files and folders to a local directory (e.g.,
C:\WinBMR_Original).
Step 2: Mount the WinPE boot image
WinPE's core files are stored in sources\boot.wim inside your extracted ISO. We need to mount this image to inject drivers:
- Open an elevated Command Prompt (Run as Administrator).
- First, check how many indexes are in the boot image (some WinPE images have multiple):
Dism /Get-ImageInfo /ImageFile:C:\WinBMR_Original\sources\boot.wim - Mount the image using the index number (usually
1for the default WinPE image):
Wait for the process to complete—you'll see a "The operation completed successfully" message when done.Dism /Mount-Image /ImageFile:C:\WinBMR_Original\sources\boot.wim /Index:1 /MountDir:C:\WinBMR_Mount
Step 3: Inject the NVMe drivers
- Place all your extracted WinPE 4.0-compatible NVMe driver files (including
.inf,.sys,.catfiles) into a folder (e.g.,C:\NVMe_Drivers). - Run this command to inject all drivers in the folder (and subfolders) into the mounted WinPE image:
Verify that the drivers were added successfully by running:Dism /Image:C:\WinBMR_Mount /Add-Driver /Driver:C:\NVMe_Drivers /Recurse
You should see your NVMe drivers listed here.Dism /Image:C:\WinBMR_Mount /Get-Drivers
Step 4: Unmount and save the modified image
Once the drivers are injected, save the changes and unmount the image:
Dism /Unmount-Image /MountDir:C:\WinBMR_Mount /Commit
The /Commit flag ensures your changes are saved to the boot.wim file.
Step 5: Rebuild the bootable ISO
Use the oscdimg tool from the Windows ADK to create a new bootable ISO that includes your modified WinPE image:
- Navigate to the ADK's deployment tools directory (e.g.,
C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg—adjust for x86 if needed). - Run this command to generate the new ISO (replace paths as needed):
This command creates an ISO that supports both BIOS and UEFI boot modes, which covers most modern systems.oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,bC:\WinBMR_Original\boot\etfsboot.com#pEF,e,bC:\WinBMR_Original\efi\microsoft\boot\efisys.bin C:\WinBMR_Original C:\WinBMR_NVMe.iso
Important Notes
- Double-check that you're using the correct driver architecture (x86 vs x64) matching your original WinBMR ISO. Using the wrong architecture will break the image.
- If your
boot.wimhas multiple indexes (from Step 2), repeat the driver injection process for each index to ensure all WinPE environments in the ISO have NVMe support. - Test the new ISO on your NVMe-equipped device before relying on it—boot from the ISO and verify that the NVMe drive is detected properly.
备注:内容来源于stack exchange,提问作者bill saplam

