[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Initrd and Ramdisk




Hi Khader,

A RamDisk is a portion of memory that you allocate to use as a partition.
You are taking memory, pretending to treat it as a hard drive, and you are
saving your files to it.  It is mostly used incase  you know that certain
files you have are constantly going to be used, putting the files into
memory will increase the performance.

To know what all ramdisks you have "ls -la /dev/ram*
Default size of each disk is 4MB
To change it Add this line to your lilo.conf file:
   ramdisk=10000
Restart LILO

You can try to copy your files to the Ramdisk by doing the following
mkdir  /tmp/ramdisk0
mkfs -t ext2 /dev/ram0
mount /dev/ram0 /tmp/ramdisk0

Your ramdisk is available at /tmp/ramdisk0

Initrd is simply a ramdisk that is initialized   by  the boot loader before
the kernel is started.  Initial root file system is loaded from initrd.


Hope it helps. By the way are you a programmer or a sysadmin?


Sunil Sarat




--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.