fsadm โ utility to resize or check filesystem on a device
| Use Case | Command | Description |
|---|---|---|
| ๐ Check filesystem | fsadm check /dev/sda1 | Check filesystem on device |
| ๐ Resize filesystem to full device | fsadm resize /dev/sda1 | Resize to fill entire device |
| ๐ Resize to specific size | fsadm resize /dev/sda1 100G | Resize to 100 GiB |
| ๐ Resize with dm-crypt | fsadm -c resize /dev/mapper/cryptdev 50G | Resize filesystem and crypt mapping |
| ๐งช Dry-run resize | fsadm -n resize /dev/sda1 | Print commands without executing |
| ๐ช Force resize | fsadm -f resize /dev/sda1 | Bypass sanity checks |
| ๐ Unmount ext* before resize | fsadm -e -y resize /dev/vg/test 1000M | Unmount and auto-answer yes |
fsadm [options] check device
fsadm [options] resize device [new_size]
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.
๐ Unmount ext2/ext3/ext4 filesystem before doing resize.
๐ช Bypass some sanity checks.
โ Display the help text.
๐งช Print commands without running them.
๐ Be more verbose.
โ Answer "yes" at any prompts.
๐ Resize dm-crypt mapping together with filesystem detected on the device. The dm-crypt device must be recognizable by cryptsetup(8).
๐ 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.
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
๐ The temporary directory name for mount points. Defaults to "/tmp".
๐ The device directory name. Defaults to "/dev" and must be an absolute path.
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)
```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)