Solved

Reducing number of ramdisk?

Posted on 1997-06-10
3
402 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
ID: 1628078
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
ID: 1628079
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
ID: 1628080
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

789 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