Solved

Setting up ram disk - Linux 2.0.28

Posted on 1997-04-20
2
210 Views
Last Modified: 2013-12-15
Could someone give me a brief overview of how to setup a ram disk under Linux 2.0.28?  I can't seem to find any resources or determine the exact configuration needed to get it to mount correctly.
0
Comment
Question by:jrusnak
2 Comments
 
LVL 1

Accepted Solution

by:
ggeens earned 100 total points
ID: 1627202
1. Compile Ramdisk support into your kernel.
2. Make sure you are running the right kernel.
3. Make the devices: mknod /dev/ramX b 1 X
(X is a number, normally 1-16). You might also want to create a /dev/ram entry pointing to the first ramdisk
(mknod /dev/ram b 1 1).
4. Initialise the disk:
dd if=/dev/zero of=/dev/ram bs=1k count=4096
5. Make the filesystem:
mke2fs /dev/ram
6. mount it: mount -t ext2 /dev/ram /mnt

Further reading: /usr/src/linux/Documentation/ramdisk.txt,
the BootPrompt-HOWTO, and the Bootdisk-HOWTO.
0
 

Author Comment

by:jrusnak
ID: 1627203
Thanks a million...

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now