Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-25-2005, 02:01 AM   #1
LQ Newbie
Registered: Jul 2005
Posts: 2

Rep: Reputation: 0
Linux initrd (ramdisk)

I need use Linux initrd (kernel ramdisk) to activate CD (iso9660 filesystem)
i.e to mount it as root . How can I pivot between the ramdisk and the CD filesystem (example please) .
Also : I am trying to increase the ramdisk size by kernel commad line RAMDISK_SIZE= 65536 but as initrd is freed from memory it says 4M where freed (the default) . Does that mean enough initrd mem was not allocated ?

Also : what modules have to be loaded at the initrd for the CD access (cdrom.o or more) are they staying in memory after initrd mem is freed ?
Old 07-26-2005, 11:25 AM   #2
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
I may be wrong, but at my thought, initrd is only used to load additional kernel modules "before" the boot (mean before init is call), you can't use initrd to mount your cdrom. Of course if you want to mount your cdrom at boot, you might need to load the iso9660 modules (which is called isofs) if it is not included in your kernel, but the actual mounting will be done by init (more exactly probably by some boot-up script called "localmount", the mount configuration lie in /etc/fstab)

_when_ are you trying to increase your initrd ramdisk size? And _why_ do you want to do this? Unless you get some "not enought memory" kind message, which is very unlikely, I doubt you need to do this. As initrd is only used to load modules, 4MB should be far enought. There is some options in kernel to increase your "default" ramdisk size but I'm not sure it apply to initrd anyways.

It does if the filesystem stay mounted and it may be cleared from memory if the filesystem is unmounted. "lsmod" would tell you. But I don't see why this matter, as kernel will (should) if you try to mount the filesystem later (you may have to give the filesystem type with the -t flag or to put it in fstab).

Note it would be very useful if you could tell us what you are tryign to accomplish exactly... initrd is not very useful these days as the computer have more and more ram, I don't see why someone would want to save some miserable kb modularizing some filesystem modules instead of uncluding these in kernel, which is far more easier to manage. Unless you want to build some embedded system, I doubt you need initrd.


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 04:08 PM
how to use initrd for making RAMdisk Boudewijn Debian 1 12-08-2004 04:34 AM
Root FileSystem from RamDisk/InitRD winklmj Linux - Newbie 1 11-25-2004 12:16 AM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 09:59 AM
Trying to understand how a boot loader handles initrd/initramfs/ramdisk ... cyril Linux - Software 0 04-08-2004 06:10 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration