?
Solved

Reducing number of ramdisk?

Posted on 1997-06-10
3
Medium Priority
?
417 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 800 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month16 days, 8 hours left to enroll

862 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