Any Updates?
WinKexec - kexec for NT-based systems
#26
Posted 05 March 2017 - 08:45 PM
#28
Posted 25 January 2018 - 11:04 PM
I tried to boot into windows 7 using winkexec(as attached by Icecube). here is a quick diagram
winpe(32bit)->winkexec->grub4dos --- to boot windows 7.
Here is the command i was trying to use
kexec -l grub.exe --command-line="root(hd0,0),chainloader +1;boot"
Everything went fine and then i rebooted the PC. I got a screen where it say
...Some copyright message...
Sorting pages...
After that nothing seems to happen.
#29
Posted 25 January 2018 - 11:39 PM
sti,
The problem you have there is you cannot give it the command line option.
Ordinarily, grub would be invoked and would accept it, but since we're going through winkexec, it does not give you that option.
One option would be to have the command line embedded into grub.exe itself.
It's been awhile since I've done that so you'll have to check the docs on how to accomplish that.
If you leave the default embedded commands though, it should look for menu.lst and run it when it can find it.
Do you have a menu.lst with "timeout 0;root(hd0,0);chainloader +1;boot"
On any of your disks?
#30
Posted 26 January 2018 - 12:45 AM
sti,
The problem you have there is you cannot give it the command line option.
Ordinarily, grub would be invoked and would accept it, but since we're going through winkexec, it does not give you that option.
One option would be to have the command line embedded into grub.exe itself.
It's been awhile since I've done that so you'll have to check the docs on how to accomplish that.
If you leave the default embedded commands though, it should look for menu.lst and run it when it can find it.
Do you have a menu.lst with "timeout 0;root(hd0,0);chainloader +1;boot"
On any of your disks?
I am going to try as per your suggestion.
#31
Posted 26 January 2018 - 09:37 AM
#32
Posted 29 January 2018 - 10:48 PM
I am going to try as per your suggestion.
I tried copying menu.lst to the first harddisk root and i still dont see it picking of the config file. Any other clue?
#33
Posted 30 January 2018 - 05:20 AM
I tried copying menu.lst to the first harddisk root and i still dont see it picking of the config file. Any other clue?
Well I think the only way is to embed the command into grub.exe itself
Use a hex editor and copy the contents of the menu.lst file and paste it at the end of grub.exe starting with pxe detect
This thread should give you additional guidance if you need it:
http://reboot.pro/to...n-loading-grldr
#34
Posted 01 February 2018 - 09:35 PM
Well I think the only way is to embed the command into grub.exe itself
Use a hex editor and copy the contents of the menu.lst file and paste it at the end of grub.exe starting with pxe detect
This thread should give you additional guidance if you need it:
Getting into pagefault . Not even reaching into grub code. I will post the details soon
#35
Posted 06 February 2018 - 06:41 PM
sti,
I think the main issue is that winkexec doesn't save the environment from when the machine is booted up.
This was mentioned in at least 1 other thread.
For some machines, it doesn't matter too much that the environment is not saved.
For others, it is everything.
Also, I'm not sure if winkexec can even work on UEFI machines as I believe it was made for BIOS.
In any case, it sounds like it definitely needs more work.
I'd like to do it, but I have too many other higher priority projects atm.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users