Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel panic: No init found
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
pschram
n00b
n00b


Joined: 04 Jan 2003
Posts: 44

PostPosted: Sat Oct 18, 2003 8:23 pm    Post subject: Kernel panic: No init found Reply with quote

A happy Gentoo-user I was. One by one my reiserfs partitions were starting to bail out on me. No other option than a reinstall with ext3 filesystems.

Being a linux user since kernel 2.2.5 I thought a reinstall to be a breeze. But after 2 days of trying to get my kernel to boot I ran out of options.

This is the last part of my bootscreen:
Code:

kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
mount_devfs_fs(): unable to mount devfs, err: -2
Freeing unused kernel memory: 120k freed
Warning: unable to open an initial console.
Kernel panic: No init found. Try passing init= option to kernel


I have searched the gentoo-forums for two days, but I can't find the answer to this problem.

My disks are ordered like this:

/dev/hda6 boot
/dev/hda7 swap
/dev/hda8 root

My fstab:
Code:

/dev/hda6                /boot                  ext2                    noauto,noatime          1 2
/dev/hda8                /                      ext3                    noatime                 0 1
/dev/hda7                none                   swap                    sw                      0 0
 
# NOTE: The next line is critical for boot!
none                    /proc                   proc                    defaults                0 0
 
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink). Adding the following
# line to /etc/fstab should take care of this:
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will use almost no
#  memory if not populated with files)
 
none                    /dev/shm        tmpfs           defaults                0 0


My lilo.conf:
Code:
menu-scheme=Wb
boot = /dev/hda
prompt
map = /boot/System.map
lba32
timeout=30
delay = 50
default=Gentoo
vga = normal    # Normal VGA console
# End LILO global section
 
# Linux bootable partition config begins
        image = /boot/vmlinuz-gentoo-2.4.20-r7
        root = /dev/hda6
        label = Gentoo
         read-only # read-only for checking
        append="hdc=ide-scsi"
# Linux bootable partition config ends


My kernel-config was taken from the previous install. I only pulled out the framebuffer things to make things easier on first boot.

Does anyone have a tip where to look? I getting pretty desperate.
Back to top
View user's profile Send private message
bonsaikitten
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 213
Location: Shanghai, China

PostPosted: Sat Oct 18, 2003 9:11 pm    Post subject: Reply with quote

I think ext3 is not the culprit. It says "EXT3-fs: mounted filesystem with ordered data mode."

But devfs is bugging out (I think). Look at the kernel config, devfs needs to be automatically mounted AFAIK.

I've seen similar problems on a P4 system with raid, I'm still not sure why the kernel crashes like that.

hth,
bonsaikitten
Back to top
View user's profile Send private message
jaska
Bodhisattva
Bodhisattva


Joined: 06 Jun 2003
Posts: 725
Location: Finland

PostPosted: Sat Oct 18, 2003 10:07 pm    Post subject: Reply with quote

To me this sounds like you did not enable devfs to be mounted on boot, gentoo needs that to work.
Back to top
View user's profile Send private message
pschram
n00b
n00b


Joined: 04 Jan 2003
Posts: 44

PostPosted: Sun Oct 19, 2003 9:52 am    Post subject: Reply with quote

Quote:
To me this sounds like you did not enable devfs to be mounted on boot, gentoo needs that to work.

If you mean the part in the kernel about devfs, I already enabled that. There are two items about devfs:

[*] /dev file system support (EXPERIMENTAL)
[*] Automatically mount at boot

I have enabled them both.

Quote:
I've seen similar problems on a P4 system with raid, I'm still not sure why the kernel crashes like that.


I have a raid volume in my system also. However this volume is not part of any system volume. Could it be somehow involved? If I look at the kernelmessages it's getting detected ok.
Back to top
View user's profile Send private message
frenkel
Veteran
Veteran


Joined: 13 May 2003
Posts: 1034
Location: .nl

PostPosted: Sun Oct 19, 2003 10:21 am    Post subject: Reply with quote

I'm not a lilo user, but I think root = /dev/hda6 must be root = /dev/hda8 in your lilo.conf. root=/dev/hda8 will be passed to your kernel and your kernel will use this as it's root.

Good luck,
Frank
_________________
http://techfield.org
Back to top
View user's profile Send private message
pschram
n00b
n00b


Joined: 04 Jan 2003
Posts: 44

PostPosted: Sun Oct 19, 2003 4:47 pm    Post subject: Reply with quote

Quote:
I'm not a lilo user, but I think root = /dev/hda6 must be root = /dev/hda8 in your lilo.conf. root=/dev/hda8 will be passed to your kernel and your kernel will use this as it's root.


Aaaarghhh, I feel like a complete idiot. This is the typo I missed. Of course the devfs can't be mounted, there is no /dev in the boot volume. :oops:

I'm going to hide under my bed until the voices in my head screaming "idiot" go away.

Many thanks, this solved it. :lol:
Back to top
View user's profile Send private message
Slayta
n00b
n00b


Joined: 29 Oct 2003
Posts: 19
Location: Canada

PostPosted: Wed Oct 29, 2003 7:10 pm    Post subject: Reply with quote

i'm having the same problem. i have the adutmount at boot enabled and devfs enabled but it stil gives me the kernel panic. my lilo.conf looks good and i'm not sure about my fstab..i'll show it

/dev/hda3 /boot ext3 noauto,noatime 1 1
/dev/hda4 /boot ext3 noatime 0 0
/dev/hda5 none swap sw 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0

and if you want my lilo.conf i can give it to ya too.
_________________
HoaX Forever
[img:611ae5ef7c]http://www.gentoo.org/images/powered-by-gentoo.jpg[/img:611ae5ef7c]
[img:611ae5ef7c]http://www.team-hoax.com/linux/hoaxslayta.jpg[/img:611ae5ef7c]
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Wed Oct 29, 2003 9:58 pm    Post subject: kernel panic Reply with quote

The problem I havce had is similar to yours. The best way to figure the problem out is to get your hands dirty...*reinstall*. Ensure you don't have any typos and mount each file system after you have reread the coding. Other than that keep searching the forums.It's in here..(the answer).
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
Barkotron
Apprentice
Apprentice


Joined: 05 Aug 2003
Posts: 253
Location: location, location.

PostPosted: Wed Oct 29, 2003 10:24 pm    Post subject: Reply with quote

Hi there,

Slayta wrote:

/dev/hda3 /boot ext3 noauto,noatime 1 1
/dev/hda4 /boot ext3 noatime 0 0
/dev/hda5 none swap sw 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,ro 0 0


Are you really trying to mount two different partitions onto /boot :wink: ? I'd make sure that one of these lines has / as the mount point rather than /boot. If that's a typo here and not in your fstab, then check that whatever is mounted at / is also being passed to the kernel as root= in your lilo.conf

Hope that helps...
_________________
Give a man a fire and he'll be warm for a day: set fire to him and he'll be warm for the rest of his life.
Back to top
View user's profile Send private message
Slayta
n00b
n00b


Joined: 29 Oct 2003
Posts: 19
Location: Canada

PostPosted: Thu Oct 30, 2003 12:16 am    Post subject: Reply with quote

cool thanx. i just ran:
emerge -C gentoo-sources

and i'm compiliing my kernel as i type lol. (using a mac computer at work)
and i'm just going to copy is and see what happens from there. also that line about 2 devices on /boot. (its a typo in the post, great way to get help eh? ) it should read:

/dev/hda4 /boot
/dev/hda3 /

just for clearing up purposes. but i would like to point out that i've mounted dev/hda4 as boot but i dont want it mounted as boot, but mounted as /mnt/home so do i just:

umount /mnt/gentoo/boot
then,
mkdir /mnt/home
mount /dev/hda4 /mnt/gentoo/home

would that take care of it?
_________________
HoaX Forever
[img:611ae5ef7c]http://www.gentoo.org/images/powered-by-gentoo.jpg[/img:611ae5ef7c]
[img:611ae5ef7c]http://www.team-hoax.com/linux/hoaxslayta.jpg[/img:611ae5ef7c]
Back to top
View user's profile Send private message
shade266
Guru
Guru


Joined: 29 Oct 2003
Posts: 593
Location: Internal

PostPosted: Thu Oct 30, 2003 12:30 am    Post subject: Reply with quote

If you don't mind telling; what mobo are you using? Also, name the intergrated or non-intergrated componets; processor,eth card,etc.
_________________
I've been away for a long time, bear with me.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum