4

I have freshly installed and configured a Windows 7 laptop for a relative who will for sure get tons of malware, viruses, etc. over a short period of time.

I would like to make a restore partition which will revert the system to the state I configured now just by choosing to boot from recovery partition.

Googling around was pointing to creating recovery partitions with Windows install DVD content or system restore images which would destroy this recovery partition once restore has been performed.

Any ideas how to achieve that using free tools?

2 Answers 2

1

For all kind of operations on partitions etc. imho PartedMagic is the best. How to use it to do what you want -> Check this link: http://faizalsalih.blogspot.com/p/creating-hidden-recovery-partition.html

3
  • 4
    You are not answering a question. You recommend a tools which could possibly be able to help to solve the problem but you should add at least some basic info with a procedure. Commented Dec 14, 2013 at 15:39
  • @pabouk: I think it answers the question adequately.
    – martineau
    Commented Dec 14, 2013 at 16:22
  • 4
    @martineau: I am sorry I wrote my comment awkwardly, the procedure is available in the linked article. Piotr, could you please include the essential info from the linked article? The link can stop functioning in the future. Commented Dec 15, 2013 at 7:48
3

I've been working on how to create custom recovery partition and here's what I came up with, it's not "perfect" or "pretty", but it gets job done. I only tested this so far on one laptop with BIOS & MBR partition scheme, so I can't say it will work with UEFI & GPT.

  1. If you only have one normal partition (by "normal" I mean not that 100MB one) I strongly suggest shrinking your system partition to 30-40GB (depends what software you have installed), then create another partition where you will move all user folders (Documents, Desktop, Music, etc), then at the end another partition for recovery (about 6-10GB will be fine). If you already had two partitions (or more) then just shrink your last one by 6-10GB and create new partition there. Format it as NTFS & name it Recovery.
  2. Insert your Windows 7 install media and copy all files from it to that recovery partition.
  3. (I didn't test if this is required but I did it anyway) Close any explorer windows that you have open with Recovery partition, then run cmd as admin and then enter this:X:\boot\bootsect /nt60 Y:, replace X with your Windows 7 install media and Y with your recovery partition.
  4. Download EasyBCD (Non-commercial edition, it's free), install & run it, click "Add new Entry" -> "WinPE", in "Name" enter "Recovery", in "Path" selectY:\sources\boot.wim, replace Y with your recovery partition, then click "Add entry"
  5. Restart your PC and test if it's working, it should show up in boot menu, just run it to see if it will boot up. After this, restart pc into Windows
  6. In Disk management right click on recovery partition and select "Change drive letter", then just remove that letter. That way you will "hide" it.
  7. In System properties go to Advanced, click settings in "Startup and recovery" then change how long will that boot menu screen show, I set it to 1 second.
  8. Now you need to create image of system partition and replace it on recovery media. With windows 7 you can use ImageX or DISM from Windows 8/8.1 (or newer). I don't use ImageX so I can't help you with that. I use Windows 8.1 install media to do that. You can alternatively create WinPE media, read about it here. Of course you can create it on your PC. After you're done, boot it on that laptop.
  9. After it booted up, run cmd. I don't know how it will be on WinPE, but on Windows 8/8.1 install media you can press Shift+F10
  10. In cmd, run diskpart, then list volume. Take a note what drive letters are your system partition and recovery partition, if you followed my example with partitions, then System partition should be D and Recovery should be F. I will use those for example.
  11. run this command to remove original install.wim del F:\sources\install.wim
  12. Now the most important part, run this command to create new install.wim from your system drive Dism /Capture-Image /ImageFile:F:\sources\install.wim /CaptureDir:D:\ /Name:"Windows 7" /Compress:max /CheckIntegrity /Verify

And that's it :)

2
  • Shame, doesn't seem to work for me. After step 4, although my recovery partition shows up in the boot menu, selecting it just gives me an error screen and I have to reboot.
    – Jack M
    Commented Dec 1, 2018 at 21:05
  • @JackM I just tested it up to step 5-th on virtualbox and it worked. What error you had?
    – dexter86
    Commented Dec 2, 2018 at 10:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .