resize2fs
Resize an ext2, ext3 or ext4 filesystem. Does not resize the underlying partition. The filesystem may have to be unmounted first, read the man page for more details. More information: <https://manned.org/resize2fs>.
Install
- All systems
-
curl cmd.cat/resize2fs.sh
- Debian
-
apt-get install e2fsprogs
- Ubuntu
-
apt-get install e2fsprogs
- Alpine
-
apk add e2fsprogs
- Arch Linux
-
pacman -S e2fsprogs
- Kali Linux
-
apt-get install e2fsprogs
- CentOS
-
yum install e2fsprogs
- Fedora
-
dnf install e2fsprogs
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install e2fsprogs
- OS X
-
brew install e2fsprogs
- Raspbian
-
apt-get install e2fsprogs
- Dockerfile
- dockerfile.run/resize2fs
- Docker
-
docker run cmd.cat/resize2fs resize2fs
powered by Commando
Resize an ext2, ext3 or ext4 filesystem. Does not resize the underlying partition. The filesystem may have to be unmounted first, read the man page for more details. More information: <https://manned.org/resize2fs>.
-
Automatically resize a filesystem:
resize2fs /dev/sdXN
-
Resize the filesystem to a size of 40G, displaying a progress bar:
resize2fs -p /dev/sdXN 40G
-
Shrink the filesystem to its minimum possible size:
resize2fs -M /dev/sdXN
© tl;dr; authors and contributors