MSFN Forum: HP Notebook: The recovery partition could not be found - MSFN Forum

Jump to content


  • 11 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

HP Notebook: The recovery partition could not be found Rate Topic: -----

#121 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 12 April 2009 - 11:18 AM

Quote

see it's absolutely of no use participating to this game. :(

It has been fun while it lasted. :)

So long and thanks for all the sectors.... ;)

:hello:

jaclaz


May be it can last......
I still didn't restore the F11 function....
AND I offer my assistant to make some experiments that may reveal the mystery of this partition.

Quote

Also, I seem to be missing two things:
  • the bootsector form your Recovery partition (16 sectors)
  • the bootsector from the recovery partition of your friend (the first one) also 16 sectors.

Here you are : http://rapidshare.com/files/220509011/Reco...ctorsr.rar.html


#122 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 12 April 2009 - 04:21 PM

Playing games :) :} ;)

I have no enought knowledge but
let's try more efforts to resolve issue, thinking the problem is worldwide...

Applying WAUfix.bat from C:\hp\recovery\bin folder finally I can see F11 WBM window with three line menu.
But the first one is "ramdisk option" instead of Recovery Manager. Do nothing of coarse.
Little left to do...

I suspect this menu item points to a Vista BCD file. Any idea?

Ahmad8020 more things to be missing:

* the MBR and bootsector __C:__ from your friend 16 sectors.
* C:\boot\bcd

And by the way have you pass through Complete Factory Restore?
That should return your computer to be boot with F11 enabled and running without problem. Or I missed somewhat in discussions :unsure:

This post has been edited by Snack: 14 April 2009 - 05:50 AM


#123 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,574
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 13 April 2009 - 05:20 AM

Though I am now out of the game, I guess that the preliminary work and maybe some of the conclusions I got to might be of use to someone willing to take part in it.

This post will be extremely long, and in some parts will be more similar to a RANT :realmad: than to a valid technical post, please try forgiving my verbosity and my critical attitude.

Let me state beforehand a few facts and personal opinions:
I find HP has been for yesrs the best firm in the world for pocket calculators (in my life I bought several tens of them)
I find HP has been for years the best firm in world for Laser printers (as well in my life I bought several tens of them)
I find HP has been for years the best firm in the world for plotters (as well in my life I bought several tens of them)
I find Compaq has been for years the best firm in the world for plotters (as well in my life I bought several tens of them - in the years 1992 up to 1995)
I find current HP policies with software and particularly with OS simply appalling :ph34r: .
HP was facing to be condemned for similar practices in a Class action and opted for a settlement:
http://web.archive.org/web/20060402204440/...settlement.com/
It seems like it is a common practice for HP to close with a settlement cases where they were accused to provide defective products and/or failed to give Customers satisfacting repairs/fixes:
http://barrettgrider....com/index.html
In Italy there are currently several cases opened against HP following its refusal to reimbourse customers that do not want Vista on their PC's (Italian):
http://punto-informatico.it/1354479/PI/New...unciata-hp.aspx
http://punto-informatico.it/2096808/PI/New...rso-dovuto.aspx
http://punto-informatico.it/2341415/PI/New...-tribunale.aspx
and an appeal to the Antitrust European Committee has been filed.

(but the above bears no connection to the issue at hand)

Let's get back to topic.

From what I have seen and understood from the reports, the "Softthinks" MBRINST.EXE ( in some cases renamed to MBR.DLL) is a MBR installing utility that works roughly this way:


  • writes a "special" MBR
  • analyzes the partitions on the hard disk
  • if a partition with certain (unknown at the moment) settings/data is found, THEN:
  • adds to the partition bootsector the word "RECOVERY"
  • changes some data in the MBR accordingly



The above procedure is NOT repeatable, i.e. once the "RECOVERY" partition is made, the MBRINST.EXE does not recognize it as "RECOVERY" anymore.

Additionally, a bit seems like being set in the MBR if, even once, the MBR is booted and the "Recovery" partition is not found. (to be more exact byte 1B4h changes from 01 to 00)

Of course by disassembling or reverse engineering the MBRINST.EXE it should be possible to find out which checks are made, and thus being able to re-create the conditions where MBRINST.EXE recognizes the partition, but this procedure is out of the scope of the thread/board. (at least as I see it)

On the other hand, no Law prohibits trying to find how the thing works. :)

Some notes:
There are several versions of the MBRINST.EXE file.
I was able to find/examine three of them:

  • 147,456 bytes in size dated 30-09-2005
  • 159,744 bytes in size dated 12-03-2008
  • 165,248 bytes in size dated 16-10-2008



They are all the same thing, but with "added options".
#1 has 4 options for "While counting display":
  • nothing
  • Digit
  • Dots
  • Qplay


#2 has 7 options for "While counting display":
  • nothing
  • Digit
  • Dots
  • Qplay HP
  • Qplay GW
  • HP F11 NTFS
  • HP F11 BITL


#3 has 8 options for "While counting display":
  • nothing
  • Digit
  • Dots
  • Qplay HP
  • Qplay GW
  • HP F11 NTFS
  • HP F11 BITL
  • HP F11 BL;QP



Now again my personal opinion:
  • the tool was initially programmed "properly" (in a version before the first one listed)
  • then it was "customized" and options were added to it (in the "wrong place", it simply makes no sense to have options in "While counting display"
  • in my opinion this is the result of lazy programmers that do quick and dirty hacks instead of doing properly something


The app contains a number of different MBR's and also a few bootsectors.

For the curious ones, I wrote a small batch that, using gsar and dumphex, can extract these sectors from the app and "divide" them in three categories:
  • MBR's
  • BS's
  • UNKNOWN's (most probably parts of a multisector MBR)


Here it is. :)
You will need in the same directory of the batch, besides MBRINST.EXE, gsar and dumphex:
gsar:
http://home.online.no/~tjaberg/
dumphex:
http://rbach.priv.at/DumpHex/

 
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION
CD "%~dp0"
IF "%~nx1"=="" GOTO :Nofile
ECHO All files in current directory with extension .sec and .dmp will be deleted.
ECHO to abort press Ctrl+C NOW!
PAUSE
Del *.sec
Del *.dmp
PAUSE
Set Source="%~dpnx1"
Set /A Counter=0
FOR /F "tokens=3 delims=:" %%A IN ('gsar -b -s:x00:x00:x55:xAA %Source% ^|FIND /V "found"') DO (
SET /A Counter=!Counter!+1
SET /A FoundOffset=%%A
SET /A Offset=!FoundOffset!-508
IF !Counter! lss 10 (SET Number=0!Counter!) ELSE (SET Number=!Counter!)
dsfo %Source% !Offset! 512 !Number!_!FoundOffset!.sec
)
Del *.dmp
FOR /F %%? IN ('DIR /B *.sec') DO (
ECHO %%?
CALL :Dorename %%?
CALL :Checktype !NewName!.sec
)
GOTO :EOF

:Dorename
FOR /F "tokens=2,3 delims=: " %%B IN ('dumphex -s1B6 /l2 /nc %1 2^>nul') DO (
SET NewName=%~n1_%%B%%C
REN %1 !NewName!.sec
)
GOTO :EOF

:CheckType
FOR /F "tokens=2,3 delims=: " %%D IN ('dumphex  /l1 /nc %1 2^>nul') DO (
SET Type=UNKNOWN
IF /I %%D==33 SET Type=MBR
IF /I %%D==E9 SET Type=BS
SET NewerName=%~n1_!Type!
REN %1 !NewerName!.sec
dumphex /o!NewerName!.dmp !NewerName!.sec
)
GOTO :EOF

:Nofile
ECHO you must supply a target file!
ECHO example %~nx0 MBRINST.EXE
PAUSE
GOTO :EOF
 


Result will be a number of "couples" of files, named in the form:
(progressive number)_(Offset within_MBRINST.EXE)_(value of bytes 1B6h&1B7h)_(Type of sector).sec
(progressive number)_(Offset within_MBRINST.EXE)_(value of bytes 1B6h&1B7h)_(Type of sector).dmp

The .sec files are the binary sectors, the .dmp files are dumps, that you can open in Notepad or any tect editor.

Bytes at offset 1B6h&1B7h appear to be a way to "categorize the different MBR's.

Another interesting thing to do with the file is running BinText against it:
http://www.foundston...esc/bintext.htm

An interesting number of things can be found from reading the output, most noticeably the text description of the various MBR's (which is often truncated in the text box when running the tool):

Quote

0001D394 0041D394 0 unknown MBR
0001D3A0 0041D3A0 0 Special D*OEM MBR
0001D3B4 0041D3B4 0 MBR1STD (one sector, standard MBR, boot active partition)
0001D3F0 0041D3F0 0 MBR1STD
0001D3F8 0041D3F8 0 MBR1STH (one sector, force Stealth mode on "SMIMG ")
0001D430 0041D430 0 MBR1STH
0001D438 0041D438 0 MBR1sNSd (one sector, RP anywhere, dotted count)
0001D46C 0041D46C 0 MBR1sNGWQP: one sector, RP anywhere, Gateway, QuickPlay, quiet)
0001D4AC 0041D4AC 0 MBR1sNHPBLQP: one sec, RP any, HP F11, NTFS, QuickPlay, quiet, standard boot (BitLocker))
0001D508 0041D508 0 MBR1sNHPBL: one sector, RP anywhere, HP F11, NTFS, quiet, standard boot (BitLocker))
0001D560 0041D560 0 MBR1sNHPNT: one sector, RP anywhere, HP F11, NTFS, quiet)
0001D59C 0041D59C 0 MBR1sNHPQP: one sector, RP anywhere, HP, QuickPlay, quiet)
0001D5D8 0041D5D8 0 MBR1sNqC: one sector, RP anywhere, quiet count)
0001D608 0041D608 0 MBR1sNSq (one sector, RP anywhere, quiet)
0001D634 0041D634 0 MBR1sNS (one sector, RP anywhere, numbered count)
0001D668 0041D668 0 MBR1s0Bd (one sector, RP on start of disk, dotted count)
0001D6A4 0041D6A4 0 MBR1s0qC (one sector, RP on start of disk, quiet count)
0001D6DC 0041D6DC 0 MBR1s0Bq (one sector, RP on start of disk, quiet)
0001D710 0041D710 0 MBR1s0B (one sector, RP on start of disk, numbered count)
0001D74C 0041D74C 0 MBR1sIUd (one sector, RP in UP, dotted count)
0001D77C 0041D77C 0 MBR1sIqC (one sector, RP in UP, quiet count)
0001D7AC 0041D7AC 0 MBR1sIUq (one sector, RP in UP, quiet)
0001D7D4 0041D7D4 0 MBR1sIU (one sector, RP in UP, numbered count)
0001D804 0041D804 0 MBR8s (full featured eight sector MBR)


And some info about WHO actually wrote the tool:

Quote

0001DA00 0041DA00 0 MBRInst. Programmed for SoftThinks ©2001-2006,2008
...
00022148 00467148 0 XSS; Ulf Loesche
...
00022212 00467212 0 LegalCopyright
00022246 00467246 0 XSS 2001-2006,2007,2008
...
00022300 00467300 0 www.xss.com
0002231E 0046731E 0 ProductName
00022338 00467338 0 XSS Preinstall Environment MBR installation


Finding of other interesting strings is left to the reader.

I guess that people suffering from the problem may want to try contacting the author, Ulf Loesche through his site http://www.xss.com/ to either:
  • ask him for help in solving the matter
  • show him their appreciation for the program


A last bit of text in the .exe, that as I see describes the whole stuff very well ;):

Quote

0001DD90 0041DD90 0 ALLES GROSSE SCHEISSE!!!!


:P

jaclaz

#124 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 14 April 2009 - 02:13 PM

Of course, I did not understand anything from jaclaz's previous post AND I actually don't need to :thumbup

@Snack

After some little MBR experiments, my computer became unbootable. :realmad:
I did SUFFER to make it bootable again. [EDIT: Using something that I can't mention here!! -_- ]
However, I do not attend to participate in other MBR and boot sectors experiments....so if you are seeking more about MBRs and boot sectors and HP recovery partitions, you'll be on your own, sorry. :}

@ALL
THANKS AGAIN :hello:

This post has been edited by ahmad2080: 15 April 2009 - 04:51 AM


#125 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 15 April 2009 - 08:17 AM

Congratulations Ahmad2080! You just won a junior award from MSFN!
To wake up your Vista try to run a "Windows Vista Recovery Disc" (about 120Mb) it contain a starting part of vista instalation disk with Starup Repair option. http://www.neosmart.net/blog/2008/windows-...-disc-download/

Warning:
For lucky owners of HP PC's
If you are not in face with booting problem - use F11 or F8 option to repair your instalation.
Not even try to use above mentioned disc "Startup Repair" in that 100% legal utility from Microsoft to make some repair on HP computers because of those "advanced" HP software developers that don't take into account existence of any other soft (MS !!?) exept of theirs. You will lose the recovery F11 & F8 ability!!! :wacko:



I went no further than I was a week ago. However my experience grow up anyway.

Even with the disks created succesfully along with a "unbelievable" help from HP I am not able to perform factory restore.
It have to be healthy before creating restore disk!!! So the disks I made got wrong (they say).
What than is the purpose of restore partition? Get profits and save money on plastic disk?

* When I try to boot in D: (from advises I found across the web ) with a damaged BCD it hung or reboot.
* While booting from those DVD's by pressing ctrl + Backspace keys it displays a screen of unusefull options:

Quote

"Clear the partition table."
"Erase the Master Boot Record of drive."
"wipe all sectors of drive."
"write a DMI to drive1."
....

and goes boot Vista normally after any key was pressed :)

Solution:
The problem is missing boot.sdi file from directory SMINST\BOOTDISK\BOOT\ (in this directory must be two files: boot.sdi and a bcd). Files used by CD creator program to make a bootable image on DVD. Thats why the system should be healthy .
B) wise guys... B)

This post has been edited by Snack: 21 April 2009 - 11:51 AM


#126 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 15 April 2009 - 09:01 AM

That's a weird option there, the DMI to drive 1... because the DMI is actually in the CMOS so thats pretty confusing to me. :wacko:

#127 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 15 April 2009 - 09:24 AM

From HP site:
Preparing the hard drive for recovery using the recovery discs (Manufacturer Menu)

NOTE: Please be aware that using your system's recovery discs may take two hours, and that using discs ordered directly from HP may take four to six hours and include several restarts.

1. Insert recovery disc 1 into the notebook and restart.
2. When the PC restarts, it reads from the Recovery CD/DVD, and displays a screen of options (typically R, F, and Q.)
3. Press and hold the ctrl key, and press the Backspace key. The Manufacturer Menu is displayed.
4. Select option 4, "Clear the partition table."
The following message appears: No Operating System Installed or Partition Corrupted Press "R" to perform a full system recovery.
5. Do not press R. Instead, press and hold down ctrl , then press Backspace to bring up the Tools Menu.
6. Select option 5, "Erase the Master Boot Record of drive."
The following message appears: No Operating System Installed or Partition Corrupted press "R" to perform a full system recovery.

NOTE: If there are no partitions, the following message appears: No MBR or master boot record found. Continue using these steps .

7. Do not press R. Instead press and hold down ctrl , then press Backspace to bring up the Tools Menu.
8. Select option 6, "wipe all sectors of drive."
An Erasing Hard Drive progress bar will appear. This process may take longer than one hour to complete, depending on the size of the hard drive. When the hard drive is completely erased, the following message is displayed:
No Operating System Installed or Partition Corrupted Press "R" to perform a full system recovery.
9. Press R to begin the automatic System Recovery process.

_____________

I have no "...screen of options (typically R, F, and Q.)..." while booting from DVD. Simple press the key combination above on black screen with cursor blinking on top left corner.

This post has been edited by Snack: 15 April 2009 - 09:35 AM


#128 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 15 April 2009 - 01:10 PM

@Snack
It's sad to hear that the recovery disks you made cannot restore your system to factory.

I still didn't burn my recovery disks to tell if they work or not.
Why didn't I burn them?!! Actually, I wanted to be sure that everything is OK, then burn the disks.
And this is the problem......"EVERYTHING IS OK"!!! :ph34r:

After restoring my Vista OS, I wanted to make a full recovery to see if the F11 function works after recovery or not.

To make a full recovery there are three ways:
  • F8 boot menu and then choose Repair my computer
  • Set the recovery partition as Active and reboot
  • Using the F11 function


NONE of the three methods were capable of doing a full recovery.
Both options 1 & 2 give me the error message
A disk read error occured 
Press  Ctrl+Alt+Del to restart

and sometimes by altering the recovery partition boot sectors I get an error saying that the boot manager has failed because of a missing or corrupted device and give an erro code something like : 0x00000212
Somehow, I was able to run BCDEDIT.exe and capture the results :
Attached File  BCDEDIT.jpg (55.36K)
Number of downloads: 29
NOTE: The recovery partition in the attachment is C.

So, is there a way to do a full recovery? can I access the recovery partition using the Bootable USBStick by adding some codes like those for vista1 and vista2??

#129 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 15 April 2009 - 05:07 PM

All of those errors are from Windows Boot Manager that uses BCD (startup OS Cofigurations Base instead of boot.ini) and not an MBR messages.

So the problem is incorrect booting into WinRE image (witch is placed on Recovery D:) using this messed configurations files/registry entries.
That's why I would like try import a working branche of registry HKLM\BCD or C:\boot\bcd itself. I think that is hardware independent and can be copyed from any working HP computer running Vista.

In fact Jaclaz is right - there are many of undewater stones and some trics from HP in MBR. But on the other hand F11 routine from MBR working and stops in this BCD brushwood.

#130 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 16 April 2009 - 01:49 AM

I'll try to upload a working BCD from both C: and D: soon. [not from my notebook of course]

In the meanwhile, I'll try some BCD programs to fix this booting problem.

#131 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 16 April 2009 - 05:52 AM

This topic win a popularity award also!!

Ahmad2080 I found two of them freeware: VistaBootPRO 3.3 and EasyBCD 1.7.2 and bulletin from Microsoft :)

From Acronis.com can be dowloaded Acronis Disc Director v2.161 that is for Vista (previous versions does not!!) to resize partitions and retreview contents even of HP recovery hidden section directly from Windows.

Solution:
Safe way to resize and create partitions on HP PC's is using Vista disc managenent.
Acronis and many others when resizing change bootsectors and replace it with a standart (warning for D: - you can lose a RECOVERY stamp and see in this case "...not found" message while trying to start recovery or CD creator)

This post has been edited by Snack: 21 April 2009 - 12:10 PM


#132 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 16 April 2009 - 06:39 AM

mmm, I've tried BCD programs already but.....no results obtained.

The whole problem now is in the BCD.......

I have the BCD file in C from my friend's notebook but I can't open it to read......

Is there a software to do so?

I've just figured out what does HPRM-BCDFix.cmd in C:\programfiles\SMINST do.....
It adds the option "Repair your computer" in the "Advanced boot menu" when F8 is pressed at startup.
But when I choose that option I get the Boot loader error message.
So the link between the "Repair your computer" option and the recovery partition is still missed

This post has been edited by ahmad2080: 16 April 2009 - 06:44 AM


#133 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 16 April 2009 - 07:14 AM

Hi ahmad2080!
All you have to do is just copy this file to USB drive and post it. To put it in place need to reboot from disc with WinPE environment, renaming existent one to bcd.old. Because this file is a part of Registry and couln't be modified instead of regedit or special soft posted above.

note:
Those programs can't open a standalone file. Only make backup and some cosmetic changes that not siutable for "chosen" HP users. :) I'm not sure but if you rename a BCD file to xxx.bcd and then try to restore backup with VistabootPRO from this one would it be a solution??

edit:
It seems like EasyBCD has this ability only for viewing and editing but not for import as current.
Another way is open regedit from cmd and export/import NKLM\BCD section into a .reg file to/from USB drive.

Warning:
Editing BCD is a dangerous game - don't use utilities unles you have to.

This post has been edited by Snack: 21 April 2009 - 12:57 PM


#134 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 16 April 2009 - 12:01 PM

I've done alot of work here and got nothing...

I need some experience with BCD...
I've used bcdedit.exe and created a logical BCD......but it doesn't work

Can anybody here point me to the right direction?

#135 User is offline   Tripredacus 

  • K-Mart-ian Legend
  • Group: Super Moderator
  • Posts: 8,723
  • Joined: 28-April 06
  • OS:Server 2012
  • Country: Country Flag

Posted 16 April 2009 - 12:17 PM

OK, all you guys that want to try something out to restore the F10 or F11 or whatever key functionality to your partitions can try this. I cannot garauntee that this will work!

First, you need to have access to Windows or a PE environment. Otherwise you won't be able to do this.

