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
    Sounds like a hardware problem for the PB machine to me as well.
    So.....?

    Does this mean your requirements are fulfullied?
    And do you mind if I ask why you want to boot these machines this way. You can decline to answer of course of PM me if you want to be discrete.
     
  2. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Easy,
    1) i'm about 99% sure Microsoft will find a way to detect/remove grldr which loads a slic into memory whenever they are installed on physical hd's, deleting from a cd? impossible :)
    2) Testing purposes on different systems

    Gonna burn the iso one more time to test it on the PB system, kinda strange as it would not even show the menu last time, it did this correctly before (although slow)
     
  3. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    I see. So a happy customer then :biggrin:

    I think grldr/gub/bootcamp/darwin detection would be quite straightforward but what do M$ do then? They can't remove it as it could be a completely valid dual boot configuration with the user using those boot loaders. They would alienate an awful lot of people who dual boot another os with windows. Also there is the problem of booting windows vista/7/2008 from a second drive, it won't but grub4loader can.

    This is the dilema as I see it and I don't think they will take any action without causing more damage than they're trying to contain.
     
  4. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Yea maybe you are right, the future will tell ;)

    I can confirm it worked on the PB machine as well last time... had used windows 7 internal burn tool instead of imgburn this time.
    It booted fast, menu showed instantly, so maybe the error is with imgburn
     
  5. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    Good news yet again.

    Have a good weekend.
     
  6. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    You too, thanks for your assistance ;)
     
  7. pkaji123

    pkaji123 MDL Addicted

    Aug 22, 2009
    763
    234
    30
    And What's up the result of this discussion..
    A new way of loader am I right?
     
  8. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    A new loader with all the functionality of grub4dos AND I made the source public.
     
  9. pkaji123

    pkaji123 MDL Addicted

    Aug 22, 2009
    763
    234
    30
    For which you deserve a rep..
    +1 thanks once again,and what about implementation?
     
  10. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #50 nikmb, Mar 19, 2010
    Last edited: Mar 19, 2010
    (OP)
    Please read post #5 in this thread.

    I have not written a flashgui for this. This thread is all about making public how it was done and to put the source in the public domain.
    Thread #5 has the link for the amended source and how to build it.

    Please report any problems and I will correct and republish the code and links to the exectable.
     
  11. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #51 nikmb, Mar 19, 2010
    Last edited: Mar 19, 2010
    (OP)
    Hi ireneuszp

    I tried your method but unfortunately I get lots of compile errors.
     
  12. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    #52 FreeStyler, Mar 19, 2010
    Last edited: Mar 19, 2010
    nikmb, would it be possible to build in some sort conditional checking of partitions? eg: if it is a PQSERVICE partition load (hd0,1) else (hd0,0)

    Says if i type the command below on a PC with PQSERVICE partition it returns:
    grub> root (hd0,0)
    Filesystem type is ntfs, partition type 0x12

    Same command on the SYSTEM RESERVED (100MB) partition gives:
    grub> root (hd0,1)
    Filesystem type is ntfs, partition type 0x7
     
  13. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
  14. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    Hi

    I'm not going to get into modifying other areas of grub4dos, only the bios mod part, sorry.
    So here is my suggestion.

    If the PQSERVICE is always the first partition then you could try booting looking for bootmgr in the highest position and falling back to the next lowest partition.

    rootnoverify (hd0,4)
    fallback 2

    2
    rootnoverify (hd0,3)
    fallback 3

    and so on.
     
  15. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    Thats no good, as what will happen if someone is using a multi-boot config? Exactly ;)
     
  16. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    Yes you're right. I'll have a look at the code but this is raw disk io and could take some time but I will not be taking on the responsibility of modifying it for everybody.
    So what you need is a command like partname, right?
     
  17. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    #57 FreeStyler, Mar 19, 2010
    Last edited: Mar 19, 2010
    Possible solutions could be:
    Check if (hd0,0) partition type 0x12 or 0x27 -> this would be PQSERVICE/Recovery partition
    Check if (hd0,0) partition is hidden -> this could be PQSERVICE/Recovery partition (Not preferred as this could be a hidden OS partition as well)
    Boot the first 'Active' partition -> this would not be PQSERVICE partition as it is marked inactive... now i think of it this may be the best option, simply boot into the 'active' partition, as only 1 partition can be marked as 'active'
     
  18. nikmb

    nikmb MDL Member

    Feb 22, 2010
    107
    55
    10
    #58 nikmb, Mar 19, 2010
    Last edited: Mar 19, 2010
    (OP)
    thanks for the suggestions. A quick look at partition tables tells me name is not there as this is a part of windows, so is the active partition, at boot tme there is only type and hidden so I would prefer to work with what grub4dos already has.

    And as for the multi boot issue, I'm only trying to help you with your problem not what others may have. That's a grub4dos issue and beyond what I'm prepared to take on.
    You may end up having to leave a cd configured for each pc in the cd drive to achieve what you want.

    Anyway, the weekend calls now, I'll let th problem simmerovr the weekend.
     
  19. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120
    I updated my previous post with a few remarks... makes sense, doesn't?
     
  20. FreeStyler

    FreeStyler MDL Guru

    Jun 23, 2007
    3,557
    3,832
    120