TECH TRANSIT : IF YOU LOVE TECHNOLOGY , YOU'LL LOVE US

Tech Transit Open Source Blog

Linux

Creating and Overview of Linux initial RAM disk (initrd)

Spread the love

A main function of a RAM disk is application caching folder. There are two main types of RAM Disk, which is used in linux.

(1)
(2)

Check the free RAM on linux machine using through free command

Create a folder to use as a mount point for your RAM disk.

mkdir /ramdisk

Use mount command to use create ram disk and mount .

mount -t [TYPE] -o size=[SIZE] [FSTYPE] [MOUNTPOINT]

For example like below :

mount -t tmpfs -o size=8000M tmpfs /home/ramdisk/

[TYPE] RAM disk type.
[SIZE] is the size to use for the file system.
[FSTYPE] Type of RAM disk to use .

In the example [TYPE] of ramdisk , size of Ramdisk which will used for ramdisk. type of ram disk like ext4, ext3, tmpfs.


Spread the love

Have any Question or Comment?

2 comments on “Creating and Overview of Linux initial RAM disk (initrd)

Johng120

Oh my goodness! an amazing article dude. Thanks Nonetheless I am experiencing issue with ur rss . Dont know why Unable to subscribe to it. Is there anybody getting similar rss drawback? Anybody who is aware of kindly respond. Thnkx

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *




Tech Transit Facebook Page

SuperWebTricks Loading...