Sfoglia il codice sorgente

resize2fs: add page (#4296)

Samuel Woon 4 anni fa
parent
commit
db1cf06b84
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. 16 0
      pages/linux/resize2fs.md

+ 16 - 0
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}}`