Raiders of the Lost Recovery, Ctrl+F11, MBR Restore and all the other
paraphernalia
I would have to spend a long time answering all the threads that are still open on the subject and this is my reason to open this one separately.
Having been a victim of that villainous message telling me that I would no longer be able to restore my repartioned Inspiron 8600 in the “Out of factory” condition, I examined the forum on the subject and found out that many other Dell customers were as embarrassed as myself.
Using a disk editor I verified the MBR (the Master Boot Record, the very first 512 bytes of any hard disk) against the solutions proposed by Trypheros (http://forums.us.dell.com/supportforums/board/message?board.id=dim_harddrive&message.id=84816&query.id=187319#M84816) and Suneng (http://forums.us.dell.com/supportforums/board/message?board.id=dim_harddrive&message.id=81933#M81933) and noticed that the boot code (the first 440 bytes) was unchanged. Only the partition table was. I then had a look in the Recovery partition after having changed its type to FAT32 LBA. There is an AUTOEXEC.BAT in which a program DSRCHECK obviously compares the MBR to some code hidden somewhere. With the disk editor I pursued my quest searching that partition with a portion of the boot code as argument. And there it was : the truly original MBR lies in the eighteenth sector of the Restore partition. We can reasonably suppose that it occupies the same position on all the Dell machines equipped with a recovery option. Those who will notice a difference will certainly report it here.
If the test made by DSRCHECK fails the procedure is aborted. Why? In my opinion, it’s probably because the restore program needs to consider itself working within a D: partition and if the partition table is not the original one it assumes that some change has been brought in the number and/or the size of the partitions and because of that the restore process might be unsuccessful, if not destructive.
Why does Dell Support not give any answer on this matter? Well, perhaps they do not know, because they use a third party program for the purpose of restoring a PC. And if they do know they might want to stay cautious before advising a very delicate operation which, if performed incorrectly, could destroy the entire contents of the hard disk. Anyway I believe that Dell should document the procedure described in this thread because many of us might want to upgrade to a larger hard disk while still wanting to keep the restore capability. Please, Dell Support Team, take a note of this!
I do not want to offend any of you, so I will not tell anybody that this kind of operation must not be performed after one Tequila too many and without having saved an image of the hard disk.
You need a good disk imaging processor and also a disk editor. Several can be found on the Internet. I am personally a very happy user of Acronis True Image 8.0 and Acronis Disk Director Suite (ADDS) that allows to partition the disk any way you want, install an OS selector and edit the disk sectors. These are invaluable tools for a very reasonable price.
Before proceeding here is a brief description of the MBR :
· The first 440 bytes are the boot code that interprets the rest of the MBR;
· Another 4 bytes are used by Windows as volume bytes;
· 2 bytes I have no information on;
· 4 x 16 bytes to identify, categorize and locate the 4 possible primary partitions on the hard disk; this is the partition table;
· 2 signature bytes closing the MBR and containing 55 AA in hexadecimal code.
Because we want to be able to restore to the original configuration, you will delete all extra partitions. you will thus be left with the Diagnostic Tools EISA partition, a C: partition and the Concurrent DOS Restore partition.
Obviously you will ensure that the first 446 bytes and the last two are the same in the MBR as those in the saved MBR (lets call it SMBR) in the restore partition.
You can now choose one of two procedures :
· You have enlarged the C: partition (partition resized or a bigger hard disk) and want to keep the Restore partition at the far end of the disk : copy the partition table from the MBR to SMBR.
· Do you want it to be the exact image of what it was when shipped ? Then resize the partitions to the values they had originally. Thus the partition table in both MBR and SMBR should contain the same values.
Et voilà ! Reboot, press Ctrl+F11 and the restore screen should appear.
A note for those who use ADDS, if copying MBR to SMBR or vice versa, choose Hex View (F2) and position the cursor to the beginning of the sector before copying. Also note that the Partition Table View (F6) interprets the bytes in the reverse position.
Wow, Did you stay at a holiday inn express last night, just kidding. Now that was a great read, Nice work trouble shooting that. For a lot of users, pc restore is a great tool and it saves dell a lot of time off the phones when people have problems with their systems. Now when folks do a clean install they lose this feature, which to most advance users is ok but to novice it's a problem.
You mentioned some interesting items in your posting and I hope you will give a bit more help here. Like you, I would like to get my Dell system to recognize the restore partition - the blue
www.dell.com banner is gone as I had to use the WinXP CD to get a working system.
I am using Acronis Disk Director and I am not quite sure how you went about copying the MBR code.
The system I have here is a 700m and the "C:" partion is NTFS whilst the other partitions are either FAT16 or FAT32 - iIt seems that all of your partitions were FAT-based.
Any suggestions on cobbling together something to restore the system to its orginal configuration?
Maracuja, Maracuja, Marcuja! You found the missing piece to the puzzle! I've been on a similar expedition recently--see my documentation at www.goodells.net/dellutil. I could deal with the Ctrl+F11 process, but didn't figure out the key to dsrcheck. My testbed machine is a Dimension 3000, and the MBR copy is there in the 18th sector also, so I concur with your assumption that that's probably consistent on all Dells.
I was able to successfully recreate a new Restore partition from scratch on a blank disk, using copies of the files from the original Restore partition, and copying the disk's partition table to the 18th sector of the Restore partition. Actually, I duplicated the whole sector, then zeroed out everything except the partition table and the ending 55AAh. That suggests the boot code portion of the copy isn't relevant, only the copy of the partition table.
I found a couple other requirements before dsrcheck will give the green light. I'll update all of this on my webpage as soon as I do a little more tinkering to recheck everything.
As noted earlier - you posted very good information and I am about to do some experimentation - this restore thing is a personal issue now.... A problem however is that the "dsrcheck.exe" file (and a lot of other items) disappeared with the use of the WinXP Pro CD when I had to get back to a working system.
Do you know where I can find or get a copy of this file?
Let me assume that the BIOS is the same on your computer as on mine. When you switch it on there is a white bar progressing from left to right in the lower part of the screen. It is a that instant that you should press Ctrl+F11 in order to reach the restore proposal screen. If you never changed anything in the organization of the partitions (resizing, adding or removing, moving, ....) or installed a multiboot option (Acronis OS Selector for example), it should work fine.
In my case I had added a partition dedicated to data storage, then decided to reconfigure my installation taking as a start the state "As Shipped". But even after having suppressed the D: partition the Restore function was rejected.
As I mentioned in my top post, searching the forum about a similar problem led me to discover 2 MBR sectors that I found identical to mine, except for the partition table. Somehow, resizing of my original C: partition had occurred and this is why the comparison with the Original MBR (OMBR) failed.
The FAT16 is the diagnostics tools partition and is in EISA configuration, the FAT32 is the restore partition and its configuration is Concurrent DOS (CTOS). It is this one that contains the OMBR in its 18th sector and all the software that you have received and requested when you purchased your computer(*). It is also that partition that contains the AUTOEXEC.BAT with the DSRCHECK program. The two special configurations (EISA and CTOS) differ from normal FAT16-FAT32 by a 2 hexadecimal digits code called partition type and induces XP to ignore those partitions and to not assign them a drive letter. You cannot see inside them from XP except with a disk editor at the sector level. This explains why I changed that FAT32 CTOS into FAT32 LBA: XP attributed a drive letter to it and allowed me to inspect the contents at the file level.
What are the prerequisites for restoring your computer to the "As Shipped" condition, or in other words for the Ctrl+F11 combination to work (i.e. to bring you the restore proposal instead of the rejection screen)?
the 3 partitions: FAT16, C: (in any condition), FAT32 this one absolutely undamaged;
MBR identical to OMBR, i.e.:
the first 446 bytes;
the partition table (4 x 16 bytes);
either you resize and position the 3 current partitions as they were described in the OMBR (difficult);
either you want to maintain the position of the same 3 and thus write the MBR partition table into the OMBR partition table;
the ending signature hexadecimal 55 AA.
If you need to work to reach those conditions, you will first create an image of your entire disk on a external media (DVD, CDs, external HDD, ...) using something like Acronis True Image or Norton Ghost, because I am sure that you are a very cautious person who wants to be able to get his system back on track in case you pressed the wrong key at the wrong place or at the wrong instant.
If the FAT32 has been damaged or deleted, then too bad :smileysad:. But with the MBR, it is relatively easy to do something if they are different :smileyhappy:.
In order for you to inpect/modify the MBR and OMBR, start Acronis Disk Director Suite (ADDS) and press menu : View>Manual Mode.
Step 1.In the main viewing area, you see a description of the 3 partitions and on top of it: "Disk 1". Right-Click on it with your Mouse (RCM)>Advanced>Edit. The cursor is automatically positionned at the beginning of the partition table in Partition Table View of the Disk Editor. Press F2 to enter Hexadecimal View, then the Home key to position the cursor at the beginning of the sector. Using Shift and the End key highlight the whole sector, then Menu: Edit>Write to file. Choose a file name of your liking, say "Dell_Changed.mbr", browse to find a destination and save it.
Step 2. RCM on the FAT32 partition then Advanced>Edit, press F2 followed by the Home key to put the cursor on top of the partition boot sector in Hexadecimal View. Press the Page Down key 17 times to find the OMBR. Highlight it using Shift+End keys, then menu: Edit>Write to file, choose a file name of your liking, say "Dell_Original.mbr", browse to find a destination and save it.
Step 3. You have saved both MBR and OMBR, so you will always be able to recover one of them in case you need to. It is a good idea to save these two files on an external support (ADDS supports CD-RW and USB HDD) so you can put them back in place with the bootable ADDS CD.
Step 4. We want to be sure to have the original boot code and we will thus copy the first 446 bytes of the OMBR into the MBR. Position the cursor at the beginning of the OMBR and using Shift+Arrow keys highlight the code until the position 445 that you can check in the bottom bar of the editor screen (it is 445 since the first byte is in position 0). Press Ctrl+C to copy that portion. Exit the editor. RCM on Disk 1, Advanced>Edit, F2, Home to position on top of the MBR and finally Ctrl+V to paste the portion of code. Exit the editor and if you are sure that you did not make any mistake accept the proposition for change.
Step 5. Let us fix the Partition Table. I suggest that you keep a maximum of room for your current C: partition, leaving the FAT32 (restore partition) at the far end of the disk. You wil thus copy the Partition Table from the MBR into the one of the OMBR. Edit the MBR, (RCM on Disk 1, Advanced>Edit). If your are in Hexadecimal View, move the cursor to the position 446 and using Shif+End highlight the remaining of the sector. Check that the last two numbers are 55 AA. Press Ctrl+C. Exit. RCM on the FAT32 partition, Advanced>Edit, find the position 446 and press Ctrl+V. Exit and accept the change if you are sure of the quality of your actions.
Now Relax. Have a good, long, slow, deep breath. Restart your computer. Cross index and major fingers. Press Ctrl+F11 when you see the expanding white line. The rest is yours. If it fails you still have the images you saved before manipulating the MBRs.
Pfiooooh, what a verbose !!! Not that I consider you as a computer illiterate. But I have already read a few reactions to this thread in some others and it seems that some have not completely understood my first post. I hope that these explanations will be detailed enough for the majority.
Good luck!
(*). This means that copying the Restore partition from another computer will normally not work.
Funny. I discovered your website only a day before you posted in this thread and I have been enchanted with your expertise in multibooting. I spent a long, though delightful time to discover all the intricacies of that technique.
Today I read the results of your forensic work on DSRCHECK. Very thorough investigation indeed! Wonderful job!
I wish I had visited it before posting my reply to Noibn. There is finally enough material at our disposal to bring back to life the Dell restore function when in need.
Cheers.
N.B. The Dell PC Restore function is described in my Dell documentation in the chapter Solving Problems within the "Restoring Your Operating System" sub-chapter after the Windows XP Restore.
I was very pleased to find this thread as I have a system on which I've accidentally broken the Dell Ctrl-F11 sequence.
I'm proficient with the techniques you're suggesting. I'm actually booting from a Linux CD (knoppix) and editing/viewing the disk using the command "LDE" (Linux Disk Editor). I've restored the saved MBR using the information you've carefully unearthed and the blue Dell banner is now restored. But on Ctrl-F11 I get "Bad PBR Signature" even though the current MBR is exactly the same as the saved one (and I
believe the partition layout is unchanged from the original). I'm short of time to try lots of possible options so I wonder if any of you know the reason for this particular message?
My next option was to bypass the Ctrl-F11 and run recover directly as per Dan's web page analysis.
"I've restored the saved MBR using the information you've carefully unearthed and the blue Dell banner is now restored. But on Ctrl-F11 I get "Bad PBR Signature" even though the current MBR is exactly the same as the saved one (and I believe the partition layout is unchanged from the original)."
I haven't debugged the Dell MBR, but in this context "signature" could mean the '55 AA' that ends a boot sector. I've previously seen those bytes referred to as either a signature or a "magic number". With your disk editor, look at the sector your third entry in the partition table points to. That should be the third PBR, and you should see an ascii "MSWIN4.1" near the beginning and the sector should end in the bytes '55 AA'. If not, then either the sector got wiped out somehow, or your partition table isn't pointing to the right sector.
"My next option was to bypass the Ctrl-F11 and run recover directly as per Dan's web page analysis."
Check the PBR first with your disk editor. My tip about bypassing Ctrl-F11 is to bypass dsrcheck and keep it from short-circuiting the restore operation. But if your partition table or PBR is bad, you'll never get into the partition in the first place.
Again, excellent information - you are a great asset to all of us.
As it turns out, I've been exchanging e-mails with Dan Goodell - a very helpful fellow - who "walked" me through several layers of the partition jungle. In the end, it is clear that my "restore" partition is damaged - not sure how or why - but it has no resemblance to any of the posted items and doing a search on key words, e.g., "restore" "PBR" etc., returned negative results. Sector 18 has no resemblance to an MBR. So, unless the data here are encoded (the MBR wouldn't be and there doesn't appear to be one) this dirve is in line for and old-fashioned fdisk.
While Dell had good intentions with incorporating the restore partition, as we all know "the path to he*l is paved with good intentions."
Of course, I'm still getting an education from examining the drive... now if there was only a way to get a copy of the partition data...anybody in the greater metropolitan NY/NJ area with a 700m....?
boppo
2 Intern
•
4376 Posts
468
0
Posted April 3rd, 2005 16:00
Wow, Did you stay at a holiday inn express last night, just kidding. Now that was a great read, Nice work trouble shooting that. For a lot of users, pc restore is a great tool and it saves dell a lot of time off the phones when people have problems with their systems. Now when folks do a clean install they lose this feature, which to most advance users is ok but to novice it's a problem.
Again, nice work