Hacking W7 OS to tweak F11 behavior

Zzzzzz
 

My Computer My Computer

At a glance

Windows 7 Home Premium 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
HP G62
OS
Windows 7 Home Premium 64 bit
BTW :
HLzdSWv4dBL_tree.png



290990-Merry-Christmas-Happy-New-Year.gif


Merry Christmas !!! :party:
iBenny
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
HP G62
OS
Windows 7 Home Premium 64 bit
You wanted to recreate F11 which is in the MBR not in windows bcd tools to edit mbrhttps://www.raymond.cc/blog/5-free-tools-to-backup-and-restore-master-boot-record-mbr/
 

My Computer My Computer

At a glance

win 8 32 bit
Computer type
PC/Desktop
OS
win 8 32 bit
Many thanks Samuria !

By going to your link I saw the BootICE image and saw the PBR button on the bottom. I will explore the functions of this BootICE button as requested by SIW2, then explore your link Samuria if I can find something to use.

But don't forget Samuria that in order to make the F11 key to work, the RECOVERY partition has to be bootable and functional in the first place when we make it 'active'...

Merry Christmas !!! :party:
iBenny
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
HP G62
OS
Windows 7 Home Premium 64 bit
Ok... I renamed (make a backup) bootmgr. When renamed (only bootmgr, not ntldr), the PBR change was performed and on reboot, now I have an error window stating that :

An operating system wasn't found. Try disconnecting any drives that don't contain an operating system.

Implying that the RECOVERY partition don't have an operating system...

It was the PBR (bootmgr) of the RECOVERY partition you wanted me to refresh isn't it ? or the one of the SYSTEM or Windows partition ?

Merry Christmas !!! :party:
iBenny
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
HP G62
OS
Windows 7 Home Premium 64 bit
Implying that the RECOVERY partition don't have an operating system...

That message usually indicates that the mbr executable executable code can't find an active marker in the partition table.

Try using bootice to

1. install mbr NT6 code,

2. double check you have a partition marked active (click "parts manage" and make sure there is an A in the column headed Act. )


It was the PBR (bootmgr) of the RECOVERY partition you wanted me to refresh isn't it ? or the one of the SYSTEM or Windows partition ?


The Active partition - I don't know which you have marked active at this point.

If you have marked the correct partition active , and you have installed the correct PBR and bootmgr, then the other possibility is the BCD entry.
 
Last edited:

My Computers My Computers

  • At a glance

    7 X64i5 84002x8gb 3200mhz
    Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • At a glance

    7x64g54008gb ddr4 2400
    Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
That message usually indicates that the mbr executable executable code can't find an active marker in the partition table.
Try using bootice to
1. install mbr NT6 code,
2. double check you have a partition marked active

HLAc5cCMMpL_ActivePart.png


"1. install mbr NT6 code..."; How ? which tab/button in BootICE ? 'Physical disk | Process MBR' ?

I found interesting readings today :

BIOS/MBR boot process from hard disk goes like this:


  1. BIOS firmware initialization and self test (Power On Self Test - POST)
  2. load and execution of MBR (Master Boot Record) on first disk
  3. load and execution of partition boot record (PBR) on active partition
  4. load and execution of boot manager ("\bootmgr") from active partition and then display of boot menu (skipped if only one boot entry)
  5. load and execution of Windows NT6 loader - file "winload.exe" from \Windows\System32 folder
  6. load and execution of kernel and drivers

For a successful boot, at least to boot menu, following items are needed;

  1. Microsoft MBR (use bootsect.exe to fix Master Boot Record)
  2. Microsoft NT6 PBR on active partition (use bootsect.exe to fix Partition Boot Record called also VBR - Volume Boot Record)
  3. \bootmgr on active partition (or \EFI\Micosoft\Boot\bootmgfw.efi on ESP)
  4. \Boot\BCD on active partition (or \EFI\Microsoft\Boot\BCD on ESP)
In the above sequence, all boot Fx keys (F2, F3, F8, F9, F10, F11, F12, ESC, DEL) are managed by who ? They usually are pressed before POST but it does not mean that it is the POST that treat them. The second in line is the MBR so, as hinted by Samuria, could it be that the MBR is the one that treats all Fx booting key calls ?

The reading sources :
Repair Windows BCD - Windows 10/8.1/7/Vista
How to rebuild the Master Boot Record (MBR) and Boot Configuration Data (BCD)...
Réparer le secteur d'ammorçage avec BootRec
Bootsect Command-Line


If not in BootICE, how about a bootsect /nt60 [target drive] /force command ?

While into the main Windows OS cmd (administrator) prompt :
bootsect /nt60 H: /force

While in the SIW2 Recovery boot CD cmd prompt :
bootsect /nt60 C: /force


Merry Christmas !!! :party:
iBenny
 

My Computer My Computer

At a glance

Windows 7 Home Premium 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
HP G62
OS
Windows 7 Home Premium 64 bit

My Computers My Computers

  • At a glance

    7 X64i5 84002x8gb 3200mhz
    Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • At a glance

    7x64g54008gb ddr4 2400
    Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
No improvement... :confused: :

An operating system wasn't found. Try disconnecting any drives that don't contain an operating system.


Best regards
iBenny
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
HP G62
OS
Windows 7 Home Premium 64 bit
Is the RECOVERY partition PBR flawer in some way ?

HLEq1Su0m7L_PBR---RECOVERY-part.png


Is the MBR well constituted ?

HLEsBrpszrL_MBR.png


In the MBR Partition table, the RECOVERY partition is listed as #4 and starts at
off 502 + 941,657,404
while that partition Boot sector starts at
482,128,590,848 !
Is there an inconsistency here ?

Best regards
iBenny
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Home Premium 64 bit
Computer type
Laptop
Computer Manufacturer/Model Number
HP G62
OS
Windows 7 Home Premium 64 bit
Back
Top