All of lore.kernel.org
 help / color / mirror / Atom feed
* Initramfs error during boot
@ 2012-02-26 11:13 Sertaç Olgunsoylu
  2012-02-27  7:56 ` Mulyadi Santosa
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Sertaç Olgunsoylu @ 2012-02-26 11:13 UTC (permalink / raw)
  To: kernelnewbies

Hi all,
I built stable tree and latest(linus' tree) with default configuration
and then installed them on my laptop. However, when I try to boot my
system with kernels that I built, it cannot boot. It freezes just
after selection made on GRUB and nothing is printed on the display. I
managed to get following error by booting system in recovery mode:

Starting up ...
mount: mounting /dev/disk/by-uuid/48bfb57f-4750-4537-b563-7094743c161e on /root
failed: Invalid argument
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
Target filesystem doesn't have requested /sbin/init.
No init found.  Try passing init= bootarg.

I build kernel with following commands:
make O=../build defconfig
make O=../build -j2
sudo make O=../build modules_install install

You could see grub.cfg entries below for both (custom build kernel and
stock build kernel):

# Custom build
menuentry 'Ubuntu, with Linux 3.2.7' --class ubuntu --class gnu-linux
--class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root
48bfb57f-4750-4537-b563-7094743c161e
        linux   /boot/vmlinuz-3.2.7
root=UUID=48bfb57f-4750-4537-b563-7094743c161e ro   quiet splash
vt.handoff=7
        initrd  /boot/initrd.img-3.2.7
}

# Stock build
menuentry 'Ubuntu, with Linux 3.0.0-16-generic' --class ubuntu --class
gnu-linux --class gnu --class os {
        recordfail
        set gfxpayload=$linux_gfx_mode
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos3)'
        search --no-floppy --fs-uuid --set=root
48bfb57f-4750-4537-b563-7094743c161e
        linux   /boot/vmlinuz-3.0.0-16-generic
root=UUID=48bfb57f-4750-4537-b563-7094743c161e ro   quiet splash
vt.handoff=7
        initrd  /boot/initrd.img-3.0.0-16-generic
}

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Initramfs error during boot
  2012-02-26 11:13 Initramfs error during boot Sertaç Olgunsoylu
@ 2012-02-27  7:56 ` Mulyadi Santosa
  2012-02-27 12:47 ` Kartik Singhal
  2012-02-27 14:24 ` Peter Senna Tschudin
  2 siblings, 0 replies; 5+ messages in thread
From: Mulyadi Santosa @ 2012-02-27  7:56 UTC (permalink / raw)
  To: kernelnewbies

Hi....

On Sun, Feb 26, 2012 at 18:13, Serta? Olgunsoylu
<sertacolgunsoylu@gmail.com> wrote:
> Starting up ...
> mount: mounting /dev/disk/by-uuid/48bfb57f-4750-4537-b563-7094743c161e on /root
> failed: Invalid argument
> mount: mounting /dev on /root/dev failed: No such file or directory
> mount: mounting /sys on /root/sys failed: No such file or directory
> mount: mounting /proc on /root/proc failed: No such file or directory
> Target filesystem doesn't have requested /sbin/init.
> No init found. ?Try passing init= bootarg.

Ouch, no /dev, /sys and /proc??? something is really wrong.

> I build kernel with following commands:
> make O=../build defconfig
> make O=../build -j2
> sudo make O=../build modules_install install

Not sure about the Makefile dependency, but I usually start it with
"make all" first, the later make "modules_install" and "make install"

> ? ? ? ?initrd ?/boot/initrd.img-3.2.7

sure this is the right name?



-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Initramfs error during boot
  2012-02-26 11:13 Initramfs error during boot Sertaç Olgunsoylu
  2012-02-27  7:56 ` Mulyadi Santosa
@ 2012-02-27 12:47 ` Kartik Singhal
  2012-02-27 14:24 ` Peter Senna Tschudin
  2 siblings, 0 replies; 5+ messages in thread
From: Kartik Singhal @ 2012-02-27 12:47 UTC (permalink / raw)
  To: kernelnewbies

On Sun, Feb 26, 2012 at 4:43 PM, Serta? Olgunsoylu <
sertacolgunsoylu@gmail.com> wrote:

> mount: mounting /dev/disk/by-uuid/48bfb57f-4750-4537-b563-7094743c161e on
> /root
> failed: Invalid argument
> mount: mounting /dev on /root/dev failed: No such file or directory
> mount: mounting /sys on /root/sys failed: No such file or directory
> mount: mounting /proc on /root/proc failed: No such file or directory
> Target filesystem doesn't have requested /sbin/init.
> No init found.  Try passing init= bootarg.
>

I am also getting similar error after building with defconfig on Ubuntu
11.10 64-bit (inside VirtualBox), after the above errors, I get a Busybox
shell with a (initramfs) prompt.



-- 
Kartik
http://k4rtik.wordpress.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20120227/d3ff5a5b/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Initramfs error during boot
  2012-02-26 11:13 Initramfs error during boot Sertaç Olgunsoylu
  2012-02-27  7:56 ` Mulyadi Santosa
  2012-02-27 12:47 ` Kartik Singhal
@ 2012-02-27 14:24 ` Peter Senna Tschudin
  2012-02-27 21:48   ` Sertaç Olgunsoylu
  2 siblings, 1 reply; 5+ messages in thread
From: Peter Senna Tschudin @ 2012-02-27 14:24 UTC (permalink / raw)
  To: kernelnewbies

Hi!

>No init found.  Try passing init= bootarg.

How are you generatig your initrd?

You may need to follow:
https://wiki.ubuntu.com/KernelTeam/GitKernelBuild

and/or:

https://help.ubuntu.com/community/Kernel/Compile

[]'s

Peter


-- 
Peter Senna Tschudin
peter.senna at gmail.com
gpg id: 48274C36

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Initramfs error during boot
  2012-02-27 14:24 ` Peter Senna Tschudin
@ 2012-02-27 21:48   ` Sertaç Olgunsoylu
  0 siblings, 0 replies; 5+ messages in thread
From: Sertaç Olgunsoylu @ 2012-02-27 21:48 UTC (permalink / raw)
  To: kernelnewbies

Hi!
Thanks for the replies.

> You may need to follow:
> https://wiki.ubuntu.com/KernelTeam/GitKernelBuild
I followed those instructions.
When I use defconfig, I get this error. Kernel that I built with
existing kernel config works fine.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-27 21:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-26 11:13 Initramfs error during boot Sertaç Olgunsoylu
2012-02-27  7:56 ` Mulyadi Santosa
2012-02-27 12:47 ` Kartik Singhal
2012-02-27 14:24 ` Peter Senna Tschudin
2012-02-27 21:48   ` Sertaç Olgunsoylu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.