Solved

Reducing number of ramdisk?

Posted on 1997-06-10
3
386 Views
Last Modified: 2013-12-15
I installed Redhat 4.1 on a computer with 64meg of memory and now want to reduce that to 16meg of memory.  Taking out the simm's caused a ramdisk error at boot.  I have the original kernel with no problems until now.  With 64meg installed at boot it creates (16) 4meg ramdisk.  (16x4meg=64meg).  This works fine with no problems.  When I have only 16meg in the machine it tries to do the same thing and errors out.  I've tried mem=16 at the LILO: and this did not solve the problem. The line in the dmesg log is:Ramdisk driver initialized : 16 ramdisk of 4096K sizeThis works fine with 64meg, but it still tries to create 16 when it only has 16meg of ram.  What I would expect is that it would create 4 ramdisk of 4096K size.erich@jjt.com
0
Comment
Question by:erich
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
drz earned 200 total points
Comment Utility
The real solution is to recompile the kernel with Initial RAM disk support disabled. Besides for installations RAM disks have no real use anyway. Memory not used for a RAM disk will instead automatically be used to cache data that is accessed the most.
Alternatively, you could pass ramdisk_size=1 (for 1Kb) at the LILO prompt, and it should boot without problems.

0
 

Author Comment

by:erich
Comment Utility
Any tips on what I need to look for or set to disable the Initial RAM disk when I recompile the kernel.
0
 
LVL 1

Expert Comment

by:drz
Comment Utility
Disabling CONFIG_BLK_DEV_INITRD should do it. Otherwise, you could always disable RAM disks altogether. CONFIG_BLK_DEV_RAM is they keyword that does that.

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 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

10 Experts available now in Live!

Get 1:1 Help Now