On Thu March 12 2009, [email protected] wrote:
> 
> Tomas M:
> > [email protected] wrote:
> > > If you use initramfs as an aufs branch, then you will meet some trouble
> > > because initramfs will be freed after boot....
> > 
> > Are you sure about that?
> > 
> > I do not understand initramfs much, but if I remember correctly, it doesn't 
> > free itself at all, it remains as is all the time the operating system is 
> > running, unless you rm all files from it manually (or by using some 
> > program).
> 
> I thought swtich_root or something do that, but I don't remember in
> detail. I just remember that
> - initrd remains and you can access the files in it if necessary.
> - initramfs is freed and no one can/should access the files in it.
>

The first is a "ram-disk" in main memory.  That is where initrd loads.

The second is under the user's control in the "init" scripting of the
file system image - if they never drop it (such as with switch_root),
it lives forever. 

Part of the problem here is when the initrd system was supplimented
by the **initial** ramFS system - a new name was not invented.
(**initial**:: Where /rootFS lives when the kernel starts userland.)

To compound the problem - many distributions still call that original
image file an "initrd" - when it hasn't been an "initial ram disk (rd)"
for many years.
Also - the file to load is still called an "initrd" option in the boot
loader files. ;)  Confused yet?  Even though it is a *.cpio.gz archive.

If what you are loading is a *.cpio.gz archive from the boot loader:
initrd = some/path/some/file
Then you can disable the "ramFS" file system in the kernel (the /dev/ram/0
through /dev/ram/?? devices and your system will continue to run just fine.
(Unless you are intentionally using them for something else of course.)

They really should have invented a new option name. ;)
But that option name will accept *either* image format -
Also, just because you added "initial ram disk" support - you do not
have to supply any file (not if your required drivers are built in).

Now everyone should be real confused. ;)
But no more than reading this thread's title - which is "ramFS"
and then goes on to discuss the use of init-ramFS (two different things).

Mike

> 
> J. R. Okajima
> 
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> 
> 



------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com

Reply via email to