mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-17 09:25:32 +00:00
12 lines
258 B
Plaintext
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
|