User login

Increase main partition size in Ubuntu within VMWare Fusion

That was well nigh impossible. GUI fail, on gparted's part.

These steps won't be 100% complete because it's 7:15am and i spent the last hour frying my brain on this stuff (after the brain unilaterally called a break about 2:15am and i fell asleep), but they do fill in some gaps other resources out there don't quite cover. Some even seem to (falsely) suggest that unallocated space must be made into its own partition first. Here are some of the better links; my (final working) steps below.

Resources

How to increase the /dev/sda1 partition size

  1. Power down your virtual machine and use the VMWare Fusion Settings, Hard Disk to increase the VM's disk space allocation. Pre-allocated or not, doesn't matter. (Don't even think you're done, I'd done that step forever ago and it wasn't helping.)
  2. Download the gparted live CD (.iso file) from http://gparted.sourceforge.net/livecd.php
  3. Tell your VM to boot from that .iso- Settings CDs&DVDs, use disk image; and Settings, Advanced, Startup Device, switch from Hard Disk to CD/DVD.
  4. Boot your VM and accept all gparted's default options.
  5. In the graphical user interface for gparted, i had my main partition on the left, the swap partition inside a containing partition in the middle, and the unallocated space to the right. Partitions can only be expanded into contiguous unallocated space, and they cannot be moved around. So, the way to do it is:
    1. Expand the partition containing the swap partition rightward to use all the unallocated space (click resize/move, hover over the right end and drag when the cursor is an arrow).
    2. Move the swap partition all the way to the right within this now large partition.
    3. Go to the left, main partition we care about, and expand it rightward to take up the unallocated space that is now there in the front part of the swap-containing partition.
  6. Put your CD&DVD and boot settings back to normal.
  7. Boot up the virtual machine again, and enjoy all the space Ubuntu Linux now has.

Maybe someone will say i could have just created another partition and moved some stuff there, but i did not want to mess with such manual reallocation.

Searched words: 
gparted allocate unallocated space to partition vmware fusion boot from cd image gparted live cd vmware fusion allocate space ubuntu ubuntu maximum partition size gpart increase dev/sda1 partition size

Comments

Thanks!

Thanks!

Great

This post helped me to solve the same problem. Thanks.

Really nice job!!

You don't imagine the time I lost because of this... Really great job! thanks;)

Thank you

Than you very much for the information. It helped us to solve the problem.

A thousand thank-yous...

That... worked!

That works great! Thank you so much!!!

Thanks to your description, I was able to expand my Ubuntu-Disk as desired. Never tought, that it would be a difference to use GParted directly under Ubuntu or from a Live CD .-)

Little hint:
If you want to change the boot order (Point 3), press F2 during the very first seconds of the boot-process inside the VMWare-Window. Then you see something like a 'Bios', where you can change the boot sequence.

Thanks again!!!

Nice but...

Your forgot to mention between 5.b and 5.c that you have to shrink the swap-containing partition to only contain the swap part again.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.