Solved

Reducing number of ramdisk?

Posted on 1997-06-10
3
409 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RHEL6 + dockers - No route to host 7 100
Unix process listing into CSV format 3 87
AWS EC2 HTTP & HTTPS 2 115
How to Issue Commands in Linux OS on Check Point Firewall in GAIA 15 56
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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 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.
Suggested Courses

739 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