Snippets Collections
Run df -h to verify your root partition is full (100%)
Run lsblk and then lsblk -f to get block device details
sudo mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp
sudo growpart /dev/DEVICE_ID PARTITION_NUMBER
lsblk to verify partition has expanded
sudo resize2fs /dev/DEVICE_IDPARTITION_NUMBER
Run df -h to verify your resized disk
sudo umount /tmp
Run df -h to verify your root partition is full (100%)
Run lsblk and then lsblk -f to get block device details
sudo mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp
sudo growpart /dev/DEVICE_ID PARTITION_NUMBER ex /dev/nvme0n1 1
lsblk to verify partition has expanded 
sudo resize2fs /dev/DEVICE_IDPARTITION_NUMBER ex /dev/nvme0n1p1
Run df -h to verify your resized disk
sudo umount /tmp
aws --profile default ec2 describe-images --owners self --query 'Images[*].[Tags[?Key==`ImageType`] | [0].Value]'
star

Tue May 07 2024 17:09:13 GMT+0000 (Coordinated Universal Time)

#aws #ec2
star

Wed Jan 03 2024 05:06:30 GMT+0000 (Coordinated Universal Time)

#aws #ec2 #volume
star

Mon Feb 14 2022 07:24:44 GMT+0000 (Coordinated Universal Time) https://medium.com/ruralscript/install-and-setuppostgresql-on-ubuntu-amazon-ec2-5d1af79b4fca

#ec2 #postgres #setup-postgres-on-ec2 #ubuntu
star

Thu Mar 18 2021 21:22:11 GMT+0000 (Coordinated Universal Time)

#aws #awscli #ec2 #describe-images

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension