From db1cf06b84d9317889c61c9dcf86b92c6d9098c6 Mon Sep 17 00:00:00 2001 From: Samuel Woon Date: Fri, 4 Sep 2020 17:51:38 -0500 Subject: [PATCH] resize2fs: add page (#4296) --- pages/linux/resize2fs.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/resize2fs.md diff --git a/pages/linux/resize2fs.md b/pages/linux/resize2fs.md new file mode 100644 index 0000000000..aa1757471a --- /dev/null +++ b/pages/linux/resize2fs.md @@ -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}}`