Resize a linux file system with resize2fs

On cloud servers, once you upgrade disk, you will need to resize the filesystem. On Linux ext4 file system, you can do this with command resize2fs.

To resize filesystem on /dev/sdb, run

Here the full disk is used as file system with NO partition. If you have partion, you need to specify partition number like /dev/sdb1

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *