Jump to content











Photo
- - - - -

WinKexec - kexec for NT-based systems


  • Please log in to reply
34 replies to this topic

#26 Biatu

Biatu

    Member

  • Members
  • 76 posts
  •  
    United Kingdom

Posted 05 March 2017 - 08:45 PM

Any Updates?



#27 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 06 March 2017 - 08:38 AM

Any Updates?

No.
https://stump.io/pro...s/kexec/browser

:duff:
Wonko

#28 sti

sti
  • Members
  • 4 posts
  •  
    United States

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 slothman

slothman

    Member

  • Members
  • 38 posts
  •  
    United States

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 sti

sti
  • Members
  • 4 posts
  •  
    United States

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 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 16066 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 26 January 2018 - 09:37 AM

Check this also (only seemingly unrelated):

http://reboot.pro/to...c-specifically/

 

:duff:

Wonko



#32 sti

sti
  • Members
  • 4 posts
  •  
    United States

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 slothman

slothman

    Member

  • Members
  • 38 posts
  •  
    United States

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 sti

sti
  • Members
  • 4 posts
  •  
    United States

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:

http://reboot.pro/to...n-loading-grldr

Getting into pagefault . Not even reaching into grub code. I will post the details soon



#35 slothman

slothman

    Member

  • Members
  • 38 posts
  •  
    United States

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