• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

ext4

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

XFS vs Ext4 Commands

April 30, 2019

File system command differences between ext3 and xfs.

Taskext4xfs
Creating a file systemmkfs.ext4mkfs.xfs
Mounting a file systemmountmount
Resizing a file systemresize2fsxfs_growfs
Repairing a file systeme2fsckxfs_repair
Changing the label on a file systeme2labelxfs_admin -L
Reporting on disk space and file usagequota quota
Debugging a file systemdebugfsxfs_db
Saving critical file system metadata to a filee2imagexfs_metadump

Filed Under: Linux Tagged With: ext4, file system, xfs

  • Home
  • About
  • Archives

Copyright © 2023