# systemd-growfs-root.service - Creating and growing file systems on demand - man(8) - [phpMan]

_SYSTEMD-MAKEFS@[.SERVICE_(8)](https://www.chedong.com/phpMan.php/man/.SERVICE/8/markdown)             systemd-makefs@.service            _SYSTEMD-MAKEFS@[.SERVICE_(8)](https://www.chedong.com/phpMan.php/man/.SERVICE/8/markdown)

## NAME
       systemd-makefs@.service, systemd-mkswap@.service, systemd-growfs@.service, systemd-growfs-
       root.service, systemd-makefs, systemd-growfs - Creating and growing file systems on demand

## SYNOPSIS
       <systemd-makefs@_device_.service>

       <systemd-mkswap@_device_.service>

       <systemd-growfs@_mountpoint_.service>

       systemd-growfs-root.service

       /usr/lib/systemd/systemd-makefs

       /usr/lib/systemd/systemd-growfs

## DESCRIPTION
       systemd-makefs@.service, systemd-mkswap@.service, systemd-growfs@.service, and
       systemd-growfs-root.service are used to implement the **x-systemd.makefs **and **x-systemd.growfs**
       options in [**fstab**(5)](https://www.chedong.com/phpMan.php/man/fstab/5/markdown), see [**systemd.mount**(5)](https://www.chedong.com/phpMan.php/man/systemd.mount/5/markdown). They are instantiated for each device for which
       the file system or swap structure needs to be initialized, and for each mount point where the
       file system needs to be grown.

       These services are started at boot, either right before or right after the mount point or
       swap device are used.

       systemd-makefs knows very little about specific file systems and swap devices, and after
       checking that the block device does not already contain a file system or other content, it
       will execute binaries specific to each filesystem type (/sbin/mkfs._type_ or /sbin/mkswap). For
       certain file system types (currently ext2/ext3/[**ext4**(5)](https://www.chedong.com/phpMan.php/man/ext4/5/markdown), [**btrfs**(5)](https://www.chedong.com/phpMan.php/man/btrfs/5/markdown), [**xfs**(5)](https://www.chedong.com/phpMan.php/man/xfs/5/markdown), f2fs, vfat) and for
       swap devices, it will configure reasonable defaults and set the file system label and UUID
       based on the device name.

       systemd-growfs knows very little about specific file systems and swap devices, and will
       instruct the kernel to grow the mounted filesystem to full size of the underlying block
       device. Nevertheless, it needs to know the [**ioctl**(2)](https://www.chedong.com/phpMan.php/man/ioctl/2/markdown) number specific to each file system, so
       only certain types are supported. Currently: [**ext4**(5)](https://www.chedong.com/phpMan.php/man/ext4/5/markdown), [**btrfs**(5)](https://www.chedong.com/phpMan.php/man/btrfs/5/markdown), [**xfs**(5)](https://www.chedong.com/phpMan.php/man/xfs/5/markdown), and dm-crypt
       partitions (see [**cryptsetup**(8)](https://www.chedong.com/phpMan.php/man/cryptsetup/8/markdown)).

       If the creation of a file system or swap device fails, the mount point or swap is failed too.
       If the growing of a file system fails, a warning is emitted.

## SEE ALSO
       [**systemd**(1)](https://www.chedong.com/phpMan.php/man/systemd/1/markdown), [**systemd.mount**(8)](https://www.chedong.com/phpMan.php/man/systemd.mount/8/markdown), [**systemd-fstab-generator**(8)](https://www.chedong.com/phpMan.php/man/systemd-fstab-generator/8/markdown), [**systemd-repart**(8)](https://www.chedong.com/phpMan.php/man/systemd-repart/8/markdown), [**mkfs.btrfs**(8)](https://www.chedong.com/phpMan.php/man/mkfs.btrfs/8/markdown),
       [**mkfs.cramfs**(8)](https://www.chedong.com/phpMan.php/man/mkfs.cramfs/8/markdown), [**mkfs.ext4**(8)](https://www.chedong.com/phpMan.php/man/mkfs.ext4/8/markdown), [**mkfs.fat**(8)](https://www.chedong.com/phpMan.php/man/mkfs.fat/8/markdown), [**mkfs.hfsplus**(8)](https://www.chedong.com/phpMan.php/man/mkfs.hfsplus/8/markdown), [**mkfs.minix**(8)](https://www.chedong.com/phpMan.php/man/mkfs.minix/8/markdown), [**mkfs.ntfs**(8)](https://www.chedong.com/phpMan.php/man/mkfs.ntfs/8/markdown),
       [**mkfs.xfs**(8)](https://www.chedong.com/phpMan.php/man/mkfs.xfs/8/markdown)

systemd 255                                                               _SYSTEMD-MAKEFS@[.SERVICE_(8)](https://www.chedong.com/phpMan.php/man/.SERVICE/8/markdown)
