Jump to content











Photo
- - - - -

boot windows 8 vhd with grub


  • Please log in to reply
29 replies to this topic

#26 wimb

wimb

    Platinum Member

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

Posted 05 January 2019 - 12:08 PM

 

steps I did:  normal windows 8.1 install.

install firadisk driver, disable pagefile, hibernation etc. reboot into a PE. copy the contents of the C into a VHD. try the boot the VHD with grub4dos.

 

Since you copy Installed Windows 8.1 into vhd, you need to repair the registry key MountedDevices in your VHD SYSTEM registry.

The Disk Signature and the Partition Offset can be found in the MBR of the VHD.

In Windows 10 you can mount the 8.1 VHD in explorer with a double click on the file.

Tiny Hexer allows then to view the MBR and read the DiskSignature of 4 bytes at offset 0x1B8 and the Partition Offset of 4 bytes at 0x1C6

The correct value of the \DosDevices\C: key of 8.1 VHD can also be found in the registry MountedDevices of Windows 10 for the VHD mounted as drive N: in my case.

In VHD registry loaded as SYSTEM_VHD you can remove all MountedDevices entries except \DosDevices\C: and then repair this one for the correct DiskSignature and Partition Offset.

 

Also you need to repair the BCD inside the VHD e.g. with BOOTICE, since ApplicationDevice and OSDevise are now unknown and that will not work.

 

Most likely you also need UsbBootWatcher and you should empty folder Windows\Prefetch

 

All these precautions and some more are taken care of in VHD_W8_Compact.exe used for Making Portable and Mini 8

 

W10_MountedDev.pngW81_MountedDev_VHD.png = W81_MBR_VHD.pngW81_BCD_VHD.png

 

Better is to Install straight into VHD as done e.g. in making Win 10 x64 VHDX booting from Portable SSD

see - In that case there are no fixes needed.

 

:cheers:



#27 favorinus

favorinus

    Newbie

  • Members
  • 20 posts
  •  
    Aland Islands

Posted 05 January 2019 - 05:47 PM

Hi, wimb,

 

copy the already installed windows 8 into a VHD was my first attemped. Now I have a windows 8 installed straight into the VHD using the guide provided by the SVbus driver. It booting fine as FILEDISK and RAMDISK when the VHD is on the internal HDD. Coping the VHD to a usb stick or usb hdd cause that the grub RAMDISK works fine, while FILEDISK gives me the INACCESSIBLE_BOOT_DEVICE error. Both using grub and bootmgr. 

 

Two things I will do now it take a look and the USB drivers and the ApplicationDevice and OSDevise in the BCD. 



#28 steve6375

steve6375

    Platinum Member

  • Developer
  • 6943 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 05 January 2019 - 06:04 PM

can you use VirtualBox+VMUB to boot the USB drive as FILEDISK?

Under VBOX, the USB drive will appear as a HDD and so it should work when booting the same USB drive on a real system does not.

Can you test please?



#29 wimb

wimb

    Platinum Member

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

Posted 05 January 2019 - 06:12 PM

Hi, wimb,

 

copy the already installed windows 8 into a VHD was my first attemped. Now I have a windows 8 installed straight into the VHD using the guide provided by the SVbus driver. It booting fine as FILEDISK and RAMDISK when the VHD is on the internal HDD. Coping the VHD to a usb stick or usb hdd cause that the grub RAMDISK works fine, while FILEDISK gives me the INACCESSIBLE_BOOT_DEVICE error. Both using grub and bootmgr. 

 

Two things I will do now it take a look and the USB drivers and the ApplicationDevice and OSDevise in the BCD. 

 

That sounds like you need UsbBootWatcher .... which you don't need in case of Win 10 x64 VHDX ....



#30 favorinus

favorinus

    Newbie

  • Members
  • 20 posts
  •  
    Aland Islands

Posted 08 January 2019 - 04:24 PM

 

 

can you use VirtualBox+VMUB to boot the USB drive as FILEDISK?

When I try this option windows 8.1 is booting fine.

 

 

 

That sounds like you need UsbBootWatcher 

 

I have installed this but still it gives me the 7B .  I will take a better look at the drivers, I think they are not working well.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users