# fsadm(8) - man - phpMan

[FSADM(8)](https://www.chedong.com/phpMan.php/man/FSADM/8/markdown)                                                                                    [FSADM(8)](https://www.chedong.com/phpMan.php/man/FSADM/8/markdown)



## NAME
       fsadm — utility to resize or check filesystem on a device

## 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)](https://www.chedong.com/phpMan.php/man/cryptsetup/8/markdown).

       _new_size_[**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 new_size is not supplied, the  whole  device  is
              used.

## DIAGNOSTICS
       On  successful  completion, the status code is 0.  A status code of 2 indicates the operation
       was interrupted by the user.  A status code of 3  indicates  the  requested  check  operation
       could  not  be  performed  because  the  filesystem is mounted and does not support an online
       [**fsck**(8)](https://www.chedong.com/phpMan.php/man/fsck/8/markdown).  A status code of 1 is used for other failures.

## 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

## 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)](https://www.chedong.com/phpMan.php/man/lvm/8/markdown),  [**lvresize**(8)](https://www.chedong.com/phpMan.php/man/lvresize/8/markdown),  [**lvm.conf**(5)](https://www.chedong.com/phpMan.php/man/lvm.conf/5/markdown),  [**fsck**(8)](https://www.chedong.com/phpMan.php/man/fsck/8/markdown),  [**tune2fs**(8)](https://www.chedong.com/phpMan.php/man/tune2fs/8/markdown),   [**resize2fs**(8)](https://www.chedong.com/phpMan.php/man/resize2fs/8/markdown),   [**reiserfstune**(8)](https://www.chedong.com/phpMan.php/man/reiserfstune/8/markdown),
       **resize**___**[reiserfs**(8)](https://www.chedong.com/phpMan.php/man/reiserfs/8/markdown), **xfs**___**[info**(8)](https://www.chedong.com/phpMan.php/man/info/8/markdown), **xfs**___**[growfs**(8)](https://www.chedong.com/phpMan.php/man/growfs/8/markdown), **xfs**___**[check**(8)](https://www.chedong.com/phpMan.php/man/check/8/markdown), [**cryptsetup**(8)](https://www.chedong.com/phpMan.php/man/cryptsetup/8/markdown)



Red Hat, Inc                      LVM TOOLS [2.03.11(2)](https://www.chedong.com/phpMan.php/man/2.03.11/2/markdown) (2021-01-08)                         [FSADM(8)](https://www.chedong.com/phpMan.php/man/FSADM/8/markdown)
