Wndows 7/2008 R2 Loaders

Discussion in 'MDL Projects and Applications' started by nikmb, Mar 17, 2010.

  1. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #1 nikmb, Mar 17, 2010
    Last edited: Sep 17, 2010
  2. secr9tos

    secr9tos MDL Addicted

    Jul 28, 2009
    999
    133
    30
    So basically ur saying that u'ce written ur own loader right?
     
  3. Hazar

    Hazar MDL Guru

    Jul 29, 2009
    2,523
    454
    90
    He showed me that in PM yeah he wrote his own loader
     
  4. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,504
    3,619
    120
    Yes, i'm interested :)
    why not just post it here? ;)
     
  5. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
  6. pkaji123

    pkaji123 MDL Addicted

    Aug 22, 2009
    763
    224
    30
    #6 pkaji123, Mar 18, 2010
    Last edited: Mar 18, 2010
    Seems to be interesting,will test it..
    Anyways thanks for sharing..
    +1:biggrin:
     
  7. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    @pkaji123.

    I would appreciate feedback on success/failure.

    Thanks
     
  8. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,504
    3,619
    120
    #8 FreeStyler, Mar 18, 2010
    Last edited: Mar 18, 2010
    thx for sharing, interesting stuff ;)
    Now if i only had a linux box :)

    I had a quick glance at your code, i assume we could just edit the menu.lst and create additional entries for other OEM manufacturers, right?

    Would your loader be suitable to use from CDrom / USB , like this and this one?
     
  9. secr9tos

    secr9tos MDL Addicted

    Jul 28, 2009
    999
    133
    30
    @nikmb: I like the idea of open source => rep +1
     
  10. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    @freestyler I use a VMWare Linux guest.
    @secr9tos So do I.
     
  11. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
  12. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,504
    3,619
    120
    Thx for the prompt reply, will try it asap (now if i only had some spare time)
     
  13. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    Just to let everybody know about future development ideas.

    At the moment I use the EBDA (extended bios data area) which is seldom used and gauranteed to be a minimum of 1K and can be as much as 8K.
    Should problems arise with this simple method these are other options I am working on.
    1) In place update of RSDT/XSDT if space is availble at the end of each table and the memory is writeable. This would mean the RSDP, RSDT and XSDP need not be moved.
    2) Slic placement into other memory areas should the EBDA be used for something else.

    These options could be automatic or as I'd prefer by commands so there is no guessing and a particular configuration can be setup for problematic machines.
     
  14. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,504
    3,619
    120
    Ok, have been trying to replace the SLICLDR in the CD ISO with your grbldr and added menu.lst, default and oem.bin. The menu is not showing up... am i doing something wrong?
    I do not wan't to install grbldr into a physical drive, it has to be loaded in memory straight from the CD ISO.
     
  15. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    That's what I would have tried as well.
    I will attempt the same and see if I can get it to work. It will take me 30+ minutes I guess.
     
  16. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #16 nikmb, Mar 18, 2010
    Last edited: Apr 27, 2010
    (OP)
    Here's a bootable grub4dos slic loader for you.

    See http://forums.mydigitallife.net/threads/17382-Wndows-7-2008-R2-Loaders?p=251254#post251254

    Here's how I created it using UltraISO
    Create new empty CD project
    make sure all filenames are lower cased. Remember Grub4dos is Linux and case sensitive.
    Copy grldr, oem.bin, menu.lst to the cd image, I left default in by mistake, it's not needed anyway.
    Set the boot file to grldr
    I changed the sequence of commands in menu.lst and removed savedefault commands as you can't save to the cd.
    change the iso properties in UltraISO to allow lower case.
    Save the Image as iso.
    Tested ok, slic was loaded.
     
  17. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,504
    3,619
    120
    Thx... downloading right now, will post result once i tested it
     
  18. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,504
    3,619
    120
    First test.

    Physical machine:
    After selecting 2 (option 2 which uses the /loadslic cmd) the cd boots into the PQSERVICE Recovery Partition

    Virtual Box:
    After selecting 2 (option 2 which uses the /loadslic cmd) the cd boots, screen blinks, saying:

    http://forums.mydigitallife.net/attachment.php?attachmentid=5975
     

    Attached Files:

  19. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #20 nikmb, Mar 18, 2010
    Last edited: Apr 27, 2010
    (OP)
    Ignore rsdt not writeable that's a test version. I'll repost with the correct version shortly.
    You'll need to change the contents of menu.lst
    grub4dos uses this naming convention
    (hd0,0) is first hard drive first partition, (hd0,1) 1st hdd 2nd part, (hd1,0) 2nd hdd 1st partition so depending on what hard drives and partitions you'll need to change menu.lst accordingly. you can edit this at boot time when the commands are shown, e edit, b boot o open new line etc.

    if the recovery partition is the first partition on the hard drive try this which will prevent a search of the 1st hdd's partition being searched for the bootloader. I'll create a multi partition installation and verify that nothing unexpected happens.

    find which partition has the system reserved partition or if you boot direct into the root c drive which partition is it.
    change the command chainloader /bootmgr to chainloader (hd0,1) /bootmgr if partition 2 contains the system reserved partition of bootloader.


    new iso image without my test for writeable rsdt

    http://forums.mydigitallife.net/threads/17382-Wndows-7-2008-R2-Loaders?p=251254#post251254

    The second problem is more conerning, not being able to open the oem.bin file when it most definitely is there. Have you changed the menu.lst file at all? And what kind of virtual box is it. FYI I've downloaded the file above to make sure I'm definitely using the same as you and it works fine from the cd image (VMWare).

    Let me know what you hdd, partition settings are and we'll try this together.