As my personal website at
box.buoyantair.co grows, I am trying to keep up with the amount of data that is being uploaded by me or the applications that generate the data (TTRSS for example). This is the process I use to resize my filesystem once I upgrade the volume size in Hetzner. I hope you like this little code snippet!
df -aThto list all the mounted file systems, and find the filesystem you want to resize.
- Unmount the filesystem you want to resize.
sudo umount /dev/sdb
e2fschkto check the filesystem.
sudo e2fsck -f /dev/sdb
resize2fsto resize the filesystem.
sudo resize2fs /dev/sdb
- Mount the filesystem again.
sudo mount /dev/sdb /mnt/
- Verify that the filesystem is resized.