How to get a bigger boot disk on Google Compute Engine

user1193085 picture user1193085 · Jun 3, 2014 · Viewed 10.3k times · Source

Default images have 10GB, but I need more (30GB approx). If I create a disk of 30GB using one of that default images, the usable space it's 10GB, not 30GB. I know I can install the distro using tools like debootstrap, but that seems unnecessarily complicated. is there any other way to do it?

Answer

Kwame picture Kwame · Jan 20, 2016

This may be a new feature as of this writing, but go to

  1. https://console.cloud.google.com/compute/
  2. Click on Disks in the left menu
  3. In the main pane that loads, click on your instance
  4. In the upper horizontal menu that loads, click on Edit
  5. The former disk size will become editable. Change the disk size to your desired size.
  6. Restart your instance (sudo restart -r now). On reboot, df -h lists your new disk size.

So, one approach to answering your question is to create an instance with the default disk and simply resize it via the Compute Engine GUI.