• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Archives for July 2022

Check Mounted File Systems

July 28, 2022

Check mounted file systems using df. Displaying different options.

df 
df -h
df -Th

df df -h df -Th

To get rid tmpfs, run this.

df -Th| grep -Ev '(udev|tmpfs)'

df -Th| grep -Ev '(udev|tmpfs)'

Filed Under: Linux Tagged With: check, df, file, mounts, systems, tmpfs

GCP Extend ext4 Boot Volume

July 28, 2022

Here’s how to extend an ext4 boot volume.

gcloud compute disks resize DISK_NAME --size DISK_SIZE --zone ZONE --project PROJECTID

gcloud compute disks resize DISK_NAME --size DISK_SIZE --zone ZONE --project PROJECTID

Resize the file system. Example / is on sda3.

growpart /dev/sda 3
resize2fs /dev/sda3

growpart /dev/sda 3 resize2fs /dev/sda3

Filed Under: Cloud, Linux Tagged With: boot, ext4, extend, gcloud, gcp, growpart, resize2fs, volume

  • Home
  • About
  • Archives

Copyright © 2023