Initramfs error during boot

5 messages, 4 authors, 2012-02-27 · open the first message on its own page

Initramfs error during boot

From: Sertaç Olgunsoylu <hidden>
Date: 2012-02-26 11:13:46

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
}

Initramfs error during boot

From: Mulyadi Santosa <hidden>
Date: 2012-02-27 07:56:54

Hi....

On Sun, Feb 26, 2012 at 18:13, Serta? Olgunsoylu
[off-list ref] 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

Initramfs error during boot

From: Kartik Singhal <hidden>
Date: 2012-02-27 12:47:00

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 

Initramfs error during boot

From: peter.senna@gmail.com (Peter Senna Tschudin)
Date: 2012-02-27 14:24:00

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

Initramfs error during boot

From: Sertaç Olgunsoylu <hidden>
Date: 2012-02-27 21:48:50

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help