fsadm(8) — Linux manual page


FSADM(8)                                                        FSADM(8)

NAME         top

       fsadm — utility to resize or check filesystem on a device

SYNOPSIS         top

       fsadm [options] check device
       fsadm [options] resize device [new_size]

DESCRIPTION         top

       fsadm utility checks or resizes the filesystem on a device (can
       be also dm-crypt encrypted device).  It tries to use the same API
       for ext2, ext3, ext4, ReiserFS and XFS filesystem.

OPTIONS         top

              Unmount ext2/ext3/ext4 filesystem before doing resize.

              Bypass some sanity checks.

              Display the help text.

              Resize also given lvm2 logical volume. More volume
              management functionality is provided with complementary
              lvresize(8) and the option -r|--resizefs.

              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

              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.

DIAGNOSTICS         top

       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).  A status code of 1 is used for other

EXAMPLES         top

       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


       TMPDIR The temporary directory name for mount points. Defaults to

              The device directory name.  Defaults to "/dev" and must be
              an absolute path.

SEE ALSO         top

       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),


COLOPHON         top

       This page is part of the lvm2 (Logical Volume Manager 2) project.
       Information about the project can be found at 
       ⟨http://www.sourceware.org/lvm2/⟩.  If you have a bug report for
       this manual page, see ⟨https://github.com/lvmteam/lvm2/issues⟩.
       This page was obtained from the project's upstream Git repository
       ⟨git://sourceware.org/git/lvm2.git⟩ on 2023-12-22.  (At that
       time, the date of the most recent commit that was found in the
       repository was 2023-12-06.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to

Red Hat, Inc      LVM TOOLS 2.03.24(2)-git (2023-11-21)         FSADM(8)

Pages that refer to this page: lvchange(8)lvconvert(8)lvcreate(8)lvdisplay(8)lvextend(8)lvm(8)lvmconfig(8)lvmdevices(8)lvmdiskscan(8)lvm-fullreport(8)lvm-lvpoll(8)lvreduce(8)lvremove(8)lvrename(8)lvresize(8)lvs(8)lvscan(8)pvchange(8)pvck(8)pvcreate(8)pvdisplay(8)pvmove(8)pvremove(8)pvresize(8)pvs(8)pvscan(8)vgcfgbackup(8)vgcfgrestore(8)vgchange(8)vgck(8)vgconvert(8)vgcreate(8)vgdisplay(8)vgexport(8)vgextend(8)vgimport(8)vgimportclone(8)vgimportdevices(8)vgmerge(8)vgmknodes(8)vgreduce(8)vgremove(8)vgrename(8)vgs(8)vgscan(8)vgsplit(8)