|Partitioning the Hard Drive|
PC-BSD® does not include its own built-in partition manager.
Shrinking a Drive in Windows 7
If you are currently running Windows 7, it is using the entire hard drive. This means that you will need to first shrink the drive in order to make room to create a new partition. Shrinking is an operation that retains the current data on the partition, while reducing the size of the partition.
To shrink the drive, go to Start menu ➜ right-click Computer ➜ Manage ➜ Storage ➜ Disk Management. Figure 2.3a shows an example of a system running Windows 7. In this example, Windows has created three partitions: a 16GB recovery partition, a 100MB system partition, and a 450GB data partition.
|Disk Selection Screen of the installer. It is a good idea to write down the sizes of the partitions so that you will recognize them when the PC-BSD® installer displays your current partitions.|
Since the three Windows partitions are using the entire disk, the data partition needs to be shrunk in order to create space to install PC-BSD® into. To shrink the data partition, right-click the partition, in this example it is called Acer (C:), and select "Shrink Volume". Wait a moment as it queries the volume for available shrink space; the results will be displayed as seen in the example in Figure 2.3b.
In this example, 321089MB of space is available. To divide the partition between Windows and PC-BSD®, change that number to 230000 and click the "Shrink" button. When finished, the newly created free space will be displayed, as seen in Figure 2.3c.
You can now format the newly created free space using a utility such as Parted Magic, as described in the next section.
Using Parted Magic to Create a Primary Partition
 is a graphical, easy-to-use partition editor that is packaged on a live CD. It can be used to shrink an existing partition and to create a primary partition from existing free space.
To use Parted Magic, download the latest .iso.zip file, unzip it, and burn it to CD. Boot the system with the CD and let it boot into "Default settings (Runs from RAM)". Wait for it to boot into the graphical screen, then select the "Partition Editor" desktop icon.
Figure 2.3d shows the same Windows 7 system in Partition Editor. The 225.05GB partition is the Windows data partition (which was displayed as drive C within Windows 7) and the 224.61GB of unallocated space was created using the Windows Disk Management utility. The "Create new Partition" screen was opened by right-clicking on the unallocated space and selecting "New" from the menu.
When creating your partition from unallocated space, make sure that "Primary Partition" is selected. The filesystem type does not matter as the PC-BSD® installer will reformat it. It is a good idea to write down the size and filesystem type so that you will recognize the partition that you will be installing PC-BSD® into. Once you have made your selections, click the "Add" button. Note that the partition will not actually be created until you click the "Apply" button to apply your changes. A popup menu will prompt you to make sure that you have selected the correct partition, as formatting a partition destroys all data on that portion of the disk. Once the operation is complete you can reboot and start the PC-BSD® installation.