Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I try to install a RAM disk on my server and it does not work!
I check the Ram:
[root@ensim admin]# ls -l /dev/ram*
lrwxr-xr-x 1 root root 4 Oct 26 2005 /dev/ram -> ram1
brw-rw---- 1 root disk 1, 0 Jun 24 2004 /dev/ram0
brw-rw---- 1 root disk 1, 1 Jun 24 2004 /dev/ram1
brw-rw---- 1 root disk 1, 10 Jun 24 2004 /dev/ram10
brw-rw---- 1 root disk 1, 11 Jun 24 2004 /dev/ram11
brw-rw---- 1 root disk 1, 12 Jun 24 2004 /dev/ram12
brw-rw---- 1 root disk 1, 13 Jun 24 2004 /dev/ram13
brw-rw---- 1 root disk 1, 14 Jun 24 2004 /dev/ram14
brw-rw---- 1 root disk 1, 15 Jun 24 2004 /dev/ram15
brw-rw---- 1 root disk 1, 16 Jun 24 2004 /dev/ram16
brw-rw---- 1 root disk 1, 17 Jun 24 2004 /dev/ram17
brw-rw---- 1 root disk 1, 18 Jun 24 2004 /dev/ram18
brw-rw---- 1 root disk 1, 19 Jun 24 2004 /dev/ram19
brw-rw---- 1 root disk 1, 2 Jun 24 2004 /dev/ram2
brw-rw---- 1 root disk 1, 3 Jun 24 2004 /dev/ram3
brw-rw---- 1 root disk 1, 4 Jun 24 2004 /dev/ram4
brw-rw---- 1 root disk 1, 5 Jun 24 2004 /dev/ram5
brw-rw---- 1 root disk 1, 6 Jun 24 2004 /dev/ram6
brw-rw---- 1 root disk 1, 7 Jun 24 2004 /dev/ram7
brw-rw---- 1 root disk 1, 8 Jun 24 2004 /dev/ram8
brw-rw---- 1 root disk 1, 9 Jun 24 2004 /dev/ram9
lrwxr-xr-x 1 root root 4 Oct 26 2005 /dev/ramdisk -> ram0
[root@ensim admin]#
[root@ensim admin]# dmesg | grep RAMDISK
RAMDISK driver initialized: 256 RAM disks of 8192K size 1024 blocksize
RAMDISK: Compressed image found at block 0
Why 256 RAM disks of 8192K? Usualy I have 16 RAM disks of 4096K?
I change grub
[root@ensim admin]# vi /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux ES (2.4.21-27.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.ELsmp ro root=LABEL=/ ramdisk_size=300000
initrd /initrd-2.4.21-27.ELsmp.img
title Red Hat Enterprise Linux ES-up (2.4.21-27.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-27.EL ro root=LABEL=/ ramdisk_size=300000
initrd /initrd-2.4.21-27.EL.img
When you say "it does not work", what exactly do you do and what exact error message do you get?
When you reboot and "nothing happens", does this mean that the system doesn't come all the way up? Or it doesn't even load the operating system image? Or what?
Seems it should work - I just tried a ramdisk_size larger than my RAM, and it booted o.k. (Arch - not RHEL)
Check your kernel config - just grep it for RAM.
Yer when I say nothing happens, it means that nothing change!
I try the same thing with two other severs and it works!
But on the others I get:
[root]# dmesg | grep RAMDISK
RAMDISK driver initialized: 16 RAM disks of 16000K size 1024 blocksize
RAMDISK: Compressed image found at block 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.