The application of differential VHD in Win7

Source: Internet
Author: User


1. Start with Win7 installation CD, enter command line
Stop at the partition interface and press the Shift + F10 key on the keyboard to bring up the console
At this point, if you feel the trouble, you can switch to the partition interface, directly with the WIN 7 installation disc partition (remember to format after the completion, otherwise the creation of the VHD Disk command will not be normal execution)
2. Create the main VHD
After creating the partition, switch to the console interface and enter the following command.
(1) DiskPart (open DiskPart)
(2) List volume (displays the list of loaded volumes)
(4) Create vdisk file=d:\win7.vhd type=fixed maximum=40960 (type=expandable dynamic disk)
(5) Select Vdisk file=d:\win7.vhd (line command Select VHD file)
(6) Attach vdisk (line command mount Virtual disk)
(7) Exit exits
3, installation Win7
After the above operation is completed, the installation of the partition interface inside the refresh, you can see more disks
Create a partition, format the disk, install the system to the disk
The rest of the installation process is exactly the same as all normal installation procedures
4. Create and back up differential VHDs (The following steps can also be set in Win7pe, more intuitive)
Reboot immediately after system installation is complete
(1) Boot the system with the Win7 installation disc, and when the Windows installation window appears, press "SHIFT+F10"
(2) DiskPart (open DiskPart)
(3) List volume (displays the list of loaded volumes)
(4) Create Vdisk File=d:\win7_c.vhd parent=d:\win7.vhd (set parent plate differential system)
Create Vdisk file=d:\win7_c1.vhd Parent=d:\win7_c.vhd (sub-differential system setting sub-disk)
(Create a differencing VHD, set the main VHD to just created)
(5) exit (quit DiskPart)
(6) Copy D:\Win7_C.vhd D:\Win7_C.bak
Copy D:\Win7_C1.vhd D:\Win7_C1.bak (Backup differential VHD file)
(7) DiskPart (open DiskPart)
(8) Select Vdisk file=d:\win7_c1.vhd
(select differencing vhd file)
(9) Attach vdisk (hook up the virtual disk file)
(Ten) List volume (displays the list of loaded volumes, find the hook location, my VHD hook location is I disk, 100M primary hard disk (or boot partition location) (OEM disk to expand the reserved partition 150M, otherwise the file cannot copy installation failed) location is C drive)
(one) exit (Exit DiskPart)
5. Write boot information to the primary partition of 100M
(1) BCDboot i:\windows/s C:
6, modify the BCD information, start personalization
(1) Bcdedit (full information for BCD display)
(2) Bcdedit/set {default} description "Win7_c1" (because the BCDboot command has just been executed, so the default is the VHD version of Win7, the VHD version of the display)
(3) Bcdedit/set {The UID of the startup Item} description "Win7"
(5) Bcdedit/timeout 3 (Start waiting 3 seconds is long enough, default is 30 seconds)
7, if the Win7 boot menu in English can be modified as follows
You can open a CMD command prompt with administrator privileges (right-click the command prompt shortcut, select "Run as Administrator" in the context menu, and need to confirm the UAC security prompt), enter and execute the following command:
Bcdedit-set {BOOTMGR} LOCALE ZH-CN
(This command will change the display language of the selection menu for the operating system that needs to start, that is, when multiple operating systems coexist, select which operating system to start.)
Bcdedit-set {current} LOCALE ZH-CN
Bcdedit-set {default} LOCALE ZH-CN
(This command will change the display language of the F8 Advanced boot Menu for the currently selected Windows operating system to Simplified Chinese)
Bcdedit-set {Memdiag} LOCALE ZH-CN
(This command will change the display language of the Windows Memory Diagnostic Tool to Simplified Chinese)
Bcdedit-set {child VHD disk SID} LOCALE ZH-CN
(This command will change the display language of the Windows splash screen to Simplified Chinese)
Finally, the user can then enter and execute the bcdedit/enum all command with administrator privileges to see if the LOCALE value of the above item has been successfully modified to zh-ch Simplified Chinese.
8. Reboot, the first startup item is the system that the sub-disk guides
* If "bootmgr is missed." Appears after reboot, follow these steps
(1) Boot the system with the Win7 installation disc, and when the Windows installation window appears, press "SHIFT+F10"
(2) DiskPart
(3) Select Disk=0 (select the hard drive serial number to install)
(4) Select Partition=1 (select 100M boot partition serial number)
(5) Active (the selected partition is set to active)
9. Delete the parent disk startup item
Bcdedit/delete {Sid}/cleanup
10. Merging differential disks
(1) DiskPart
(2) Sel vdisk file=d:\win7_c.vhd (the modification of the sub-disk is applied to the parent disk) (SEL vdisk FILE=D:\WIN7_C1.VHD (applies the modification of the sub-1 disk to the sub-disk))
(3) Merge Vdisk depth=1
Merging a differencing disk is the application of the modification of the child VHD to the parent VHD.
The child VHD is restored to its original state after merging the differencing disk
11. Recovery of VHDs
The VHD can be restored in seconds, as long as the win7_c1.vhd deleted, the win7_c1.bak changed to Win7_c1.vhd back to the parent disk WIN7_C.VHD system!
The system is almost there, if you do not install the differential disk to the 3rd step to complete the installation
If you just install a sub-disk, you don't need to set the WIN7_C1.VHD! Just set it to WIN7_C.VHD!

When booting with CHILD.VHD, you can see that the size of the VHD becomes FATHER.VHD equivalent. In fact, the size is very small in WinPE.

The application of differential VHD in Win7

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.