mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-16 15:49:14 +00:00
Update cheatsheets
This commit is contained in:
22
linux/resize2fs
Normal file
22
linux/resize2fs
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user