Hi Guys.
I have a Windows Recovery USB drive that works, when I can find it and recently I needed to. After I restored the C: drive I thought making an ISO file of it which would allow me to boot it via my Grub2 menus since I have about 3 dozen ISO boot menus.
I used the linux dd to copy the Recovery drive to an ISO.
sudo dd if=/dev/sda1 of=/mnt/nvme0n1p7/ISOs/Windows_Recovery_Drive.iso
I then tried to make a Grub2 menu to the USB drive or the ISO version of it.
if [ $grub2win_bootmode = EFI ]; then set USB_drv=/bootmgr set USB_efibootmgr=/EFI/Boot/bootx64.efi set bootdrv=$root search -l "RECOVERY" --set=root if [ $? = 0 ] ; then echo echo Grub will now boot Windows USB Recovery drive echo Boot disk address is $root echo Boot mode is Windows EFI echo echo Booting will be very slow. Be patient. sleep -i -v 6 chainloader $USB_efibootmgr set root=$bootdrv else set iso='/ISOs/Windows_Recovery_Drive.iso' search -f $iso --set=root if [ $? = 0 ] ; then echo echo Grub will now boot Windows Recovery Drive ISO echo ISO drive is $iso echo Boot disk address is $root echo Boot Manager $USB_efibootmgr echo Boot mode is Windows EFI loopback loop ($root)$iso echo Loop is ($loop) echo echo Booting will be very slow. Be patient. read chainloader (loop)/$USB_efibootmgr set root=$bootdrv else echo "----------------------------------------" echo " " echo "Windows USB Recovery drive not found. Mounted?" echo " " ls ; echo ; ls ($root) ; echo sleep -i -v 10 fi fi set root=$bootdrv fi
The errors I was getting make It seem like the loop command only likes Linux ISO files.
Then I found that I can't open the 7.3 GB ISO file in Linux or Windows to view the files in it!!
So, 2 questions: 1. how do I create a Windows Recovery ISO file and 2. how do I boot it with Grub2??
Thanks guys.