Thursday, January 20, 2011

create RAMDISK HOWTO

OS: Cent OS 5.5
1. set up the size you want to create
$vim /boot/grub/menu.lst
set the ramdisk size as 128 MB
Add ramdisk_size = 128000 to kernel line
kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/ hdc=ide-scsi ramdisk_size=128000
$reboot

2. Format the ramdisk
$ mke2fs -m 0 /dev/ram0

3. Create a mount point to mount the ramdisk
$ mkdir /mnt/ramdisk
$ mount /dev/ram0 mnt/ramdisk


More detailed: http://www.vanemery.com/Linux/Ramdisk/ramdisk.html

No comments: