LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-09-2008, 05:50 AM   #1
link1
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Rep: Reputation: 0
large initrd image


Hi all.
I have such task:
Server with 8G ram must boot over network ( dhcp+tftp ).
root fs should be loaded to ram. I created some images for testing and found following:
if image size is about 500m it works, but even 600m is not working.
Boot process stops at: RAMDISK: Compressed image found at block 0
no error,warnings.... it simply freeze.
I found some threads with similar questions, but i found no answers.
So question is: How to load large initrd image ( about 2-4 G ).
PS: Here is my init string:
DEFAULT linux
APPEND initrd=cent.gz ramdisk_size=6291456 ramdisk_blocksize=1024 root=/dev/ram rw
 
Old 02-09-2008, 11:30 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
it is unable to find / root. it loads the kernel then loads the image but it stops when it cant find root. tell it where root is at. sence it will neve stop looking for the root. freezes. tell it root =/dev/ram0 see if that helps.

Last edited by Drakeo; 02-09-2008 at 11:33 PM. Reason: miss speeled and typo
 
Old 02-09-2008, 11:31 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
ram is the device ram0 is the block device.
 
Old 02-10-2008, 12:43 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Not sure if this will help, but IIRC the kernel makes the ram disk for the initrd a default size and if your initrd is bigger than that, it won't be loaded fully and will not mount or will mount with missing data. However, you can control the size the kernel will use for the initrd with the ramdisk_size command line option. You'll need to put this into the pxelinux config file for the host in the append configuration line (where you specify command line options to pass to the kernel). I believe the number you give has to be in kilobytes. I've used this top load big ramdisks before, but never one as big as yours... good luck!
 
Old 02-10-2008, 04:13 AM   #5
link1
LQ Newbie
 
Registered: Feb 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Big thanks for answers.
2Drakeo: I`ll try on monday to set /dev/ram0 in fstab, may be I forgot about it.
2btmiller: As you see, I wrote in my first post, that I set ramdisk_size=6291456.
2all: My some other solution exist for my task ?
I found a lot of questions, but no answers....
Nowdays I is new type of servers. If I have about 10-20 Gb of ram, I don`t need hdd at all.
 
  


Reply



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
Make new initrd image qewldude Fedora - Installation 3 02-15-2008 09:56 AM
problems with very large initrd softwizz Fedora 2 05-13-2005 08:11 AM
What's initrd image? Nerox Linux - Newbie 2 08-25-2004 04:53 PM
loadlin corrupts large initrd jsmerritt Linux - General 0 07-17-2004 01:19 PM
Best image viewer for very large image files? andvaranaut Linux - Software 1 02-21-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration