ahmad2080

HP Notebook: The recovery partition could not be found

211 posts in this topic

From what I have gathered in the meantime, and from some experiments I am carrying, I would say that restoring the F11 feeature should be possible.

I need to make a few more checks before posting a possible solution, but I am confident that it will work allright. :)

I am not so sure about the CD burning, though :(, it seems like it is an alltogether (and unconnected) matter.

I'll hopefully be back to you anytime from late tonight (CET) to tomorrow morning, hopefully with a working solution.

jaclaz

0

Share this post


Link to post
Share on other sites
From what I have gathered in the meantime, and from some experiments I am carrying, I would say that restoring the F11 feeature should be possible.

I need to make a few more checks before posting a possible solution, but I am confident that it will work allright. :)

I am not so sure about the CD burning, though :( , it seems like it is an alltogether (and unconnected) matter.

I'll hopefully be back to you anytime from late tonight (CET) to tomorrow morning, hopefully with a working solution.

jaclaz

WOW.....That's just great.

I hope it works.....take your time jaclaz, you've been extremely helpful.

:thumbup

Thanks alot.

0

Share this post


Link to post
Share on other sites

(another FYI post)

FWIW, I noted (kind of related?) that your C-drive offset is at 1024kb as opposed to a "normal" 32kb (? at least mine and your friend's is). By looking at that SP's VBS file, I see that (not being real good at VBScript) it may have "shrunk" at that offset and never "put it back" (?). The link given to the HP article says you can do this in Disk Management (on Vista) as well.

I think (?) jaclaz is looking at the other topic's MBR code because it apparently has ye-olde F11 Function in it. This may be potentially the "key" to fixing that and (IMHO) potentially "fixing" the other (as I note in my last stmt in this post).

Side note - looks like your friend "Shrunk" his Main Partition (to the front), Recovery Partition (different Vol Label than yours; to the back), then inserted an Extended Partition (0 + 3/4 Logicals; in the middle). Don't really know how a Partition-0 appeared though(?)...

Still, seems like after a Complete Restore (from the Recovery Partition) that the Create Disks should work (not a simple Recovery, but Complete Restore - Back To Factory/Sales). Perhaps the MBR Code is what's being looked for and not a Partition Type?

(edit - And even more confusing, to me anyway, is Diskpart Shrink gives size in MByte, not KByte; still looks to me like PM is a culprit too. Installing would not have caused the problem but Using it would - re the "Fix my MBR" as you originally stated.

I didn't know that partition magic is uncompatible with vista, so when i ran the program it asked me to FIX the partition table....'YES' was my answer, then the recovery partition disappeared.
Leads me to believe something "special" was in the PTable.) Edited by submix8c
0

Share this post


Link to post
Share on other sites
(another FYI post)

FWIW, I noted (kind of related?) that your C-drive offset is at 1024kb as opposed to a "normal" 32kb (? at least mine and your friend's is). By looking at that SP's VBS file, I see that (not being real good at VBScript) it may have "shrunk" at that offset and never "put it back" (?). The link given to the HP article says you can do this in Disk Management (on Vista) as well.

I didn't notice the 1024kb offset part in C. From your reply it appears that this is really the root of the problem. Maybe that's why the too long string in MBR error message shows up....?

Should I Shrink and extend C:\ as mentioned in the HP page? Can that fix the offset value??

I think (?) jaclaz is looking at the other topic's MBR code because it apparently has ye-olde F11 Function in it. This may be potentially the "key" to fixing that and (IMHO) potentially "fixing" the other (as I note in my last stmt in this post).

Is it the ONLY key?? I feel that you have another solution.....>?

Side note - looks like your friend "Shrunk" his Main Partition (to the front), Recovery Partition (different Vol Label than yours; to the back), then inserted an Extended Partition (0 + 3/4 Logicals; in the middle). Don't really know how a Partition-0 appeared though(?)...
Yes, it's confusing....I agree.
Still, seems like after a Complete Restore (from the Recovery Partition) that the Create Disks should work (not a simple Recovery, but Complete Restore - Back To Factory/Sales). Perhaps the MBR Code is what's being looked for and not a Partition Type?

What's the difference between both mentioned recovery types? I have only one available. So you are saying that I made a simple recovery?

(edit - And even more confusing, to me anyway, is Diskpart Shrink gives size in MByte, not KByte; still looks to me like PM is a culprit too. Installing would not have caused the problem but Using it would - re the "Fix my MBR" as you originally stated.
I didn't know that partition magic is uncompatible with vista, so when i ran the program it asked me to FIX the partition table....'YES' was my answer, then the recovery partition disappeared.
Leads me to believe something "special" was in the PTable.)

Yes, only using Partition magic made the question of FIXing the partition table appear.

I want to note other tiny details that I really don't know why I forgot to mention:

-After'Fixing' the Ptable using partition magic the blue death screen appeared (Probably because of Antiarp software which I installed befor partition magic)

-On the booting screen it says (at the bottom left corner) Press ESC to choose options ( or something like that)

If I pressed F11 it does respond and it says "F11......system recovery" but then it proceeds to loading the OS.

I don't know if these notes may make any difference......]

Thanks.

0

Share this post


Link to post
Share on other sites

Submix8,

don't take this the wrong way :), but do you really think that it is needed/helps from time to time to post some wild guesses and doubts? :unsure:

The 1024 offset is something that is said to be "better", see here:

http://www.msfn.org/board/index.php?showtopic=131023

http://support.microsoft.com/kb/929491/en-us

evidently that partition has been created with:

create partition primary align=1024

About partition0, have you ever looked with Diskpart to a drive with an Extended partition under Vista or Server 2008?

http://www.techotopia.com/index.php/Extend...ons_and_Volumes

After all, Partition Magic, (this time ;) ) is NOT the culprit, Ahmad used (improperly) another tool downloaded from HP, and that probably caused the problem, by replacing the MBR code.

As well, if a partition has 1024 as offset is NOT "kosher" as seen by Partition Magic or by ANY other "good" software, as it breaks the Cylynder boundary, which was a requirement (and still is for some OS).

The whole problem was born by "trusting" an app ( actually two of them) without actually knowing what they would do and without preparing a way back, see my posts here:

http://www.msfn.org/board/index.php?showto...807&st=1137

http://www.msfn.org/board/index.php?showto...807&st=1148

Kids shouldn't play with matches, and the box of matches should be kept out of their reach, it's not the kid's fault if the house get's on fire.

(and again, no offence intended :) to anyone)

jaclaz

Edited by jaclaz
0

Share this post


Link to post
Share on other sites
Submix8,

don't take this the wrong way :) , but do you really think that it is needed/helps from time to time to post some wild guesses and doubts? :unsure:

The 1024 offset is something that is said to be "better", see here:

http://www.msfn.org/board/index.php?showtopic=131023

http://support.microsoft.com/kb/929491/en-us

evidently that partition has been created with:

create partition primary align=1024

About partition0, have you ever looked with Diskpart to a drive with an Extended partition under Vista or Server 2008?

http://www.techotopia.com/index.php/Extend...ons_and_Volumes

After all, Partition Magic, (this time ;) ) is NOT the culprit, Ahmad used (improperly) another tool downloaded from HP, and that probably caused the problem, by replacing the MBR code.

As well, if a partition has 1024 as offset is NOT "kosher" as seen by Partition Magic or by ANY other "good" software, as it breaks the Cylynder boundary, which was a requirement (and still is for some OS).

The whole problem was born by "trusting" an app ( actually two of them) without actually knowing what they would do and without preparing a way back, see my posts here:

http://www.msfn.org/board/index.php?showto...807&st=1137

http://www.msfn.org/board/index.php?showto...807&st=1148

Kids shouldn't play with matches, and the box of matches should be kept out of their reach, it's not the kid's fault if the house get's on fire.

(and again, no offence intended :) to anyone)

jaclaz

I wonder jaclz, from where did you get all of this time & information??

Well, about the "kids"......Nobody learns without some sacrifices :wacko: .

But let me return to the 1024 offset part.....Maybe it was 32 and the HP tool made it 1024???

[ I feel it like a stupid question, but I've LEARNED to think about all possibilities.]

0

Share this post


Link to post
Share on other sites
I wonder jaclz, from where did you get all of this time & information??

A long time ago I decided to concentrate on only 512 bytes (the MBR) and on some other bunch of bytes, the bootsectors and loaders.

You can learn a lot on a very "narrow" field. ;)

@all

(Ahmad2080 sent me a copy of the first 63 sectors of his hard disk, to allow me to make some checks)

The plot thickens.... :whistle:

Doing so, Ahmad2080 forfaited some of his privacy ;), see this:

http://www.911cd.net/forums//index.php?sho...21049&st=17

The new turn of the plot is that Ahmad2080 actually LIED to me! :w00t:

There are evident traces that on that HD also, and at least:

  • either Legacy GRUB 0.97 or grub4dos pre-0.4.2 version
  • BM2005 (Paragon's Boot Manager)

were installed! :realmad:

So, we have now another two possible culprits......, I know, I know it's always the butler B) , but here we have several butlers!

:P

jaclaz

0

Share this post


Link to post
Share on other sites
Doing so, Ahmad2080 forfaited some of his privacy ;) , see this:

http://www.911cd.net/forums//index.php?sho...21049&st=17

LOL....I did't know that you had this HUGE sense of humer....[Right?? :blink: ]
The new turn of the plot is that Ahmad2080 actually LIED to me! :w00t:

There are evident traces that on that HD also, and at least:

  • either Legacy GRUB 0.97 or grub4dos pre-0.4.2 version
  • BM2005 (Paragon's Boot Manager)

were installed! :realmad:

So, we have now another two possible culprits......, I know, I know it's always the butler B) , but here we have several butlers!

:P

jaclaz

First let me state this :

"""" I NEVER LIE """"""...... <true story> :angry:

Second: I did install LINUX on my desktop comp. but I honestly don't remember installing it on my notebook.

Let's assume that I installed it on my notebook, here comes the next question: How did I do that?

My DVD ROM can't load any CD/DVD without the SATA drivers.

Installing from a USBStick?? I figured out that lately...

So the only reasonable assumption is that I figured a way to begin LINUX installation on my notebook, but it didn't complete; leaving the GRUB loader traces on my MBR.

AGAIN, I can't remember anything about this.

And jaclaz, I came here for a solution not to play with you around.....

ABOUT THE (Paragon's Boot Manager).... Yes that's possible. As I said, I was desperate trying to return the recovery partition back, I don't remember what programs I used to do so.

Only all of them failed except the HP one [The last on of course].

So when I said " TRIED" I ment that several softwares were installed on my system, only the last one was the HP file....

So ,Again, It was my fault assuming that the HP tool & partition magic (only) were the cause of the problem.

0

Share this post


Link to post
Share on other sites

Ok, some (possible) conclusions.

I checked both the MBR and hidden sectors on ahmad2080's PC and those of his friend with a similar laptop.

Also the latter appears not to be completely "clean" in the sense that there are (previous) copies of the MBR in several of the hidden sectors, meaning that some program that keeps "track" or "backup" of the MBR has been used on it.

However, it seems like the procedure to try is the following.

I am assuming that ahmad2080 has a bootable CD or USB stick containing a program able to restore if needed the current MBR and hidden sectors that he saved.

If not, DON'T DO anything of the following!

We need before that to make sure you have a way back, should disaster strike. :ph34r:

Extract to c:\dsfok the contents of the dsfok archive.

Open a command prompt and navigate to c:\dsfok

Run this line:

fsz C:\dsfok\62blanks.dat 31744

(this will create a 62 sectors in length file filled with 00's)

Now run:

dsfo \\.\PHYSICALDRIVE0 0 512 C:\dsfok\Now_mbr.dat

(this will create a backup copy of current MBR)

Now run:

copy /B Now_mbr.dat + 62blanks.dat New_63.dat

(this will creatre a new file with current MBR+62 00ed sectors)

Verify that the resulting file C.\dsfok\New_63.dat is exactly 32256 bytes in length.

Now run:

dsfi \\.\PHYSICALDRIVE0 0 32256 C:\dsfok\New_63.dat

(this will copy the new file to HD)

Please note that this latter line uses dsfI, not dsfO, like the one before.

Try re-booting, you shoud see NO difference whatsoever.

Copy from C:\System.sav\Util to C:\dsfok the following files:

03/17/2008 04:47 PM 5,120 MBR.INI

03/12/2008 12:32 PM 159,744 MBRInst.exe

Verify that entries in [MasterBootRecord] section of MBR.INI are as following (they should be):

[MasterBootRecord]

; DO NOT TRANSLATE

UseSmallMBR=1

SwapPart=0

;TimeOut for "\nPress F11 to start recovery "

TimeOut=1

QuietCountDown=0

AutoHideRecovery=0

ShowRecoveryPart=1

ScanCode=133

;DoRecoverRP=0

SafebootCompatibleMBR=0

CountMode=6

; TRANSLATE

STR_START="\nPress F11 for Emergency Recovery "

;STR_ERROR="\nMBR Error\n"

STR_ERROR=\nErr1

;STR_BS_ERROR="\nOS Missing\n"

STR_BS_ERROR=Err2

;STR_PRESSAKEY="\nPress a key.\n"

STR_PRESSAKEY=Err3

RecoveryInUserPart=0

Open a command prompt and navigate to C:\dsfok

Run this line:

mbrinst.exe /ini mbr.ini

mbrinst.exe GUI should open and look like the following image:

mbrinstgui.jpg

You won't see the line

Hard Drive #1 is "\\.\Physicaldrive1"

Click on the install button.

All settings should become grayed out and you should get a message like:

> Installing new master boot record (MBR1sNHPBL:one sector, RP anywhere, HP F11.

Master boot record installed successfully.

> Updating recovery partition boot record

Than another line, either :(:

! WARNING:Recovery partition could not be located

or (hopefully ;)) a message of success.

Let me know how it goes....

jaclaz

Edited by jaclaz
0

Share this post


Link to post
Share on other sites

Thanks jaclaz.....

I hope that all of this effort (from you more than me)leads to a success.

If it didn't you still deserve a prize ... :thumbup

I am assuming that ahmad2080 has a bootable CD or USB stick containing a program able to restore if needed the current MBR and hidden sectors that he saved.

If not, DON'T DO anything of the following!

We need before that to make sure you have a way back, should disaster strike. :ph34r:

I think that you already know my comment here!!!! :whistle:

I need to know how to create a bootable USB stick containing a program able to restore MBR & hidden sectors that I saved.

If you can helpfully give me a link to do that, I'd be grateful.... :yes:

Thanks...

EDIT:

I have two notes:

1-I don't have MBRINST.exe in C:\system.sav\Util

should I copy the one from X:\windows\system32 ?

or the one from my friends laptop in C:\system.sav\Util?

2-The MBR.INI in C:\system.sav\Util is some different from the one you posted:

[MasterBootRecord]

; DO NOT TRANSLATE

UseSmallMBR=1

SwapPart=0

;TimeOut for "\nPress F11 to start recovery "

TimeOut=1

QuietCountDown=0

AutoHideRecovery=0

ShowRecoveryPart=1

ScanCode=133

;DoRecoverRP=0

SafebootCompatibleMBR=0

CountMode=7

; TRANSLATE

STR_START=

;STR_ERROR="\nMBR Error\n"

STR_ERROR=

;STR_BS_ERROR="\nOS Missing\n"

STR_BS_ERROR=

;STR_PRESSAKEY="\nPress a key.\n"

STR_PRESSAKEY=

RecoveryInUserPart=0

EDIT:

Oops.....My apologies jaclaz...When I read my last post I felt like it was........rude. :blushing:

sorry.

Edited by ahmad2080
0

Share this post


Link to post
Share on other sites

Sorry, I'm late to the party :sneaky:

Don't worry about the offset that is normal.

Examining the MBR.INI we can see the following:

Under boot loader, you have "RecoveryPatitionOnStartOfDisk=0". This is because SoftThinks does not follow the best practices for recovery partitions, which is, to put the recovery partition as the beginning of the disk, and the system volume follows it. This is because the recovery partition must be created after the system volume is put on. It automatically splits the disk (it uses a percentage option) and creates a partition to follow the system partition. It then copies the files and compresses them. After this, it resizes the recovery partition to save space. It is easier to do it this way, instead of say, creating a 20GB partition at the start of the drive, and then another one for the rest and install Windows to that part. Its because the SoftThinks software cannot resize the partition if at the beginning, because you cannot change the offset of the system volume once it has been created very easily.

Also, for "AskCreateRecoveryPartition=0" if you set this to 1, it would not work unless you had the license key inserted, so don't both trying that one!

You may be able to get past this "32byte" error by changing "UseSmallMBR" to 0.

OK so you have logs that say that MBR.DLL is running commands, which confirms my estimation. So it may be that their software actually uses Rundll32.exe to execute that command?

From what I have gathered in the meantime, and from some experiments I am carrying, I would say that restoring the F11 feeature should be possible.

I was able to restore the F11 functionality using Terrabyte Lab's MBR.EXE.

If I pressed F11 it does respond and it says "F11......system recovery" but then it proceeds to loading the OS.

This happens because it could not find the recovery partition. So it loads the next best thing. In my custom project, I got this to happen also. But say I hid the C drive, and tried to load the recovery partition and it wasn't hidden. Then it would do the same thing, except it would try booting off the network, which was next in the boot order.

The whole problem was born by "trusting" an app ( actually two of them) without actually knowing what they would do and without preparing a way back, see my posts here:

Yes this is an issue with personal equipment. Not everyone that posts here have the ability to constantly redo their theories via imaging, or have the ability to start over once we blow something up.

But let me return to the 1024 offset part.....Maybe it was 32 and the HP tool made it 1024???

The tool, if run from Windows, would not be able to do a full offset movement, because obviously the volume would be in use! Nah, so I do not think that was the issue.

0

Share this post


Link to post
Share on other sites

It's great to hear from you again Tripredacus. I thought that you choosed to quit from a topic that will never reach a solution [which of course made me feel bad], but jaclaz was there saving me from a certain deadlock situation.

I really trust you both...

So what do you suggest??

Try the

changing "UseSmallMBR" to 0
or directly applying jaclaz idea???

EDIT: I'm done with steps till the dsfi step.....waiting for the LINK....

Edited by ahmad2080
0

Share this post


Link to post
Share on other sites

You'll have to take your chances. ;)

Though everything posted by Tripredacus is accurate :), right now it' only confusing you.

Do try EXACTLY what I have posted, with NO changes of ANY sort.

If it does not work, we'll later introduce changes/variations.

I was given a dir /S with these files in C:\System.sav\Util:

03/17/2008 04:47 PM 5,120 MBR.INI

03/12/2008 12:32 PM 159,744 MBRInst.exe

use THOSE files, with that size and that timestamp I don't remember if they are from your PC or your friend's one.

Double check the MBR.INI entries in the file with the ones I posted.

About the bootable USB stick, I had hoped you had already something working. :whistle:

Now what would be the better to build thing? :unsure:

Most probably some Linux of sort, since you don't have an XP source to build a PE from.

But possibly the easiest would be to make a (Free)DOS USB bootable stick.

What you need:

MBRWIZ DOS version:

http://mbrwizard.com/

http://mbrwizard.com/download.shtml

Fuwi's batch

http://www.911cd.net/forums//index.php?sho...c=21702&hl=

For the USB stick, the use of Fuwi's batch is advised:

Extract all files from http://www.fuwi.ethz.ch/files/USB-Boot_Utilitys.zip in a directory, say C:\fuwiusb and double click on BOOTABLE_USB-DRIVE.cmd

View your connected USB devices and take note of the drive letter of the USB stick you want to make bootable.

If needed Switch the filesystem to be used on it: If the stick is 2 Gb or smaller, choose FAT(16), if it is bigger, choose FAT32, DO NOT choose NTFS.

Follow prompts, they are remarkably clear.

Once the batch has finished, extract and reinsert the USB stick, it should get a drive letter, open it and add to it MBRWIZD.EXE, renaming it to MBRWIZ.EXE

Access the stick, open with notepad menu.lst and add to it these lines (before "title Reboot"):

title Vista1
find --set-root /bootmgr
chainloader /bootmgr

title Vista2
map (hd0) (hd1)
map (hd1) (hd0)
map --hook
root (hd0,0)
chainloader /bootmgr

Try booting from the stick, choose Vista1 choice, it should boot normally to your Vista.

Try booting from the stick, choose Vista2 choice, it should boot normally to your Vista.

Try booting from the stick, choose FreeDOS, you should boot to the C:\ prompt (remember than now C: is the USB stick).

Try running:

MBRWIZ /disk=1 /Save=C:\my_mbr_DOS.dat

Reboot normally and compare (with FC /B or a hex editor) the file my_mbr_DOS.dat to the copy of the MBR you previously made with HDhacker, they should be identical.

Post if anything of the above does not work or doesn't produce the wanted file my_mbr_DOS.dat or whatever doubts you have.

jaclaz

0

Share this post


Link to post
Share on other sites
Try booting from the stick, choose Vista1 choice, it should boot normally to your Vista.

Try booting from the stick, choose Vista2 choice, it should boot normally to your Vista.

Try booting from the stick, choose FreeDOS, you should boot to the C:\ prompt (remember than now C: is the USB stick).

Try running:

MBRWIZ /disk=1 /Save=C:\my_mbr_DOS.dat

Reboot normally and compare (with FC /B or a hex editor) the file my_mbr_DOS.dat to the copy of the MBR you previously made with HDhacker, they should be identical.

Post if anything of the above does not work or doesn't produce the wanted file my_mbr_DOS.dat or whatever doubts you have.

jaclaz

Everything is OK.. There is only one step which is optional as I guess that I can't accomplish.

When I log into DOS and try to excute MBRWIZ.EXE it says: "This program canot be run in DOS mode."

Another problem with that step is typing!! Z becomes Y and Y becomes Z.......etc.!!!!

I've managed to "find" all required letters and symbols except the " \" used in C:\......

EDIT:

FORGET about the above...I should have downloaded MBRWIZ for DOS not WINXP.....

Now it works, but the typing problem is still there.

Anyway, I did make a copy of MBR, but the two .dat files (one from HDhacker and the other from DOS) are NOT identical!!!

I've sent jaclaz both for further investigation... :(

EDIT: NEW: A friend of mine [another one] bought a HP laptop yesterday ( also similar not identical to mine)....I'll see if I can capture his first 63 sectors too.

Edited by ahmad2080
0

Share this post


Link to post
Share on other sites

Do you have a French keyboard?

http://www.boot-land.net/forums/index.php?...ic=7653&hl=

Anyway, I did make a copy of MBR, but the two .dat files (one from HDhacker and the other from DOS) are NOT identical!!!

I've sent jaclaz both for further investigation... :(

EDIT: NEW: A friend of mine [another one] bought a HP laptop yesterday ( also similar not identical to mine)....I'll see if I can capture his first 63 sectors too.

To be accurate, the file you made with HDhacker on 06-04-2009 14:30 differs from the one taken by MBRWIZ on 08-04-2009 14:19.

Since the "new" MBR captured by MBRWIZ appears to be like one made by MBRINST.EXE, but WITHOUT the proper settings, I do suspect that in the meantime MBRINST.EXE has been run on the machine.

I would try to re-capture from Vista and with HDhacker the MBR, then, immediately after, re-capture it from FreeDOS and MBRWIZ booted from the USB stick, and compare these last two files. :whistle:

It's a known thing that little green men :w00t: sneakily enter households at night making socks odd pairs and runnning MBRINST.EXE.....;)

jaclaz

Edited by jaclaz
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.