0

Currently I create a ramdisk in Windows7 by using this RamDisk software by DataRam that has the ability to save RamDisk virtual disk image on shutdown and restore on Windows startup and sync data to hard disk automatically at specified time intervals.

I am looking for an application with similar functionality in Ubuntu

1 Answer 1

3

It is built into Ubuntu. For a RAM disk, do this:

sudo mkdir /mnt/ramdisk
sudo chmod 777 /mnt/ramdisk
sudo mount -t tmpfs -o size=256M tmpfs /mnt/ramdisk/

This will give you a 256M RAM disk mounted at /mnt/ramdisk.

5
  • 2
    (...) has the ability to save RamDisk virtual disk image on shutdown and restore on windows startup and sync data to hard disk automatically on specified time interval (...) Jun 19, 2014 at 10:33
  • @BrunoPereira That requirement was added after my answer...
    – Jos
    Jun 19, 2014 at 10:35
  • Mhhh, thats the whole point of the product, so its not a requirement its the whole base of it, no? :) Jun 19, 2014 at 10:37
  • @Jos Anyhow, thanks for the answer, no issues. If you know how to save data to disk periodically and save & auto mount data on shutdown, startup. Please update your answer.
    – Sam
    Jun 19, 2014 at 10:41
  • 2
    @Sampath For a periodical save, have cron execute an rsync command from the ramdisk to somewhere else. Write init.d scripts or Upstart scripts to backup (at shutdown) and restore (at startup) the data, again using a single rsync command. I think that covers the whole functionality of the product.
    – Jos
    Jun 19, 2014 at 10:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .