Skip to content

Instantly share code, notes, and snippets.

@arunjayakumar01
Last active March 10, 2022 10:20
Show Gist options
  • Save arunjayakumar01/592e5c67fec2e331e9a188b4023de465 to your computer and use it in GitHub Desktop.
Save arunjayakumar01/592e5c67fec2e331e9a188b4023de465 to your computer and use it in GitHub Desktop.
resize-partition-ubuntu
  • lsblk to list partitions
  • sudo pvs to list the free space in disk
  • sudo pvresize /dev/sda1
  • df -h to get root logical volume name
    • eg /dev/mapper/ubuntu--vg-root
  • Expand volume
    • sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment