Extending OS drives on EFI based systems the ez way?

INTRO

Hello friends, has this ever happened to you, you spill red wine on your white couch and don’t know what to do?

Kidding aside, surely you’ve run into this issue before? You note the C drive on your windows VM is running low, extend the disk on your hypervisor, on opening diskmgmt.msc, you see the following:

As a result, you cannot extend your C drive to include the extra space you added in the previous step. This is due to VM’s obeying the rules of “contiguous blocks” that regular physical drives do. DANG

Ten seconds later on Google, you find something like THIS I’ve used similar methods in the past, but it’s a long / manual process with room for error with commands you’ve probably not used since Windows XP. Facing the same issue on 3 of my home lab VMs today, I decided to try out a tool that I found a few years back for re-formatting SSDS to install windows, where I had previously installed ESXi. It’s called GPARTED it’s free / fast / ez to use

PROCESS TO EXTEND C DRIVE VIA GPARTED

  1. Download a recent gparted live linux ISO from https://gparted.org/livecd.php
  2. Upload gparted ISO to your datastore
  3. Attach to your VM, set your VM to boot to the EFI “list of boot choices menu”
  4. Boot to ISO attached in step 3
  5. Launch the tool answer defaults for any questions, unless you don’t want to run the GUI in English
  6. Next, move your unallocated space BEFORE the 500 MB EFI recovery partition
  7. below is a screenshot of the BEFORE state, as you can see, we’ve got 52 GB of space that’s AFTER the RECOVER PARTITION
  8. You should then see 52 GB (or whatever amount you chose) unallocated after your C drive, and BEFORE the stupid recovery partition that you’d probably never use anyway 😆
  9. Right click on your primary partition you want to expand, and use the slider within GPARTED to select all the free space you saw in step 9
  10. Commit the changes
  11. EXIT the tool
  12. Reboot the VM
  13. Logon to the VM, open diskmgmt.msc to confirm the changes worked
  14. go about your biznuzz

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website with WordPress.com
Get started
%d bloggers like this: