Create a RAMDisk to hold your qemu OS (Ubuntu)

Do you:

Have an over efficient operating system?

Have 2Gb of RAM but your OS uses a mere 512Mb

Why not put that wasted RAM to use & build a shit fast RAMDisk & run another operating system in that

Make the RAMDisk Bigger

Ubuntu has already on boot created RAMDisks for you by default but they are a mere 4Mb or something.

Open /boot/grub/menu.lst see mine below

—–Start of menu.lst—————-

#Old menu entry

title           Ubuntu 8.04, kernel 2.6.24-16-generic
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.24-16-generic root=UUID=fb359e69-e3dd-4c74-96b9-786f7a0ea9fa ro quiet splash
initrd          /boot/initrd.img-2.6.24-16-generic
quiet

#New menu entry with 512Mb RAMDisk

title           Ubuntu 8.04, kernel 2.6.24-16-generic BIG RAMDISKS
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.24-16-generic root=UUID=fb359e69-e3dd-4c74-96b9-786f7a0ea9fa ro quiet splash ramdisk_size=512000
initrd          /boot/initrd.img-2.6.24-16-generic
quiet

—–End of menu.lst—————-

Now on boot you will have 512Mb disks ready for formatting, Reboot into your new kernel

Create a filesystem

mke2fs -m 0 /dev/ram0

This will allow you to create a file system on the new ramdisk

Mount the RAMDisk

Create somehere for it to go

mkdir /mnt/ram

Mount the disk to the location

mount /dev/ram0 /mnt/ram

Done

Now you just need to dump some stuff there, remember it will be very fast but dont shutdown without backing it up first because you will need to reformat the drive on every boot!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s