{
    "mode": "man",
    "parameter": "fsadm",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/fsadm/8/json",
    "generated": "2026-09-09T19:00:54Z",
    "synopsis": "fsadm [options] check device\nfsadm [options] resize device [newsize]",
    "sections": {
        "NAME": {
            "content": "fsadm — utility to resize or check filesystem on a device\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "fsadm [options] check device\nfsadm [options] resize device [newsize]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "fsadm  utility  checks  or resizes the filesystem on a device (can be also dm-crypt encrypted\ndevice).  It tries to use the same API for ext2, ext3, ext4, ReiserFS and XFS filesystem.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-e --ext-offline",
                    "content": "Unmount ext2/ext3/ext4 filesystem before doing resize.\n",
                    "flag": "-e",
                    "long": "--ext-offline"
                },
                {
                    "name": "-f --force",
                    "content": "Bypass some sanity checks.\n",
                    "flag": "-f",
                    "long": "--force"
                },
                {
                    "name": "-h --help",
                    "content": "Display the help text.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-l --lvresize",
                    "content": "Resize also given lvm2 logical volume. More volume management  functionality  is  pro‐\nvided with complementary lvresize(8) and the option -r|--resizefs.\n",
                    "flag": "-l",
                    "long": "--lvresize"
                },
                {
                    "name": "-n --dry-run",
                    "content": "Print commands without running them.\n",
                    "flag": "-n",
                    "long": "--dry-run"
                },
                {
                    "name": "-v --verbose",
                    "content": "Be more verbose.\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-y --yes",
                    "content": "Answer \"yes\" at any prompts.\n",
                    "flag": "-y",
                    "long": "--yes"
                },
                {
                    "name": "-c --cryptresize",
                    "content": "Resize  dm-crypt mapping together with filesystem detected on the device. The dm-crypt\ndevice must be recognizable by cryptsetup(8).\n\nnewsize[B|K|M|G|T|P|E]\nAbsolute number of filesystem blocks to be in the filesystem, or an absolute size  us‐\ning  a  suffix  (in powers of 1024).  If newsize is not supplied, the whole device is\nused.\n",
                    "flag": "-c",
                    "long": "--cryptresize"
                }
            ]
        },
        "DIAGNOSTICS": {
            "content": "On successful completion, the status code is 0.  A status code of 2 indicates  the  operation\nwas  interrupted  by  the  user.   A status code of 3 indicates the requested check operation\ncould not be performed because the filesystem is mounted  and  does  not  support  an  online\nfsck(8).  A status code of 1 is used for other failures.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.  If /dev/vg/test con‐\ntains  ext2/ext3/ext4  filesystem it will be unmounted prior the resize.  All [y/n] questions\nwill be answered 'y'.\n\n# fsadm -e -y resize /dev/vg/test 1000M\n",
            "subsections": []
        },
        "ENVIRONMENT VARIABLES": {
            "content": "TMPDIR The temporary directory name for mount points. Defaults to \"/tmp\".\n\nDMDEVDIR\nThe device directory name.  Defaults to \"/dev\" and must be an absolute path.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "lvm(8), lvresize(8), lvm.conf(5),\n\nfsck(8), tune2fs(8), resize2fs(8),\n\nreiserfstune(8), resizereiserfs(8),\n\nxfsinfo(8), xfsgrowfs(8), xfscheck(8),\n\ncryptsetup(8)\n\nRed Hat, Inc                      LVM TOOLS 2.03.16(2) (2022-05-18)                         FSADM(8)",
            "subsections": []
        }
    },
    "summary": "fsadm — utility to resize or check filesystem on a device",
    "flags": [
        {
            "flag": "-e",
            "long": "--ext-offline",
            "arg": null,
            "description": "Unmount ext2/ext3/ext4 filesystem before doing resize."
        },
        {
            "flag": "-f",
            "long": "--force",
            "arg": null,
            "description": "Bypass some sanity checks."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Display the help text."
        },
        {
            "flag": "-l",
            "long": "--lvresize",
            "arg": null,
            "description": "Resize also given lvm2 logical volume. More volume management functionality is pro‐ vided with complementary lvresize(8) and the option -r|--resizefs."
        },
        {
            "flag": "-n",
            "long": "--dry-run",
            "arg": null,
            "description": "Print commands without running them."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "Be more verbose."
        },
        {
            "flag": "-y",
            "long": "--yes",
            "arg": null,
            "description": "Answer \"yes\" at any prompts."
        },
        {
            "flag": "-c",
            "long": "--cryptresize",
            "arg": null,
            "description": "Resize dm-crypt mapping together with filesystem detected on the device. The dm-crypt device must be recognizable by cryptsetup(8). newsize[B|K|M|G|T|P|E] Absolute number of filesystem blocks to be in the filesystem, or an absolute size us‐ ing a suffix (in powers of 1024). If newsize is not supplied, the whole device is used."
        }
    ],
    "examples": [
        "Resize the filesystem on logical volume /dev/vg/test to 1000 megabytes.  If /dev/vg/test con‐",
        "tains  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"
    ],
    "see_also": [
        {
            "name": "lvm",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/lvm/8/json"
        },
        {
            "name": "lvresize",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/lvresize/8/json"
        },
        {
            "name": "lvm.conf",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/lvm.conf/5/json"
        },
        {
            "name": "fsck",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/fsck/8/json"
        },
        {
            "name": "tune2fs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tune2fs/8/json"
        },
        {
            "name": "resize2fs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/resize2fs/8/json"
        },
        {
            "name": "reiserfstune",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/reiserfstune/8/json"
        },
        {
            "name": "resizereiserfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/resizereiserfs/8/json"
        },
        {
            "name": "xfsinfo",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/xfsinfo/8/json"
        },
        {
            "name": "xfsgrowfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/xfsgrowfs/8/json"
        },
        {
            "name": "xfscheck",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/xfscheck/8/json"
        },
        {
            "name": "cryptsetup",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/cryptsetup/8/json"
        }
    ]
}