ramdisk
Syntax
ramdisk -c[-s size][-v volumelabel][-t type] [-m memorytype]
ramdisk -d[fs|all]
ramdisk -l [-sfo]
Description
Creates and deletes RAM disks.
Options
-c
Creates a RAM disk.
-s size
Specifies RAM disk size in MB. Valid values are from 4 MB to 512 MB.
-v volumelabel
Specifies a volume label name for the RAM disk. Valid values are up to 11 characters, without spaces or the following characters:
% ^ * + = [ ] | : ; \ < > ? /
.-t type
Specifies a file system type.
-m memorytype
Specifies a memory type.
-d
Deletes one or more RAM disks.
fs
Specifies the file system drive for RAM disk deletion.
all
Deletes all RAM disks.
-l
Lists all RAM disks.
-sfo
Displays information in standard formatted output.
Usage
You can use this command to provision temporary staging locations. It is beneficial in bare metal environments when media is not available for staging or scripting. The command supports up to 10 RAM disks of the following file types and sizes:
FAT16—(Default) 4 MB minimum size to 512 MB maximum size
FAT32—512 MB minimum size to 4096 MB maximum size
If you do not specify
-t
type
, a default FAT16 type file system is created.
Valid
memorytype
options are
BS_Data
(default) and
Reserved.
Examples
To create a 512 MB FAT16 RAM disk:
Shell> ramdisk -c -s 512
To create a 512 MB FAT16 RAM disk with a volume label of
RAMDISK1
:
Shell> ramdisk -c -s 512 -v RAMDISK1
To create a 1000 MB FAT32 RAM disk:
Shell> ramdisk -c -s 1000
To list mapping information for all RAM disks:
Shell> ramdisk -l
To delete RAM disk
fs0
:
Shell> ramdisk -d fs0