If one wants to install WINDOWS OS but get no cd drive or it's broken, , if he has a MSDN WINDOWS image downloaded, and has grub2 installed on disk, then this post would help. Ignore it if u don't like it.
All starts from a new feature introduced in grub2, that can activate the windows boot script called bootmgr, with following commands:
So that one can start windows on-disk installation from a grub-shell.
grub:> set root=(hdX,Y) #where bootmgr is located.
grub:> insmod ntfs # load ntfs module
grub:> ntldr /bootmgr
1. Mount the windows image: the iso file
2 copy all files and dirs in the iso file to the root of a ntfs partition #not any directory
3 reboot, enter grub2 shell, type in the above commands.
4 then you will see the windows installation starting.
a. If u are not sure about the the number of partition where bootmgr is located, u can use this trick:
This will auto set the target partition as root.
grub:> search --file --set=root --no-floppy /bootmgr
b. The latest microsoft windows images likely use udf filesystem, when mounting, remember to use '-t udf' option.