1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

resize2fs: add page (#4296)

This commit is contained in:
Samuel Woon 2020-09-04 17:51:38 -05:00 committed by GitHub
parent aae1f1b6ce
commit db1cf06b84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

16
pages/linux/resize2fs.md Normal file
View file

@ -0,0 +1,16 @@
# resize2fs
> Resize an ext2, ext3 or ext4 filesystem.
> Does not resize the underlying partition, and the filesystem must be unmounted.
- Automatically resize a filesystem:
`resize2fs {{/dev/sdXN}}`
- Resize the filesystem to a size of 40G, displaying a progress bar:
`resize2fs -p {{/dev/sdXN}} {{40G}}`
- Shrink the filesystem to its minimum possible size:
`resize2fs -M {{/dev/sdXN}}`