Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I increase the ramdisk size on a Ubuntu 9.10 system? I have read one technique is to change the ramdisk_size parameter in the /boot/grub/menu.lst file. However, I am unable to find this file on my system.

share|improve this question
add comment

2 Answers

See http://www.vanemery.com/Linux/Ramdisk/ramdisk.html for how to do this.

If you can't find menu.lst, then your system might be using the new grub.cfg file. Look in /boot/grub .

share|improve this answer
add comment

This script create a ram disk, maximum ram usage is 256 Mbyte.

Note : available space is more, because the device use realtime compression.

You can run it with sudo or put the script in /etc/init.d/

#!/bin/bash

modprobe zram num_devices=1 
# max ram usage = 256 Mbytes
echo 262144 > /sys/block/zram0/disksize
mke2fs -q -m 0 -b 4096 -O sparse_super -L zram /dev/zram0
mount -o relatime,noexec,nosuid /dev/zram0 /mnt/zram
# eof
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.