Question on initial RAM disk?
I am working on put a mini linux system into my U key, I use grub as my bootloader, when booting, grub should load kernel and initrd image into memory.
In my view, initrd is the first root filesystem, but how can the kernel aware of the initrd and mount it as a root filesytem? |
|
If I understand your question correctly, the bootloader takes care of this.
In the case of GRUB, this is done with the initrd statement as shown in the sample entry below: Code:
title Ubuntu, kernel 2.6.17-11-generic |
I think, Grub only load kernel and initrd into memory, but it can't mount ramfs for the kernel, is it?
maybe the bootloader pass information of where is the initrd settled to the kernel, is there a mechenism in kernel to get the information? |
Quote:
|
All times are GMT -5. The time now is 09:09 AM. |