Removes a file system.
The rmfs command removes a file system. If the file system is a journaled file system (JFS or JFS2), 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 or JFS2 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 File Systems application in Web-based System Manager (wsm) to change file system characteristics.
You could also use the System Management Interface Tool (SMIT) smit rmfs fast path to run this command.
Item | Description |
---|---|
-r | Removes the mount point of the file system. |
-i | Displays warning and prompts the user before removing file system. |
Item | Description |
---|---|
0 | File system is successfully removed. |
>0 | File system is not successfully removed. |
Access Control: Only the root user or a member of the system group can run this command.
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
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.
Item | Description |
---|---|
/etc/rmfs | Contains the rmfs command. |
/etc/filesystems | Lists the known file systems and defines their characteristics. |