Why initramfs stops although root device is mountable and ready to use

Why initramfs stops although root device is mountable and ready to use

Gilad Ben-Yossef gilad at codefidence.com
Tue Jul 7 13:37:16 IDT 2009


Lev Olshvang wrote:

> Boker  Everybody,
>
>
> I recently experienced a strange problem:
>
> The system is based on Ubuntu kernel 2.6.28  which I compiled and built
> initramfs for it provided with a driver for ide disk (pata_via.ko)
>
> grub should boot this system from the root=/dev/sda1
>
> The boot process stops on a famous message "waiting for a root file 
> system".
>
> But then it enters the busybox prompt  and I see that /dev/sda1 is
> indeed exist, I can mount it  and access files.
>
>
> 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

-- 
Gilad Ben-Yossef
Chief Coffee Drinker & CTO
Codefidence Ltd.

Web: http://codefidence.com
Cell: +972-52-8260388
Tel: +972-8-9316883 ext. 201
Fax: +972-8-9316884
Email: gilad at codefidence.com

Check out our Open Source technology and training blog - http://tuxology.net

	"Now the world has gone to bed
	 Darkness won't engulf my head
	 I can see by infra-red
	 How I hate the night."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090707/be2f7855/attachment.html>


More information about the Linux-il mailing list