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


LinkBack Search this Thread
Old 02-09-2008, 05:50 AM   #1
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:
APPEND initrd=cent.gz ramdisk_size=6291456 ramdisk_blocksize=1024 root=/dev/ram rw
Old 02-09-2008, 11:30 PM   #2
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,363
Blog Entries: 3

Rep: Reputation: 169Reputation: 169
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
Senior Member
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,363
Blog Entries: 3

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

Rep: Reputation: 261Reputation: 261Reputation: 261
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
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.


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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

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

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