Skip to content

Instantly share code, notes, and snippets.

@jzhou77
Last active February 16, 2020 04:19
Show Gist options
  • Save jzhou77/3a8549740396781849607130e60dc107 to your computer and use it in GitHub Desktop.
Save jzhou77/3a8549740396781849607130e60dc107 to your computer and use it in GitHub Desktop.
Resize Linux Partitions
You cannot resize a mounted disk in Linux. Probably the easiest way to do this is to download the gparted live CD .iso file and tell your Ubuntu VM to boot from that image as the CD Drive. Then you should be able to resize your existing hard drive partition. When gparted is finished shut down your VM and reset your VM boot order to boot from the Hard Drive again.
Here is an article that explains the process for VMWare:
http://data.agaric.com/increase-main-partition-size-ubuntu-within-vmware-fusion
Steps 1,3 and 6 are only things that should be different.
Step 1 - you have already done.
Step 3 - Use Configure... | Hardware | Boot Order to change the Boot Order and Hardware | CD/DVD 1 to point your CD to the downloaded .iso (also ensure that the Connected checkbox is checked, otherwise Parallels will ignore the CD drive during boot)
Step 6 - Reverse what you did in Step 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment