man > fsadm(8)

```html

๐Ÿ“ NAME

fsadm โ€” utility to resize or check filesystem on a device

๐Ÿš€ Quick Reference

Use CaseCommandDescription
๐Ÿ” Check filesystemfsadm check /dev/sda1Check filesystem on device
๐Ÿ“ Resize filesystem to full devicefsadm resize /dev/sda1Resize to fill entire device
๐Ÿ“ Resize to specific sizefsadm resize /dev/sda1 100GResize to 100 GiB
๐Ÿ”’ Resize with dm-cryptfsadm -c resize /dev/mapper/cryptdev 50GResize filesystem and crypt mapping
๐Ÿงช Dry-run resizefsadm -n resize /dev/sda1Print commands without executing
๐Ÿ’ช Force resizefsadm -f resize /dev/sda1Bypass sanity checks
๐Ÿ”‡ Unmount ext* before resizefsadm -e -y resize /dev/vg/test 1000MUnmount and auto-answer yes

๐Ÿ“– SYNOPSIS

fsadm [options] check device
fsadm [options] resize device [new_size]

๐Ÿ“š DESCRIPTION

fsadm utility checks or resizes the filesystem on a device. It tries to use the same API for ext2, ext3, ext4, ReiserFS and XFS filesystem.

โš™๏ธ OPTIONS

๐Ÿ“Œ -e|--ext-offline

๐Ÿ”Œ Unmount ext2/ext3/ext4 filesystem before doing resize.

๐Ÿ“Œ -f|--force

๐Ÿ’ช Bypass some sanity checks.

๐Ÿ“Œ -h|--help

โ“ Display the help text.

๐Ÿ“Œ -n|--dry-run

๐Ÿงช Print commands without running them.

๐Ÿ“Œ -v|--verbose

๐Ÿ”Š Be more verbose.

๐Ÿ“Œ -y|--yes

โœ… Answer "yes" at any prompts.

๐Ÿ“Œ -c|--cryptresize

๐Ÿ”’ Resize dm-crypt mapping together with filesystem detected on the device. The dm-crypt device must be recognizable by cryptsetup(8).

๐Ÿ“Œ new_size[B|K|M|G|T|P|E]

๐Ÿ“ Absolute number of filesystem blocks to be in the filesystem, or an absolute size using a suffix (in powers of 1024). If new_size is not supplied, the whole device is used.

๐Ÿšช Exit Codes

๐Ÿงช EXAMPLES

Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes. If /dev/vg/test contains ext2/ext3/ext4 filesystem it will be unmounted prior the resize. All [y/n] questions will be answered 'y'.

fsadm -e -y resize /dev/vg/test 1000M

๐ŸŒ ENVIRONMENT VARIABLES

๐Ÿ“Œ TMPDIR

๐Ÿ“ The temporary directory name for mount points. Defaults to "/tmp".

๐Ÿ“Œ DM_DEV_DIR

๐Ÿ“ The device directory name. Defaults to "/dev" and must be an absolute path.

๐Ÿ“š SEE ALSO

lvm(8), lvresize(8), lvm.conf(5), fsck(8), tune2fs(8), resize2fs(8), reiserfstune(8), resize_reiserfs(8), xfs_info(8), xfs_growfs(8), xfs_check(8), cryptsetup(8)

```
fsadm(8)
๐Ÿ“ NAME ๐Ÿš€ Quick Reference ๐Ÿ“– SYNOPSIS ๐Ÿ“š DESCRIPTION โš™๏ธ OPTIONS
๐Ÿ“Œ -e|--ext-offline ๐Ÿ“Œ -f|--force ๐Ÿ“Œ -h|--help ๐Ÿ“Œ -n|--dry-run ๐Ÿ“Œ -v|--verbose ๐Ÿ“Œ -y|--yes ๐Ÿ“Œ -c|--cryptresize ๐Ÿ“Œ new_size[B|K|M|G|T|P|E]
๐Ÿšช Exit Codes ๐Ÿงช EXAMPLES ๐ŸŒ ENVIRONMENT VARIABLES
๐Ÿ“Œ TMPDIR ๐Ÿ“Œ DM_DEV_DIR
๐Ÿ“š SEE ALSO

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-11 22:48 @216.73.217.151
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!