Initramfs error during boot
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 }
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
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/
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@gmail.com gpg id: 48274C36
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.
participants (4)
-
Kartik Singhal -
Mulyadi Santosa -
Peter Senna Tschudin -
Sertaç Olgunsoylu