LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-25-2005, 01:01 AM   #1
dubi
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, 10:25 AM   #2
Half_Elf
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.
 
  


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 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 03:08 PM
how to use initrd for making RAMdisk Boudewijn Debian 1 12-08-2004 03:34 AM
Root FileSystem from RamDisk/InitRD winklmj Linux - Newbie 1 11-24-2004 11:16 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
Trying to understand how a boot loader handles initrd/initramfs/ramdisk ... cyril Linux - Software 0 04-08-2004 05:10 AM


All times are GMT -5. The time now is 03:36 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