[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

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 created for that RAM disk. RAM disks are also removed when the system is rebooted.

Parameters

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:

0 Successful completion.
>0 An error occurred.

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

/usr/sbin/rmramdisk Contains the rmramdisk command.

Related Information

The mkramdisk command, and ls command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]