Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14886 - [boot] Kernel panic: No init found. Try passing init= ...
Summary: [boot] Kernel panic: No init found. Try passing init= ...
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: John Davis (zhen) (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-31 19:59 UTC by Joe Kallar (RETIRED)
Modified: 2003-02-09 18:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Kallar (RETIRED) gentoo-dev 2003-01-31 19:59:33 UTC
See forum thread and links within. Docs should be modified to ensure that
installs with ext2 filesystem DO NOT use LILO as bootloader, only GRUB can be used.

Reproducible: Always
Steps to Reproduce:
1. install off iso, using ext2
2. emerge LILO
3. reboot

Actual Results:  
VFS: Mounted root (ext2 filesystem) readonly.
mount_devfs():unable to mount devfs, err: -2
Freeing unused kernel memory: 88k freed
Warning: unable to open an initial console.
Kernel panic: no init found. Try passing init= option to kernel.

Expected Results:  
Booted normally
Comment 1 SpanKY gentoo-dev 2003-01-31 23:50:02 UTC
actually you *can* use ext2+lilo ... 
theres more going on here ... 
could you post your /etc/fstab and/or lilo config ? 
Comment 2 Joe Kallar (RETIRED) gentoo-dev 2003-02-01 11:31:04 UTC
OK. Dunno, for me all I did was change from LILO to Grub and the box booted perfect. Here's my /etc/fstab:

/dev/sda2     /boot     ext2     noauto,noatime     1,1
/dev/sda5     /         ext2     noatime            0 0
/dev/sda7     none      swap     sw                 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro     0 0
proc          /proc     proc     defaults           0 0
tempfs        /dev/shm  tmpfs    defaults           0 0

Also, this is a dual-boot machine, and I had installed Win XP Pro, fat32 on sda1 the day before.

Lilo.conf:

boot = /dev/sda
prompt
map = /boot/System.map
lba32
timeout=150
default=Windows
     image = /boot/bzImage
     root = /dev/sda2
     label = Gentoo
     read-only # read-only for checking
     other = /dev/sda1
     label = Windos
     table = /dev/sda

All other lines were commented out from the default initial lilo.conf
Comment 3 SpanKY gentoo-dev 2003-02-01 11:34:32 UTC
shouldnt the boot line in your lilo be /dev/sda2 instead of /dev/sda ? 
Comment 4 Joe Kallar (RETIRED) gentoo-dev 2003-02-01 11:53:13 UTC
I was going by Codelisting 25.5 in the docs:
"boot=/dev/hda"
http://www.gentoo.org/doc/en/gentoo-x86-install.xml
Comment 5 SpanKY gentoo-dev 2003-02-01 12:09:11 UTC
i'm not saying thats the answer, i'm asking if that makes lilo work ... i dont use lilo 
myself ... 
Comment 6 Joe Kallar (RETIRED) gentoo-dev 2003-02-01 12:12:00 UTC
Sorry, dunno. I used Grub since then. Do you want me to try and go back to LILO and mess with it?
Comment 7 SpanKY gentoo-dev 2003-02-01 12:32:31 UTC
well yes since you reported this bug ;) 
Comment 8 Joe Kallar (RETIRED) gentoo-dev 2003-02-01 14:49:32 UTC
OKie. I'll track down the procedure to change bootloaders, replace "boot = /dev/sda" with "boot = /dev/sda2" and report back.
Comment 9 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-09 15:19:34 UTC
what version of the kernel were you using? I have had this problem with some gentoo-sources-2.4.18 on an Athlon 900 w/ AMD 760 chipset.

BTW, boot=/dev/sda is valid: it installs the bootloader on the MBR of sda.
boot=/dev/sda2 installs the bootloader on the second partition of sda.

Comment 10 John Davis (zhen) (RETIRED) gentoo-dev 2003-02-09 18:58:42 UTC
This is an invalid bug -
the boot=/dev/sda is fine, your bootloader is installed on your MBR.

The line that kills you is:
root = /dev/sda2

This is looking for a root fs on sda2, and judging by your fstab, that is your boot partition. The line should read:
root=/dev/sda5 (which is your root fs)