rmramdisk Command
Purpose
Removes RAM disks created by the mkramdisk command.
Syntax
rmramdisk ram_disk_name
Description
The rmramdisk command removes the specified RAM disk and the device special files that were created for that RAM disk. RAM disks are also removed when the system is rebooted. Device special files can only be removed via thermramdisk command.
Parameters
Item | Description |
---|---|
ram_disk_name | Name of the specific RAM disk to be removed from memory. If not specified, an error is returned. The names of the RAM disks are in the form of rramdiskx where x is the logical RAM disk number (0 through 63). |
Exit Status
This command returns the following
exit values:
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
Security
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.
Examples
# ls -l /dev/*ramdisk2
brw------- 1 root system 38, 0 Aug 01 05:52 /dev/ramdisk2
crw------- 1 root system 38, 0 Aug 01 05:52 /dev/rramdisk2
To remove the ramdisk2, enter:
# rmramdisk ramdisk2
# ls -l /dev/*ramdisk2
ls: 0653-341 The file /dev/*ramdisk2 does not exist.
Files
Item | Description |
---|---|
/usr/sbin/rmramdisk | Contains the rmramdisk command. |