RAMDisk v2 - Store files in memory with al...
Mr. Bateman 22 Jun 2014
RAMDisk v2
Warning: This is not a replacement for persistent storage, so when you turn off / crash the computer, any loaded images will be removed without saving!
This is a simple program to use, so I'll just get to the good bits:
Usage:
ramdisk
(or any other arguments that are invalid)
This will display any loaded images, and display the proper usage.
ramdisk create <drive name>
This will load a blank image, with the name of <drive name>, which is used to access it.
ramdisk load <filename>
If <filename> points to a file:
This will load an image saved at <filename> by ramdisk save.
If <filename> points to a directory:
RAMDisk will create and load a new image with the name of the directory, and copy the contents of the directory to the new image.
ramdisk unload <drive name>
This will unload any image with the name of <drive name> that is currently loaded.
ramdisk save <drive name> <filename>
This will save the entire contents of the loaded drive with the name of <drive name> to a file specified at <filename>.
This will not save the files to an individually accessible format, instead it saves an archive.
Link: http://pastebin.com/izMaKme5
pastebin get izMaKme5 ramdisk
This requires my Virtual Filesystem API which should be automatically downloaded by RAMDisk itself, but if it does not, then use this:
pastebin get ZT1euz3x vfs
Please post any suggestions or bug reports!
Edited by ROFLCopter64bit, 14 August 2014 - 04:17 AM.
TheOddByte 26 Jun 2014
Wow this seems really cool, Actually had an idea about creating something like this once( but I was too lazy xP )
I will test this tomorrow and give you more feedback, gotta get some sleep you know
I will test this tomorrow and give you more feedback, gotta get some sleep you know
oeed 27 Jun 2014
Yea, this does look pretty sweet.
Does anyone know what the memory limit for CC is?
In my OneOS rewrite I've been thinking that I might be starting to push it.
Edited by oeed, 27 June 2014 - 12:07 AM.
Does anyone know what the memory limit for CC is?
In my OneOS rewrite I've been thinking that I might be starting to push it.
Edited by oeed, 27 June 2014 - 12:07 AM.
Mr. Bateman 27 Jun 2014
theoriginalbit 27 Jun 2014
i would actually hazard a guess and say that the limit is whatever the limit of Minecraft is set to, so if you use too much Minecraft could start to give you memory warnings.
oeed 27 Jun 2014
Well, if that's the case, as it probably is now I think about it, then loading a few hundred kilobytes of various APIs won't be the end of the world.
Suzuha 27 Jun 2014
Couldn't this also be used to make a Temporary Files directory that automatically flushes when people reboot?
Could be useful for implementation in an OS that makes a bunch of temporary files.
Could be useful for implementation in an OS that makes a bunch of temporary files.
Geforce Fan 02 Jul 2014
oooo I should make a ramdisk and put all my important files on it then delete the files on the normal disk! that sounds like a great idea!!! *griefer comes in and shuts off computer* FUUUUUUUUU!!!!!
But anyhow yeah, great for temporary storage.
But anyhow yeah, great for temporary storage.
Sir_Mr_Bman 13 Jul 2014
Oh wow! This looks great!
A way to store things forever using this system would be good though...
Maybe have it save the contents of the files into a sort of /tmp directory when the computer shuts off, and then when it turns back on save all the files back to ramdisk... hmm....
A way to store things forever using this system would be good though...
Maybe have it save the contents of the files into a sort of /tmp directory when the computer shuts off, and then when it turns back on save all the files back to ramdisk... hmm....
Mr. Bateman 13 Jul 2014
Sir_Mr_Bman, on 13 July 2014 - 11:06 AM, said:
Maybe have it save the contents of the files into a sort of /tmp directory when the computer shuts off, and then when it turns back on save all the files back to ramdisk... hmm....
On that note, my virtual filesystem API needs an update, and I'll probably implement something like autosaving the image files.
wilcomega 15 Jul 2014
i just realized you made a virtual folder. could you please make this work with rednet so you can have an image that is an actual folder on another server, and will syncronize and stuff
oh and in what emulator did you make this screenshot?
Edited by wilcomega, 15 July 2014 - 09:26 AM.
oh and in what emulator did you make this screenshot?
Edited by wilcomega, 15 July 2014 - 09:26 AM.
Mr. Bateman 15 Jul 2014
wilcomega, on 15 July 2014 - 09:25 AM, said:
i just realized you made a virtual folder. could you please make this work with rednet so you can have an image that is an actual folder on another server, and will syncronize and stuff
oh and in what emulator did you make this screenshot?
oh and in what emulator did you make this screenshot?
CCEmuRedux
logsys 15 Jul 2014
Finnaly, thanks for doing this, I was searching and trying to make this for 6 months now...
logsys 15 Jul 2014
Sugestion: Read-only drives... Also, run from website.. So, just like OneOS(I think it needs more space), it could run the ramdisk from the web and the OS would use those files within the read-only drive
Mr. Bateman 15 Jul 2014
logsys 15 Jul 2014
Do you see pastebin run <blahblahblah>?? doing like ramdisk load <link> would create a ramdisk without having to save a current ramdisk
oeed 15 Jul 2014
logsys, on 15 July 2014 - 11:02 AM, said:
Sugestion: Read-only drives... Also, run from website.. So, just like OneOS(I think it needs more space), it could run the ramdisk from the web and the OS would use those files within the read-only drive
That'd actually be pretty cool. Although downloading 400-600KB could be rather slow...
Mr. Bateman 15 Jul 2014
logsys, on 15 July 2014 - 11:21 AM, said:
Do you see pastebin run <blahblahblah>?? doing like ramdisk load <link> would create a ramdisk without having to save a current ramdisk
oeed, on 15 July 2014 - 11:31 AM, said:
That'd actually be pretty cool. Although downloading 400-600KB could be rather slow...
oeed 15 Jul 2014
ROFLCopter64bit, on 15 July 2014 - 11:41 AM, said:
oeed, on 15 July 2014 - 11:31 AM, said:
That'd actually be pretty cool. Although downloading 400-600KB could be rather slow...
Well, in terms of 'streaming' a program, you'd have to wait until all chunks were downloaded, otherwise you'd have files that don't exist. RAID in CC sounds pretty awesome, it would allow data centres for Firefolf/similar services.
Mr. Bateman 15 Jul 2014
oeed, on 15 July 2014 - 12:01 PM, said:
RAID in CC sounds pretty awesome, it would allow data centres for Firefolf/similar services.