RAM disk? Help
Hi,
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 I reboot and... Nothing happen I am stuck, Help pleasssse |
Please be specific.
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. |
Answer
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 Have you any ideas? |
When you say "nothing happens", you mean "nothing happens".
This means that your machine fails to boot completely? (I'm still confused, sorry.) |
All times are GMT -5. The time now is 09:24 AM. |