mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-24 00:51:54 +00:00
Update cheatsheets
This commit is contained in:
29
tldr/linux/fsadm
Normal file
29
tldr/linux/fsadm
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# fsadm
|
||||
|
||||
> Check or resize a filesystem on a device.
|
||||
> More information: <https://manned.org/fsadm>.
|
||||
|
||||
- Check a filesystem for errors:
|
||||
|
||||
`fsadm check {{/dev/vg_name/lv_name}}`
|
||||
|
||||
- Perform a dry-run resize to a specific size (no changes made):
|
||||
|
||||
`fsadm {{[-n|--dry-run]}} resize {{/dev/vg_name/lv_name}} {{10G}}`
|
||||
|
||||
- Grow a filesystem to fill the entire device (omit the size):
|
||||
|
||||
`fsadm resize {{/dev/vg_name/lv_name}}`
|
||||
|
||||
- Resize the filesystem and the underlying logical volume together:
|
||||
|
||||
`fsadm {{[-l|--lvresize]}} resize {{/dev/vg_name/lv_name}} {{100G}}`
|
||||
|
||||
- For ext2/3/4, unmount and resize offline:
|
||||
|
||||
`fsadm {{[-e|--ext-offline]}} resize {{/dev/vg_name/lv_name}} {{20G}}`
|
||||
Reference in New Issue
Block a user