1. Make a folder on your C drive to put your files in. ie: c:\mbrtools
2. Download PARTINFO from Terabyte Unlimited. Extract it into c:\mbrtools.
3. Download MBR Utility from Terabyte Unlimited. Extract it into c:\mbrtools.
4. Open a command prompt (elevated if need be) and switch to the c:\mbrtools folder.
5. Run the following command: "partinfw > partinfo.txt". This will make a text file in c:\mbrtools. Open it up and you will get something like this:

PARTINFW 1.11
Copyright (c) 1996-2008 TeraByte, Inc.  All rights reserved.

Run date: 01/09/2006 0:52

====================================================================
		   MBR Partition Information (HD0 - 0x488BBB22)
		   (CHS: 1022/254/63) (WCHS: 9729/255/63)
+====+====+=============+====+=============+===========+===========+
| 0: | 80 |	0  32 33 |  7 | 1023 254 63 |	  2048 | 127426560 |
| 1: |  0 | 1023 254 63 | 17 | 1023 254 63 | 127428608 |  28870656 |
| 2: |  0 |	0   0  0 |  0 |	0   0  0 |		 0 |		 0 |
| 3: |  0 |	0   0  0 |  0 |	0   0  0 |		 0 |		 0 |
+====+====+=============+====+=============+===========+===========+
						   BOOT SECTOR INFORMATION
-------------------------------------------------------------------------------
File System ID: 0x7   LBA: 2048  Total Sectors: 127426560   ID: 0x1
						  Jump: EB 52 90
					  OEM Name: NTFS	
				 Bytes Per Sec: 512
				 Sec Per Clust: 8
				   Res Sectors: 0
						Zero 1: 0x0
						Zero 2: 0x0
						  NA 1: 0x0
						 Media: 0xF8
						Zero 3: 0x0
				 Sec Per Track: 63
						 Heads: 255
				   Hidden Secs: 2048
						  NA 2: 0x0
						  NA 3: 0x800080
				 Total Sectors: 0x07985FFF
					   MFT LCN: 0x0C0000
				  MFT Mirr LCN: 0x07985FF
				 Clust Per FRS: 0xF6
			  Clust Per IBlock: 0x1
					 Volume SN: 0x72B4864EB48614AF
					  Checksum: 0x0
					 Boot Flag: 0xAA55
-------------------------------------------------------------------------------
File System ID: 0x17   LBA: 127428608  Total Sectors: 28870656   ID: 0x2
						  Jump: EB 52 90
					  OEM Name: NTFS	
				 Bytes Per Sec: 512
				 Sec Per Clust: 8
				   Res Sectors: 0
						Zero 1: 0x0
						Zero 2: 0x0
						  NA 1: 0x0
						 Media: 0xF8
						Zero 3: 0x0
				 Sec Per Track: 63
						 Heads: 255
				   Hidden Secs: 127428608
						  NA 2: 0x0
						  NA 3: 0x800080
				 Total Sectors: 0x01B887FF
					   MFT LCN: 0x0C0000
				  MFT Mirr LCN: 0x01B887F
				 Clust Per FRS: 0xF6
			  Clust Per IBlock: 0x1
					 Volume SN: 0x785C98125C97C8F0
					  Checksum: 0x0
					 Boot Flag: 0xAA55


The above code is from my testing Recovery partition project. The first drive has a File System ID of 0x7, which is NTFS. The Second partition has a file system id of 0x17. The 7 still means NTFS, but the 1 before it means it is hidden. NOTE: If both your System and Recovery partitions have the same File System ID, this may not work!

6. Run the following: mbr 0 /install selm 10 11 "Press F11 for Recovery" 0x7 0x17

Here is a run down of the options in the above command:
mbr = the program name
0 = the disk ID (Disk 0 should be your boot hard drive)
/install selm = the command needed, do not change this.
10 = timeout in seconds. This is the length of time the keypress message will stay on the screen. I use 5 seconds myself.
11 = The function key number. I use the F11 key for testing, so this number is 11. If you want to use a different function key, type in a different number here.
"Press F11 for Recovery" = Make sure to use the quotes around this. This is the message that appears prior to booting the system partition. You can make it say anything you want.
0x7 = the type of partition the recovery partition will be changed to. This must match the file system that is currently on it.
0x17 = references the recovery partitions File System ID that PARTINFO displayed. This is designed presuming you only have 1 partition of this type on the computer.

There are some additional caveats to using this method. The primary one is that after you hit F11 and it boots into the recovery partition, your PC will not be able to go back into Windows unless you run another command. If you can gain access to the command prompt in the recovery partition, you can do this, or if you have a WinPE on a USB or CD you can do it also, but you need to put the MBR.EXE onto that media! You may be able to access the MBR.EXE on the C drive where you saved it, but it would be safe to have it elsewhere as well. After booting into the recovery partition, you need to run the following:

MBR 0 /reset

This resets the Master Boot record changes that pressing F11 changed. If you cannot do this from the recovery partition, you can boot to a WinPE CD and run the command that way. So you need to run this before you can get back into Windows.

If PARTINFO does not show that your Recovery Partition is hidden (ie starts with 0x1) you could try to hide it with MBR.EXE. However, this will hide it from Windows and you cannot unhide it using Diskpart. Diskpart will not show that it is hidden! That command is:

MBR 0 1 /H
or to unhide:
MBR 0 1 /UH

If you hide your recovery partition (so that PARTINFO says 0x17) then you can use the command to add in the F11 key. You can even run this command from within Windows, but the changes will not be in effect until a reboot when the PC reads the MBR again.

Only other issues is that if your BIOS has its Boot Sector Virus detection turned on, it may give you a warning on your reboot. So if your PC has this option, turn it off during testing. I doubt Ahmad had this since it would have given him an error with all the testing he has done so far.

And lastly, I will add again that I do not have access to an HP or its recovery software as they do it. So I can't be very specific on a case to case basis.

#136 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 16 April 2009 - 03:17 PM

At last........I've launched the recovery console.. :thumbup

How did I do that?... It took all the day to restore my system to factory, and at last, another success...

I just hope that this fixes both F8 and F11.....

However, here is how I launched WinPE:

http://technet.microsoft.com/en-us/l.....;/cc721886.aspx

and here is a snippet from their site.

Quote

To create an entry to boot a WIM image from hard disk
  • Create the {ramdisktoptions} object in your BCD store by specifying the following. Drive should be the drive that contains the image.
    bcdedit /create {ramdiskoptions} /d "Ramdisk options"
    bcdedit /set {ramdiskoptions} ramdisksdidevice partition=Drive
    bcdedit /set {ramdiskoptions} ramdisksdipath bootboot.sdi
  • Create a new boot application entry by specifying:
    bcdedit /create /d "Boot from WIM" /application OSLOADER
  • This will return an identifier (GUID) for the newly created entry. This new entry will be referred to as {GUID} in the rest of this procedure. Next specify the following:
    bcdedit /set {GUID} device ramdisk=[c:]sourcesboot.wim,{ramdiskoptions}
    bcdedit /set {GUID} path windowssystem32winload.exe
    bcdedit /set {GUID} osdevice ramdisk=[c:]sourcesboot.wim,{ramdiskoptions}
    bcdedit /set {GUID} systemroot windows
  • If you are booting into Windows Preinstallation Environment (Windows PE), then you will also need to specify:
    bcdedit /set {GUID} winpe yes
    bcdedit /set {GUID} detecthal yes
  • Next specify the following to add your new entry to the display order:
    bcdedit /displayorder {GUID} /addlast




When I tried the above procedure...it didn't work.
Here is how it worked with me (just a small C to D modification):

  • Create the {ramdisktoptions} object in your BCD store by specifying the following. Drive should be the drive that contains the image.
    bcdedit /create {ramdiskoptions} /d "Ramdisk options"
    bcdedit /set {ramdiskoptions} ramdisksdidevice partition=D:
  • bcdedit /set {ramdiskoptions} ramdisksdipath bootboot.sdi
  • Create a new boot application entry by specifying:
    bcdedit /create /d "Boot from WIM" /application OSLOADER
  • This will return an identifier (GUID) for the newly created entry. This new entry will be referred to as {GUID} in the rest of this procedure. Next specify the following:
    bcdedit /set {GUID} device ramdisk=[D:]sourcesboot.wim,{ramdiskoptions}
    bcdedit /set {GUID} path windowssystem32winload.exe
    bcdedit /set {GUID} osdevice ramdisk=[D:]sourcesboot.wim,{ramdiskoptions}
    bcdedit /set {GUID} systemroot windows
  • If you are booting into Windows Preinstallation Environment (Windows PE), then you will also need to specify:
    bcdedit /set {GUID} winpe yes
    bcdedit /set {GUID} detecthal yes
  • Next specify the following to add your new entry to the display order:
    bcdedit /displayorder {GUID} /addlast

