List

It is quick and easy to use Hyper-V Quick Create to get an Ubuntu virtual machine running on a Windows 10 computer. However, if this method is used, you may end up with a tiny Ubuntu virtual disk that will not be useful for any serious work and it is less obvious than the initial setup how to increase the size of this disk.

These steps fix the problem:

  1. Turn off the VM.
  2. Use Hyper-V Manager to select the Settings of the Virtual Machine, select the Hard Drive option and Edit under Virtual hard disk. (If this option is disabled, you need to go back and delete any checkpoints for the VM in the Hyper-V Manager; just select the VM and right click the checkpoint in the checkpoint field below.)
  3. Use the GUI to expand the drive to something reasonable, like 128 GB. Ubuntu now has space to expand into.
  4. Start the VM again. Install Guest Utils:
    sudo apt install cloud-guest-utils
  5. Expand the sda1 partition into the free space:
    sudo growpart /dev/sda 1
    (Note the space between sda and 1!)
  6. Finally run resize2fs:
    sudo resize2fs /dev/sda1
    (No space between sda and 1 here!)

Now your Ubuntu drive is 128 GB.

  Posts

1 2
August 25th, 2020

Icelandic Error Corpus development

The development of the Icelandic Error Corpus at our lab has been going pretty well lately. Thanks to Xindan Xu’s […]

August 12th, 2020

Expand Ubuntu disk after Hyper-V Quick Create

It is quick and easy to use Hyper-V Quick Create to get an Ubuntu virtual machine running on a Windows […]

March 3rd, 2020

Gísli and Little v

This photo of Gísli Harðarson and Little v was taken at Stúdentakjallarinn, the student bar at the University of Iceland, […]

February 28th, 2020

Jim Wood and Little v

This Little v photo was taken on February 28, 2020, during Jim’s visit to the University of Iceland just after […]

February 19th, 2017

Sunghye and Little v

Posted in celebration of Sunghye’s sucessful dissertation defense in February 2017. The photo was taken in the phonetics lab in […]

February 16th, 2017

Einar and Little v

This photo was taken in the fall of 2014 at the University of Pennsylvania in room 418 of Williams Hall. […]

February 11th, 2017

Amy and Little v

The picture is taken at the 90’s cheese party in Philadelphia in October 2014. Without Amy, I would not know […]

February 6th, 2017

Guðrún and Little v

The picture is taken at the 90’s cheese party in Philadelphia in October 2014. It was one of the big […]

February 5th, 2017

Helen and Little v

This is taken at the 90’s cheese party in Philadelphia in October 2014 and posted in celebration of Helen’s successful […]

February 2nd, 2017

Aaron Freeman and Little v

This is a picture from the memorable 90’s cheese party in Philadelphia. You can see how Aaron and Little v […]