IBM Support

Create a RAMDISK filesystem

Question & Answer


Question

How do I create a ramdisk filesystem

Answer

• Create a RAM disk for instance of 1GB:
# mkramdisk 1G
/dev/rramdisk0

• Create a JFS2 file system on this RAM disk
# mkfs -V jfs2 /dev/ramdisk0
mkfs: destroy /dev/ramdisk0 (y)? y
File system created successfully.
1048340 kilobytes total disk space.
Device /dev/ramdisk0:
Standard empty file system
Size: 2096680 512-byte (DEVBLKSIZE) blocks• Create mount point

• Create the mount point:
# mkdir /ramdisk

• Mount RAM file system

# mount -V jfs2 -o log=NULL /dev/ramdisk0 /ramdisk

Thank you very much for taking the time to read through this guide.
I hope it has been not only helpful but an easy read. If you feel you have found any inconsistencies,
Please don’t hesitate to email me at ahdmashr@eg.ibm.com

Ahmed Mashhour

[{"Product":{"code":"SWG10","label":"AIX"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"}],"Version":"5.3;6.1;7.1","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

More support for:
AIX

Software version:
5.3, 6.1, 7.1

Operating system(s):
AIX

Document number:
630279

Modified date:
17 June 2018

UID

isg3T1024672

Manage My Notification Subscriptions