Removes RAM disks created by the mkramdisk command.
rmramdisk ram_disk_name
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.
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). |
Item | Description |
---|---|
0 | Successful completion. |
>0 | An error occurred. |
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.
# 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
# rmramdisk ramdisk2
# ls -l /dev/*ramdisk2
ls: 0653-341 The file /dev/*ramdisk2 does not exist.
Item | Description |
---|---|
/usr/sbin/rmramdisk | Contains the rmramdisk command. |