0

We are using Clonezilla to make our computer images. Since we are deploying this image on many different hard drive sizes, we shrink the main partition to be lower than 80GB before we make the golden image.

Sometimes the tech forgets to enlarge the partition after the computer has been imaged by following the steps here.

How would one go about created a post-image script to enlarge partition 2 to fill the maximum space available that would run automatically?

AWippler
  • 1,065
  • 1
  • 12
  • 32

2 Answers2

1

Add a RunOnce entry to the image (to be triggered on the first boot of the image), and script/use Diskpart to extend the volume. This will require some testing and configuration on your part, but I've done something similar with a different Linux-based PC-imaging solution.

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
1

Are you using sysprep as recommended by MS before you capture your image? One of the sysprep options is to expand the drive.

Zoredache
  • 130,897
  • 41
  • 276
  • 420