fsadm - Linux


fsadm is a command-line tool used for managing and configuring file systems in a Linux environment. It provides a comprehensive set of options for creating, mounting, unmounting, resizing, and troubleshooting file systems.


fsadm [-A | -d | -m | -r | -s] <file_system>


  • -A: Allocate space for the file system.
  • -d: Delete the file system.
  • -m: Mount the file system.
  • -r: Resize the file system.
  • -s: Display file system status.


Creating a File System

fsadm -A /dev/sdb1

Mounting a File System

fsadm -m /dev/sdb1 /mnt/sdb1

Unmounting a File System

fsadm -d /mnt/sdb1

Resizing a File System

fsadm -r -s 25G /dev/sdb1

Displaying File System Status

fsadm -s /dev/sdb1

Common Issues

Insufficient Space

If you encounter an "Insufficient space" error while creating or resizing a file system, verify that the underlying storage device has enough free space.

Invalid File System Type

Ensure that the specified file system type is supported by your operating system and storage device.

Incorrect Input

Double-check the syntax of your command and ensure that the specified file system exists.


fsadm can be integrated with other Linux commands to automate file system management tasks. Examples include:

  • Create a custom script to automatically create and mount file systems at boot time.
  • Pipe the output of fsadm -s to other commands for further analysis.

Related Commands

  • mkfs: Create a file system on a raw device.
  • mount: Mount a file system to a mount point.
  • umount: Unmount a file system from a mount point.
  • resize2fs: Resize an existing ext2/ext3/ext4 file system.