2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-17 09:25:32 +00:00
cheat.sheets/sheets/resize2fs
2017-12-28 16:15:42 +00:00

12 lines
258 B
Plaintext

# resize2fs
# ext2/ext3/ext4 file system resizer
# resize filesystem up to the block device size
# make e2fsck /dev/xvdb1 before
# filesystem must be not mounted for ext2
resize2fs /dev/xvdb1
# shrink filesystem (20G is new size)
resize2fs /dev/xvdb1 20G