{
    "mode": "man",
    "parameter": "systemd-growfs",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/systemd-growfs/8/json",
    "generated": "2026-10-04T14:02:12Z",
    "synopsis": "systemd-makefs@device.service\nsystemd-mkswap@device.service\nsystemd-growfs@mountpoint.service\nsystemd-growfs-root.service\n/usr/lib/systemd/systemd-makefs\n/usr/lib/systemd/systemd-growfs",
    "sections": {
        "NAME": {
            "content": "systemd-makefs@.service, systemd-mkswap@.service, systemd-growfs@.service, systemd-growfs-\nroot.service, systemd-makefs, systemd-growfs - Creating and growing file systems on demand\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "systemd-makefs@device.service\n\nsystemd-mkswap@device.service\n\nsystemd-growfs@mountpoint.service\n\nsystemd-growfs-root.service\n\n/usr/lib/systemd/systemd-makefs\n\n/usr/lib/systemd/systemd-growfs\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "systemd-makefs@.service, systemd-mkswap@.service, systemd-growfs@.service, and\nsystemd-growfs-root.service are used to implement the x-systemd.makefs and x-systemd.growfs\noptions in fstab(5), see systemd.mount(5). They are instantiated for each device for which\nthe file system or swap structure needs to be initialized, and for each mount point where the\nfile system needs to be grown.\n\nThese services are started at boot, either right before or right after the mount point or\nswap device are used.\n\nsystemd-makefs knows very little about specific file systems and swap devices, and after\nchecking that the block device does not already contain a file system or other content, it\nwill execute binaries specific to each filesystem type (/sbin/mkfs.type or /sbin/mkswap). For\ncertain file system types (currently ext2/ext3/ext4(5), btrfs(5), xfs(5), f2fs, vfat) and for\nswap devices, it will configure reasonable defaults and set the file system label and UUID\nbased on the device name.\n\nsystemd-growfs knows very little about specific file systems and swap devices, and will\ninstruct the kernel to grow the mounted filesystem to full size of the underlying block\ndevice. Nevertheless, it needs to know the ioctl(2) number specific to each file system, so\nonly certain types are supported. Currently: ext4(5), btrfs(5), xfs(5), and dm-crypt\npartitions (see cryptsetup(8)).\n\nIf the creation of a file system or swap device fails, the mount point or swap is failed too.\nIf the growing of a file system fails, a warning is emitted.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), systemd.mount(8), systemd-fstab-generator(8), systemd-repart(8), mkfs.btrfs(8),\nmkfs.cramfs(8), mkfs.ext4(8), mkfs.fat(8), mkfs.hfsplus(8), mkfs.minix(8), mkfs.ntfs(8),\nmkfs.xfs(8)\n\nsystemd 255                                                               SYSTEMD-MAKEFS@.SERVICE(8)",
            "subsections": []
        }
    },
    "summary": "systemd-makefs@.service, systemd-mkswap@.service, systemd-growfs@.service, systemd-growfs- root.service, systemd-makefs, systemd-growfs - Creating and growing file systems on demand",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "systemd.mount",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/systemd.mount/8/json"
        },
        {
            "name": "systemd-fstab-generator",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/systemd-fstab-generator/8/json"
        },
        {
            "name": "systemd-repart",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/systemd-repart/8/json"
        },
        {
            "name": "mkfs.btrfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.btrfs/8/json"
        },
        {
            "name": "mkfs.cramfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.cramfs/8/json"
        },
        {
            "name": "mkfs.ext4",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.ext4/8/json"
        },
        {
            "name": "mkfs.fat",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.fat/8/json"
        },
        {
            "name": "mkfs.hfsplus",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.hfsplus/8/json"
        },
        {
            "name": "mkfs.minix",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.minix/8/json"
        },
        {
            "name": "mkfs.ntfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.ntfs/8/json"
        },
        {
            "name": "mkfs.xfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs.xfs/8/json"
        },
        {
            "name": ".SERVICE",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/.SERVICE/8/json"
        }
    ]
}