1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 17:19:47 +01:00
tldr/pages/linux/resize2fs.md
2022-03-21 14:07:48 -03:00

17 lines
493 B
Markdown

# resize2fs
> Resize an ext2, ext3 or ext4 filesystem.
> Does not resize the underlying partition. The filesystem may have to be unmounted first, read the man page for more details.
> More information: <https://manned.org/resize2fs>.
- 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}}`