Skip to main content

Possible to set size of ram disk? [Resolved]

When I do

yum install MAKEDEV
MAKEDEV ram
fdisk -l /dev/ram

I get the that it is 16MB.

I am using MAKEDEV to get a block-device instead of tmpfs.

Question

Is it possible to set it to e.g. 1GB?


Question Credit: Sandra
Question Reference
Asked July 20, 2019
Posted Under: Network
37 views
4 Answers

mkfs -q /dev/ram1 X where X is the size in KB. You'd want 1048576 for 1GB.


credit: Chris S
Answered July 20, 2019

It looks like you're more looking for something like mount -t tmpfs -o size=1024m tmpfs mount_directory


credit: Heis Spiter
Answered July 20, 2019

How can you make a 64gb ram disk . I have samsung evo 860 pro ssd with 540Mbps write and read speed.

How to i create a ram disk with more then 2 gb using the same commands as above


credit: Raghav
Answered July 20, 2019
Your Answer
D:\Adnan\Candoerz\CandoProject\vQA