Skip to content

Instantly share code, notes, and snippets.

@yorickdowne
Last active March 11, 2024 18:20
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save yorickdowne/0f61c416c0445ebb0ac77b941d4810e0 to your computer and use it in GitHub Desktop.
Save yorickdowne/0f61c416c0445ebb0ac77b941d4810e0 to your computer and use it in GitHub Desktop.
How to resize a netcup VPS disk after contract upgrade

Resizing a netcup VPS disk after upgrading the contract to a bigger one

From Server Control Panel

Boot rescue image

  • Change boot order to network first: Settings -> Boot Order, Save
  • Control -> Shutdown. Use Forced Poweroff if Shutdown doesn't work.
  • Boot into rescue system: Media, "Rescue System" tab, Enable Rescue System. Take note of root pw
  • Control -> Start

Run gparted and resize disk

  • Connect to console: Screen, or from General, click on pic of it
  • Press Enter to get into shell
  • startx
  • Right-click into the empty workspace, choose Applications->Shells->Bash, then run gparted
  • OR, if that does not work, click "Show Keyboard", click "F2", then run gparted
  • Choose to "Fix GPT" by pressing Enter (left mouse click didn't work for me), then resize /dev/sda3 to full disk. You may need to use Tab and arrow keys to navigate so you can choose that partition and then choose to resize. Mouse works sometimes, haven't figured when it does and doesn't.
  • Apply and confirm, wait for gparted to do its work

Boot installed OS

  • Change boot order back to "Hard Disk" first: Settings -> Boot Order, Save
  • Control -> Powercycle
  • SSH into system
  • df -h to verify that GParted did its job
@Lyfhael
Copy link

Lyfhael commented May 31, 2023

Thank you very very much that was helpful !!

@chukwudibarrah
Copy link

chukwudibarrah commented Mar 11, 2024

Thanks for this! In the second section, the only option was to use -->Partition --> Check, then click on the green check mark to apply the changes. Editing to add that I was on Debian 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment