Loading RAM As Disk Space

Asked by zzzxxx

Hello, I've always wanted to have a small section of disk space i could set off to the side, save temporary files and stuff and then reboot and have it all gone.
RAM! yay, i was wondering how i can mount a section of my ram as (temp)disk space.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
Best Bhavani Shankar (bhavi) said :
#1

Hello Brian..

This article has nice info about using ram as an additional swap partition,

http://kerneltrap.org/node/3660

Hope it helps

Bhavani Shankar.

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#2

wooooh....i started following the instructions, and checked out what i had completed at step 4, i found that i had made a nice folder with 60mb of (ram) space...but i figured i should finish the instuctions so that nothing goes wrong maybe i would reboot and the computer would be having problems so i decided to play it safe. i finish all the instructions, and now i have swap FOR ram...from the ram :P lol oooops

so i just backtraced my steps, swapped off the "sw" file, and deleted the "sw" file. my question now is, when i finally get tired of this new invention, how do i remove it... is there a command to get the ram swap freed up? or do i just reboot and nothing its all gone?

oh and would you by any chance know how to configure telnetd? i cant find its configuration file

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#3

never mind, i just unmount it, and reboot and it wipes everything off the ram (yay isnt that the purpose of ram? :P)
beyond that all i have to do it delete the empty folder that was the mounting point

Revision history for this message
zzzxxx (michalski-deactivatedaccount-deactivatedaccount) said :
#4

Thanks Bhavani Shankar, that solved my question.