Why initramfs stops although root device is mountable and ready to use
Shachar Shemesh
shachar at shemesh.biz
Tue Jul 7 13:58:13 IDT 2009
Gilad Ben-Yossef wrote:
>>
>> I do not understand this : root device is ready, but boot process is
>> stuck ??
>
> Simple:
>
> You either use an initramfs, and if so your initramfs should mount the
> real root file system itself using switch_root() or you don't use an
> initramfs and let the kernel mount it (but then you need the driver
> compiled into the kernel).
>
> Gilad
As a nitpicking, if you are using initrd, there is a mode of operation
where the initrd (linuxrc script) loads the kernel module, but the
kernel does the actual mounting. I'm not sure it's still available in
modern kernels. Initrd can also work similarly to initramfs (typically
using pivot_root, though, and not switch_root).
More to the point, however, I believe Lev is using an initramfs
generated by his distribution, which begs the question "why didn't the
init script on it mount the file system and run switch_root"?
Lev, from the prompt you get, can you do "cat /init" and paste here what
appears there?
Shachar
--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090707/db380d11/attachment-0001.html>
More information about the Linux-il
mailing list