Resize an ext4 filesystem
Grow ext4 to fill the whole partition after you made the partition bigger.
resize2fs /dev/sdb1
- tool
- linux133 commands
- tags
- linuxfilesystemdisk
More linux commands
-
tune2fs -l /dev/sda1 | grep -E 'Block (count|size)|Mount count|Last mount'Show ext2/3/4 metadata: block count and size, mount count, last mount time.
-
du -h --max-depth=2 /var | sort -rh | head -20Show the 20 biggest directories in /var, up to 2 levels deep.
-
df -hT --type=ext4 --type=xfs --type=btrfsShow free space only for real filesystems (ext4, xfs, btrfs), without tmpfs and overlay.
-
fdisk /dev/sdbOpen an interactive editor for MBR or GPT partition tables.
-
parted /dev/sdb -- mklabel gpt mkpart primary ext4 1MiB 100%Create a new GPT table and one partition on the whole disk. The old partition table is lost.