I hope that this is ends my endless laptop story :wacko: ......

EDIT: I'm sorry, I forgot to upload bcdedit.exe.......here it is: Attached File  bcdedit.rar (75.43K)
Number of downloads: 19

This post has been edited by ahmad2080: 16 April 2009 - 03:58 PM


#137 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 16 April 2009 - 04:40 PM

OK....Here are my final results:
  • F8 returns to duty :rolleyes: and works perfectly
  • F11 shows the error message :
    A disk read error occured[*]Press Ctrl+Alt+Del to restart
    




When I press Ctrl+Alt+Del it doesn't respond....

So the major question now is : Should I burn the recovery disks now?? or try to recover the F11 function by applying another system recovery (This time by setting the recovery partition as Active)???

What I've understood from all the previous 7 pages in this thread is that the F11 hotkey is completely related to the MBR which cannot affect a recovery operation from recovery Disks.....which means that it's safe now to burn the disks, Right?

#138 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 16 April 2009 - 05:00 PM

One more thing to do

Copy boot\boot.sdi from the Windows Vista installation DVD (C:\WINDOWS\Boot\DVD\PCAT) to d:\boot directory (By default this folder is hidden in Windows Explorer)

This post has been edited by Snack: 16 April 2009 - 05:39 PM


#139 User is offline   ahmad2080 

  • Member
  • PipPip
  • Group: Members
  • Posts: 102
  • Joined: 27-March 09

Posted 16 April 2009 - 05:14 PM

View PostSnack, on Apr 16 2009, 06:00 PM, said:

One more thing to do

Copy boot\boot.sdi from the Windows Vista installation DVD to d:\boot directory (By default this folder is hidden in Windows Explorer)



You mean the recovery DVD that I still didn't create??? And what's the point? You are thinkiing that this may solve the F11 problem?

This post has been edited by ahmad2080: 16 April 2009 - 05:16 PM


#140 User is offline   Snack 

  • Newbie
  • Group: Members
  • Posts: 21
  • Joined: 10-April 09

Posted 17 April 2009 - 03:00 AM

Found one more solution :)
(not completed yet)

I think at this point left only users with completely destroyed HP recovery system :wacko:
So you can (must) clear all traces that was made by various (illegal from HP devlopers point of view) software to PC.

Function key F11 from boot menu.
to restore it working

First step: download and burn Vista repair CD
Boot from this media and do Startup Repair --> and you get clear BCD file along with restored to standart MBR 0 sector.

Check if bootsector D: have a RECOVERY marker (Post #115)

Further steps:
To be able to boot into recovery WinRE with F11 try this workaround:
Unzip this command set to C\HP\RECOVERY\BIN Attached File  Cmd.rar (1.99K)
Number of downloads: 54
Copy to this folder file cmd.exe from c:\windows\system32 (to simplify execution)
note:
Scripts need some redactions to be pointed to SMINST directory (replace location) and MBRins file (may be renamed) see post #149

* run WAUfix_new.bat from the set --> it will repair F11 & F8 function in MBR and fix system BCD
* run cmd.exe
* copy and paste to cmd window this script (to be sure the file boot.sdi is present on D:\boot)

Quote

xcopy /r C:\WINDOWS\Boot\DVD\PCAT\boot.sdi d:\boot\boot.sdi


Reboot and press F11 --> you should see Softhink restore menu.

If not
Caution: this BCD from my Pavilion Recovery partition!!! Restore it from bak if this tip doesn't working!!!
Unzip to the same folder: Attached File  Working_D.rar (4.39K)
Number of downloads: 34

* copy and paste to cmd window this script

Quote

xcopy /r d:\boot\bcd d:\boot\bcd.bak
xcopy /r working_d.bcd d:\boot\bcd



Following this at last I felt into SoftThinks Recovery menu.

Solution:
Now I succesfully restored my HP from discs created in posts #115 #125

This post has been edited by Snack: 21 April 2009 - 01:25 PM


Share this topic:


  • 11 Pages +
  • « First
  • 5
  • 6
  • 7
  • 8
  • 9
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

3 User(s) are reading this topic
0 members, 3 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy