[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Commands Reference, Volume 4

rmfs Command

Purpose

Removes a file system.

Syntax

rmfs [ -r ] FileSystem

Description

The rmfs command removes a file system. If the file system is a journaled file system (JFS), the rmfs command removes both the logical volume on which the file system resides and the associated stanza in the /etc/filesystems file. If the file system is not a JFS file system, the command removes only the associated stanza in the /etc/filesystems file. The FileSystem parameter specifies the file system to be removed.

You can use the Web-based System Manager File Systems application (wsm fs fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit rmfs fast path to run this command.

Flags

-r Removes the mount point of the file system.

Examples

To remove the /test file system, enter:

rmfs /test

This removes the /test file system, its entry in the /etc/filesystems file, and the underlying logical volume.

Files

/etc/rmfs Contains the rmfs command.
/etc/filesystems Lists the known file systems and defines their characteristics.

Related Information

The chfs command, crfs command, lsfs command, mkfs command, rmlv command.

File Systems Overview for System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.

Setting up and running Web-based System Manager in AIX Version 4.3 System Management Guide: Operating System and Devices.

System Management Interface Tool (SMIT) Overview in AIX Version 4.3 System Management Guide: Operating System and Devices.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]