Cloning Windows 11 and Getting it to Boot
...here's a complex subject. Just rough notes for now;
1st, remember to disable Ready Boost (it can cause some funky Blue Screen issues): https://support.bromium.com/s/article/Disabling-Windows-10-Fast-Startup (and don't forget to mount the proper SYSTEM Hive, the System Hive from the Bootable Media or Rescue Media is different)
Be prepared to fix BCD stuff (the BOOTREC command is next to useless. Imagine spinning around in a circle seven times, and then pinning the tail on the donkey, that's about the success chances of BOOTREC) with: BCDBOOT: https://www.partitionwizard.com/partitionmagic/the-requested-system-device-cannot-be-found.html (Documentation from Microsoft: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/bcdboot-command-line-options-techref-di?view=windows-11)
BCDBOOT might require using DISKPART to manipulate drive letters: See above BCD Article and these: https://winaero.com/remove-drive-letter-windows-10/, https://winaero.com/change-drive-letter-windows-10/
RAID VS AHCI: In Windows 11, there's a shortcut to switching between RAID and AHCI: https://support.thinkcritical.com/kb/articles/switch-windows-10-from-raid-ide-to-ahci (The registry can still be used too, but this seems easier, except if one wants to switch back to IDE / ATA: https://wrw.is/switching-from-ahci-mode-back-to-ide/, and to a lesser degree: https://www.partitionwizard.com/partitionmagic/enable-ahci-after-win-10-installation.html)
Quick Notes;
...turn off Ready Boost or Boot or whatever
Fix the BCD
NOTE: The BCD boot menu comes AFTER disk WhatEver.sys file, so if the correct drivers aren't there, will never see the menu
Another NOTE: One of the solutions from switching to ATA (IDE for SATA), is to switch the BIOS to AHCI (from ATA), then let it reboot and crash a couple of times until it finally offers the Safe Mode option (F8), then boot to Safe Mode, Reboot, then it will be in AHCI mode. OR use the boot CD / DVD / ISO to modify the Start Up Settings (in the BSD)
For Windows 11 (assuming RAID drivers are installed and assuming Windows was originally installed using the built in Intel RAID drivers or in AHCI mode, then RAID drivers installed and switching to RAID mode)
Switching from AHCI to RAID (or vice versa) is just changing it in the BIOS, letting Windows Boot, crash, reboot, crash, reboot, then Safe Mode, boot, then reboot, in RAID Mode (or reinstall the RAID drivers while in AHCI mode, then rebooting)
RAID or AHCI to IDE seems to be all good to go (or a Safe Boot, then Restart)
And IDE to ACHI
Noted Differences in Registry;
IDE / ATA: iaStorV is set to 0
AHCI: iaStorV is set to 1
RAID: iaStorV is set to 1
iaStor (plain) and msahci do NOT seem to exist anymore for Windows 11 (but storeahci does), perhaps in favor of the MS Storage Space 'thing' / 'multi-driver thing' (present in RAID, AHCI, and ATA / IDE).
intelide and pciide always set to 0 for RAID, IDE / ATA and AHCI modes
...see here for more information on Intel RAID and AHCI: https://blog.workinghardinit.work/2018/11/28/moving-from-ahci-to-raid/
In the end, switching between modes can be as simple as boot / safe mode / boot, without worrying about manually changing registry entries.