Skip to content

Instantly share code, notes, and snippets.

@tolpp
Last active April 30, 2021 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tolpp/a00635ddb6c815057d576ff6ff21fd07 to your computer and use it in GitHub Desktop.
Save tolpp/a00635ddb6c815057d576ff6ff21fd07 to your computer and use it in GitHub Desktop.
Few easy step to increase disk size of a ubuntu server.

Ubuntu Server Increase Disk Size

  1. run df -h to display disk info.

The disk that we want to increase is /dev/sda2 for our case.

  1. run cfdisk as root.
  2. select disk and resize from bottom menu.
  3. Write and Quit.
  4. run resize2fs for desired disk. resize2fs /dev/sda1 for our case.
  5. run df -h to check disk status.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment