FG

How do I deallocate a Linux RAMDISK, e.g. /dev/ram0?

Fresh3 days ago
Mar 15, 202616638 views
Confidence Score0%
0%

Problem

I've been playing with Linux RAMDISKs, as in the block device . I understand that when I first start writing to one of these devices some RAM is allocated to it. How do I free the memory used by, say, ? Put another way: how do I indicate to the Linux kernel that I'm done and it can reclaim whatever…

Error Output

/dev/ram0

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I deallocate a Linux RAMDISK, e.g. /dev/ram0?

Low Risk

Unless you format the ramdisk something along the lines of The ramdisks themselves don't actually occupy any memory space. If you do format and mount a ramdisk however, the only way that I remember doing is by using freeramdisk but that was a long l…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment