PDA

View Full Version : Kernel Panic - After successful install



Nataki
08-06-2004, 09:36 AM
Okay, here's the deal. I'm trying to install linux on my oldest comp. It's not pretty.

It's a p1, 133 mhz processor with only 64 megs of ram. It has two hard disks, the master being 5.5 gb and the slave being 1.6 gb. I have no intentions of using kde on this thing. All I need is to install it to the hard drive, and have it able to boot up into the bash shell. I have had so many problems with this, it's not even funny.

My first problem came up when I was trying to partiton the drives. I've come to the conclusion it's not possible to do in the bash shell. Originally, I ran "knoppix-installer" and just tried to partition from that. Unfortanately, it wouldn't let me open either of my two drives to partition. I believe the error message was something along the lines of "could not write to disk - drive opened read only." Okay, so I figured this was no big deal. I mounted both of the disks as read-write and tried again, same error. I did all sorts of variations of mounting and unmounting, and eventually I stopped running the installer at all and just going straight to "cfdisk." Never worked. In the end, I booted up into kde. About an half an hour later, I was at the desktop. I ran the installer from there, and for some reason, it let me partition the drives (in kde, knoppix-installer uses qtparted not "cfdisk", which probably has something to do with it right there...) Anyway, I finally got my drives partitioned.

hda1 ext2 5 gigs
hda2 swap .5 gigs

hdb wasn't partitioned because qtparted was being real tempermental and wouldn't let me do anything, but I doubt I'll be needing that much hard drive space anyway, since I'm running this text only. Also, I made the swap file only 500 mb because I figured, there is NO way I would ever need a full gig of memory running in just text.

7 hours later, the installation was completed. LILO was installed to the mbr and it CLAIMED that it was installed succesfully. I made a boot disk as well. I restarted and was happy to see LILO smiling back at me with the three kernel options (knoppix, 2.4, or 2.6). However, no matter which one I choose, Knoppix will not boot. It appears to load everything right, and is going through the normal boot messages, when suddenly, it says:

Kernel Panic: Attempted to kill init

And that's where it hangs. Ctrl+C does nothing, I can't switch to other shells using alt+f#, and it just isn't good in general. Now if I could at least get into a bash shell to fix this, I wouldn't be quite so frustrated, but the problem is, I can't even make it to a shell. And if I boot up to a cd, I can't change settings on the hd because everything runs from the cd. That probably made no sense at all. For instance, if I change lilo.conf on the hd, I have to run lilo. Problem is, LILO realizes that knoppix is the current root partition, and instead of trying to recognize lilo.conf on my hard disk, it goes and looks at the knoppix one instead. I'm really out of ideas here, so anything you can suggest would be appreciated. Thanks.

P.S. I'm installing Knoppix 3.4

Markus
08-06-2004, 10:05 AM
You can boot the cd and change root into the hd install with:
su
mount /dev/hda1 /mnt/hda1
chroot /mnt/hda1
Then you can run lilo or if you just want to run lilo:
chroot /mnt/hda1 lilo -v
Exit from chroot with ctrl-d

BTW: You can get a lighter gui with the cd using the cheatcode (http://www.knoppix.net/docs/index.php/CheatCodes) desktop=icewm

Nataki
08-06-2004, 10:07 AM
Thanks for the advice, I'll give it a try and let you know how it works out.

Nataki
08-07-2004, 01:52 AM
Okay, so I have some more light to shed on the problem.
First of all, thank you markus for your advice. I don't think the probelem lies in LILO however. After looking over the LILO file thoroughly, it appears that it's already been configured properly.

Here is the last output before the computer hangs during startup.
~~~~~~~~~~~~~~~~~~~~~~~~~~~

umount: devfs: not mounted
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
mount: fs type devfs not supported by kernel
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
end_request: I/O error, dev 2:00 (floppy), sector 0
umount: devfs: not mounted
/sbin/init: 423: cannot open dev/console: No such file
Kernel Panic: Attempted to kill init!

~~~~~~~~~~~~~~~~~~~~~~~~~~
I don't know how I managed to miss it before, but the lack of dev/console seems to be a glaring problem...Unfortunately, I have no idea how to fix it. After looking through the knoppix cd, I couldn't even find a file called "console".

Any ideas would be welcomed. And by the way, this is the third time I've installed and had this problem, so I don't believe a reinstall will help, and in additon, I've already had a successful install with this cd on another computer that's working fine. Of course, the other computer it was installed to was about 3 years newer.....

user unknown
08-07-2004, 07:37 AM
Perhaps something with your inittab.

Review /etc/inittab and man init

Yes - a very vague hint...
my /dev/console is

crw------- 1 root tty 5, 1 2004-01-22 22:16 /dev/console

is your system a 2.6 kernel?
Do you have a devfs - entry in /etc/fstab?

shah
08-07-2004, 12:04 PM
Could it be you have a bad hard disk (bad block)?

Markus
08-07-2004, 01:19 PM
First check the cd with the testcd cheatcode, although it seems to have worked on your other computer.
How about trying with the nodma bootoption. Perhaps the bios on your older box doesn't support dma?

user unknown
08-07-2004, 10:32 PM
I don't understand what indicates a broken harddisk or cd - ...


man makedev

could help to generate /dev/console

Nataki
08-08-2004, 10:08 AM
Ok, so, it's not fixed, but I'm able to live with my current setup. Making my /dev/console the same as unknowns didn't work. Also, my inittab seemed to be configured right as well. A bad block on the hard disk is possible, though I find it unlikely. Also, nodma makes no difference, and the cd is working properly as well. I was able to run "./MAKEDEV console", from the /dev directory. At this point, I'm unable to check and see if this has worked, since I've left for vacation. However I have made do with what I have.

I booted up with the box with the knoppix cd, and mounted the hard drive knoppix was installed to. using "chroot" I switched the root directory to the hard drive install. I set everything up there, so I'm not able to ssh into my box from anywhere. I'm still gonna try and get it to work fully without the cd when I get back. Thanks for all the help!

dinacre
08-12-2004, 09:11 PM
Hi,

I got same problem not yet solved

After a succefully installation I got kernel panic after LILO selection (it is the same with knoppix, debian or beginner install metod):

with linux
mount: fs type devfs not supported by kernel
pivot_root: no such file or dir
/sbin/init:423 : cannto open dev/console


with 2.4 kernel
kernel panic: vfs: unable to mount root fs on 03:05


with kernel 2.6
kernel panic: vfs: unable to mount root fs on hda5

Your kernel panic contains the same arguments?