Linux Commands Helper

💬 Your AI-powered Linux assistant

resize2fs Command - Resize ext2/ext3/ext4 Filesystems

The resize2fs command is used to resize ext2, ext3, or ext4 filesystems without data loss.

Syntax

resize2fs [options] device [size]

Examples

resize2fs /dev/sda1

Resize the filesystem on /dev/sda1 to its maximum size.

resize2fs /dev/sda1 10G

Resize the filesystem on /dev/sda1 to 10GB.

Notes

  • resize2fs can be used on mounted filesystems if the kernel supports online resizing.
  • For shrinking a filesystem, it is recommended to unmount it first.
  • Always ensure you have a backup before resizing filesystems.

© 2025 Linux Commands Helper. All rights reserved.

This project is under construction. Feedback and contributions are welcome.

Fazier badgeFeatured on Startup Fame