Change System Partition Size for Dual Boot on Windows PXI Controller

Updated Oct 23, 2020

Environment

Hardware

  • PXI Controller

Operating System

  • Windows

I want to setup a Dual Boot system on my PXI controller. However, it already has a Windows partition running. Can I avoid reinstalling this partition and change the partition size instead?

You can resize partitions using Windows tools. There are two ways to do so:


Using the Windows Disk Management Tool

  1. Search for Disk Management in the Start menu.
  2. Open the Control Panel entry Create and format hard disk partitions.
  3. Right-click on the partition you want to resize.
  4. Select Shrink Volume...
  1. Enter the size you want to shrink from the partition.
  2. Click "Shrink".
  3. You should see a space on the hard drive that is unallocated now. You can use this space to create a partition e.g. for a Real-Time partition there.
 

Using the Command Prompt

  1. Search for Command Prompt in the Start menu and right click >> Run as administrator.
  2. Use the command diskpart to start the application.
  3. Type list volume to identify the partition to shrink.
  4. Select the volume using select volume <n> where <n> is the number of the volume.
  5. Type shrink desired=<x> where x is the size to shrink the volume with.
  6. If the volume can be shrunk by that size you should get a success message.

Additional Information

National Instruments recommends to create an image of the system before resizing any partition.

Resizing partitions only works for space that does not include unmovable files and for free space on the hard drive.

If the partition size was reduced too much you can use the Extend Volume... option in Disk Management or the extend size=<x> command, where x is the size to extend the volume with, to enlarge the partition size again. Please keep in mind that extending the volume requires enough space on the hard drive to do so.