VHD Advanced: Differential VHD backup system

Source: Internet
Author: User

VHD Advanced: Differential VHD backup system

First, create a virtual disk

Method 1: Create a graphical interface

1. Open Disk Manager (run Diskmgmt.msc), right-click on "Disk Management", "Create VHD", type Select VHD, dynamically expand or fix size arbitrarily, both types of performance. For example, we set up a virtual disk image of size 20G, named Win8.vhd, in the D-disk. Load the VHD you just created, initialize the disk and partition it, set the drive letter to F: (If you want to install the system, don't forget to activate it, if it starts under UEFI, be sure to initialize it to a GPT disk).

Method 2: Command-line creation (not recommended)

The administrator opens CMD and enters the following instructions (for reference only)

Diskpartcreate vdisk file=d:\win8.vhd maximum=25600 type=fixedselect vdisk file=d:\win8.vhdattach vdiskcreate Partition Primaryassign Letter=fformat Quick Label=win8exit

Second, pour the system into the VHD

Step 1: Release the image. Virtual Optical drive load win8.1 ISO image for CD drive G, open cmd with administrator privileges, enter imagex.exe/apply G:\sources\install.wim 4 f:, wait for nearly 5-10 minutes after the display 100%,WIN8 system is released to the F drive. It is recommended to use graphics software such as Gimagex,wimtool,winnt 6.x setup and other operations;

Step 2, modify the boot menu. Win7 bootmgr Unable to boot win8.1, so to win8.1 bootmgr copy over. Continue to enter in CMD for Administrator rights: BCDboot F:\WINDOWS/S C:/L ZH-CN, here C: refers to the location of the active partition, to this step, The bootmgr has been upgraded and WIN8.VHD has been added, which does not require manual replication of win8.1 bootmgr.

Three, VHD differential hard disk for second backup, second recovery, branch multi-system

First introduce the differential drive. This concept first appeared in the virtual machine, such as we just created a win8.vhd, if we use him, then all changes will be written in real-time win8.vhd. But if we create a differential hard disk, point to WIN8.VHD, for example, named Win8l1.vhd. At this time we mount Win8l1.vhd (note not win8.vhd), we can still see a and just like the F-disk, the contents and just the same, However, all changes made at this time will be saved in the WIN8L1.VHD, and will not modify the WIN8.VHD, ensuring the win8.vhd of the read-only nature. To do an experiment, this time through the WIN8L1.VHD mounted F disk format, F disk empty, but if you delete chafen.vhd, and then mount back to Win8.vhd, you will find the file intact.

Based on this, the following application methods are derived.

The differential hard disk---can achieve seconds backup, seconds recovery, perfect protection of the system disk and free from reloading the system, the victory over Ghost.

The---Principle of the branch hard disk is also based on the differential hard disk, which can be expanded to n independent WIN7/8 and perform different tasks at random expansion of the number of systems.

Start here:

The first trick is to create a differential drive and backup: Now you should have a d:\win8.vhd, and already installed the WIN8 in it, can start smoothly, and install the driver. Now we restart into the PE or dual system win7, renamed Win8.vhd to Win8.base0.vhd, and then into CMD, enter DiskPart, with the command create Vdisk file=d:\win8.vhd parent=d:\ Win8.base0.vhd then create a differential hard drive win8.vhd that is linked to the WIN8.BASE0.VHD. Now this differential drive is only 80kb (which will gradually increase with use), and can now be backed up with a handy restore later (named Backup.vhd)

Since the previous boot menu has been linked to WIN8.VHD, it is no longer necessary to modify the boot menu.

Second recovery: When you want to restore the system, only need to enter the PE or dual system win7, delete the current in use of the Win8.vhd, the backup.vhd renamed to Win8.vhd, and then restart.

When you want to back up your current system, just add a third-tier differential hard drive, and as before, rename Win8.vhd to Win8.base1.vhd and create a new differential hard drive win8.vhd that points to win8.base1.vhd. Can be superimposed indefinitely, the author tested up to 7 layers, with hdtune test each layer of reading speed, are 70m/s, do not worry about performance issues.

If you feel that the number of layers is too much space-consuming and unattractive, you can use the merge parameter in DiskPart to merge a certain number of layers down. Specifically, you can view the help merge Vdisk in DiskPart.

Second trick: Create a multi-branch hard drive. For example, we use WIN8.BASE0.VHD as a template system. We can separately create n points to his differential hard drive (pair, can be one-to-many), and with the BCDboot command to add the boot menu (as described above), so that an instant more than n Win8, and do not occupy space, but also mutually unconstrained, especially suitable for the family father and mother public a computer of the baby Oh! You can change your system to a mm desktop, you can add passwords, and so on. Mom and Dad's system will give them what 360 Ah, QQ game Ah, you yourself also lest look upset.

VHD Advanced: Differential VHD backup system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.