Resizing partition in AWS

 

First

lsblk

If Using a Standard Partition (No LVM)

  1. Resize the partition:
    sudo growpart /dev/nvme0n1 1
  2. Resize the filesystem:
    sudo resize2fs /dev/nvme0n1p1 # For ext4 sudo xfs_growfs /dev/nvme0n1p1 # For XFS

Step 4: Verify the New Storage

df -h

You should now see the increased disk space. 🚀

Comments

Popular posts from this blog

Moodle Backup and Restore in Docker

Custom Domain to GitHub Pages (Hostinger Edition)