LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 01-16-2007, 07:27 PM   #1
Patou001
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
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
 
Old 01-16-2007, 09:30 PM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
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?
 
Old 01-16-2007, 09:39 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,285

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
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.
 
Old 01-17-2007, 04:54 AM   #4
Patou001
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
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?
 
Old 01-18-2007, 07:16 AM   #5
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
When you say "nothing happens", you mean "nothing happens".

This means that your machine fails to boot completely? (I'm still confused, sorry.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with RAM disk KitKat08 Red Hat 1 02-09-2006 08:57 AM
Booting without RAM disk Tinku Linux - General 3 10-03-2005 02:57 PM
ram disk quiron Linux From Scratch 3 07-20-2005 02:43 AM
Create a ram disk consty Linux - Newbie 9 05-19-2005 08:06 AM
Ram disk consty Red Hat 1 05-11-2005 07:06 AM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration