DESKTOP

Installing Windows 8 on startup VHD files (part 2) - Creating the VHD during the installation by using DiskPart

2/19/2014 3:50:55 AM

Creating the VHD during the installation by using DiskPart

This section discusses another installation to VHD. This time, the VHD file will be created as part of the installation process by using the DiskPart utility. This can save time during the process because the existing operating system does not need to be started to create the VHD file. To create a VHD file and install Windows 8, complete the following steps:

  1. Insert the Windows 8 media and restart your computer.

  2. At the first setup screen, press Shift+F10 to open a command prompt.

  3. From the x:\sources directory, type Diskpart at the command line and press Enter to launch DiskPart.

  4. Type List Disk at the DiskPart prompt and note the available disks in the system.

  5. Type select disk # where # is the number of the disk.

  6. With the disk selected, enter List Volume at the command line and press Enter.

    This displays the volumes available and the drive letters associated with them. You will need this in the next step when creating a new VHD.

  7. Type select volume #, where # is the number of the volume being selected, at the command line, and press Enter.

  8. Type the following command:

    Create VDisk file=x:\vhd\windows8.vhd maximum=<size in MB> type=<expandable |
    fixed>

    where x:\ is the drive letter of the volume selected in the previous step and the vhd type is specified as expandable or fixed. The maximum value should be the maximum exposed size of the VHD in MB. If you choose a type of fixed for the VHD, you will need to specify the size=xx option rather than the maximum=xx option to designate the size of the disk file.

  9. After the VHD file is created, locate the VHD and its information by typing List Vdisk at the DiskPart command line and pressing Enter.

  10. Select the VHD by typing Select vdisk file=“<path to vhd>” and pressing Enter.

    The path to the VHD is displayed by the List Vdisk command.

  11. To attach the selected VHD so that Windows can use it as a target disk, type attach vdisk at the command line and press Enter.

  12. Exit the DiskPart utility by typing exit on the command line.

  13. Exit the command prompt by typing exit again and pressing Enter.

  14. Now that the VHD is attached to the computer, select the language, keyboard, and time and currency settings and tap or click Next.

  15. Tap or click Install Now.

  16. Enter the product key for Windows 8 and tap or click Next.

  17. Select I Accept on the End User License Agreement and tap or click Next.

  18. On the Where Do You Want To Install Windows page of the Windows Setup Wizard, select the new disk as the installation location for Windows.

Note

SELECTING THE RIGHT DISK

When you install Windows on a VHD, one way to determine which disk is the correct one is to look at the size of the displayed disk or partition. It should be roughly the size you specified when creating the file. Another way is to select that file and then look at the warning underneath the disk selection window. You see a message saying that Windows cannot install on the selected device; this warning can be safely ignored.

Other  
  •  Windows 8 : Upgrading or migrating from a previous version of Windows (part 4) - Migrating user data
  •  Windows 8 : Upgrading or migrating from a previous version of Windows (part 3) - Using an external hard disk or USB flash drive, Using the User State Migration Tool
  •  Windows 8 : Upgrading or migrating from a previous version of Windows (part 2) - Using removable media, Using a network connection
  •  Windows 8 : Upgrading or migrating from a previous version of Windows (part 1) - Running the Setup Wizard , Configuring your account
  •  Installing Windows 8 on a new or formatted system (part 3) - Installing Windows 8 with Windows To Go
  •  Installing Windows 8 on a new or formatted system (part 2) - Configuring your account
  •  Installing Windows 8 on a new or formatted system (part 1) - Starting the installation
  •  Windows 8 : Customizing the Appearance of Windows - Adjusting Screen Resolution - Change Screen Resolution
  •  Windows 8 : Customizing the Appearance of Windows - Changing the Desktop Color Scheme - Change Windows Color and Transparency
  •  Windows 8 : Customizing the Appearance of Windows - Changing the Desktop Background - Select a Different Background
  •  
    Most View
    Microsoft SharePoint 2010 Web Applications : Presentation Layer Overview - Ribbon (part 1)
    The Cyber-athletic Revolution – E-sports’ Era (Part 1)
    Windows Server 2003 : Implementing Software Restriction Policies (part 4) - Implementing Software Restriction Policies - Creating a Path Rule, Designating File Types
    Sql Server 2012 : Hierarchical Data and the Relational Database - Populating the Hierarchy (part 1)
    Two Is Better Than One - WD My Cloud Mirror
    Programming ASP.NET 3.5 : Data Source-Based Data Binding (part 3) - List Controls
    Windows 8 : Configuring networking (part 5) - Managing network settings - Understanding the dual TCP/IP stack in Windows 8, Configuring name resolution
    Nikon Coolpix A – An Appealing Camera For Sharp Images (Part 2)
    Canon PowerShot SX240 HS - A Powerful Perfection
    LG Intuition Review - Skirts The Line Between Smartphone And Tablet (Part 2)
    Popular Tags
    Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 Adobe Indesign Adobe Flash Professional Dreamweaver Adobe Illustrator Adobe After Effects Adobe Photoshop Adobe Fireworks Adobe Flash Catalyst Corel Painter X CorelDRAW X5 CorelDraw 10 QuarkXPress 8 windows Phone 7 windows Phone 8 BlackBerry Android Ipad Iphone iOS
    Top 10
    Review : Acer Aspire R13
    Review : Microsoft Lumia 535
    Review : Olympus OM-D E-M5 Mark II
    TomTom Runner + MultiSport Cardio
    Timex Ironman Run Trainer 2.0
    Suunto Ambit3 Peak Sapphire HR
    Polar M400
    Garmin Forerunner 920XT
    Sharepoint 2013 : Content Model and Managed Metadata - Publishing, Un-publishing, and Republishing
    Sharepoint 2013 : Content Model and Managed Metadata - Content Type Hubs