LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-19-2003, 03:02 PM   #1
astotxo
LQ Newbie
 
Registered: Nov 2003
Distribution: mandrake
Posts: 2

Rep: Reputation: 0
Exclamation error message freezes bootup (kernel panic)


Hi,

I have Mandrake 9.2 installed in a Gateway notebook, everything worked fine until I wanted to reinstall win xp. Fearing that windows would "hide" my linux partition, I tried to explore a little bit the bootloader parameter and I guess I did something wrong.

After installing successfully windows, I reinstalled my linux bootloader with the install CD.

At boot I can choose between win and linux, choosing win works fine but when choosing linux the computer freezes after a while.


I use graphical lilo as boot laoder.

During booting, I get the following lines with an error message at the end and
the computer freezes!

Here are all the lines that are screenplayed:

md: ... autorun DONE.
Initializing Cryptographic API
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
Linux IP multicast router 0.06 plus PIM-SM
NET4: UNix domain sockets 1.0/SMP for Linux NET4.0.
Resume Machine: Unable to find suspended-data signature ( - misspelled?
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 237k freed
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
swsusp 1.0.3: kswsuspd starting
Red Hat nash version 3.4.43-mdk starting
Mounting /proc filesystem
Create root device
Mounting root filesystem with flags noatime
VFS: Can't find ext2 filesystem on dev ide0(3,2).
mount: error 22 mounting ext2 flags noatime
well, retrying without the option flags
VFS: Can't find ext2 filesystem on dev ide0(3,2).
mount: error 22 mounting ext2
well, retrying read-only without any flag
VFS: Can't find ext2 filesystem on dev ide0(3,2).
mount: error 22 mounting ext2
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
Remounting devfs at correct place if necessary
Mounted devfs on /dev
Freeing unused kernel memory: 152k freed
Kernel panic: No init found. Try passing init= option to kernel.

----------------------------------------------------
I have tried to make an upgrade using the install CD but the computer freezes too after showing this message:
An error occured
output in file /mnt/etc/hosts failed: NO such file or directory


I am not familar yet with the rescue mode commands but I read in the rescue help that this console should be used if parameters have been changed in /etc/fstab and system doesn't boot. Fix the offending line in rescue mode.
I guess that is what happened since I changed some parameter in the bootloader while trying to prepare the install of windows xp.

I have already reinstalled the boot loader using the install CD but the problems remains.

Now, xp works properly but I can't enter my linux partition.


Do anybody know how I should fix this?
Thanks a lot,

NIko
 
Old 11-19-2003, 03:14 PM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
I think you are missing this line in your bootloader.

initrd=/boot/initrd.img

The kernel part appears to be fine. It just needs to know where the init file is.

Hope that helps

 
Old 11-19-2003, 04:37 PM   #3
astotxo
LQ Newbie
 
Registered: Nov 2003
Distribution: mandrake
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your comment Dalek,

I am actually a newbie. Do you mean I have to type
initrd=/boot/initrd.img
somewhere.

The only place that allows me to type something is the rescue mode when using the install CD (press F1, then type rescue)

There, I typed
[root@rescue]# initrd=/boot/initrd.img

and nothing happens, the []# appears in a new line.

When typing only
init
it displays:
Usage: init 0123456SsQqAaBbCcUu

I also entered in /boot and list what was inthere typing ls command
and it only showed
grub/

By typing 'grub', I got some info as if the command language was different there.

I typed
initrd=/boot/initrd.img
there again and got this message:

Error 19: Linux Kernel must be loaded before initrd.

How should I load the kernel?

Please give me step-by-step instruction I am really lost...
Thanks
 
Old 11-19-2003, 05:39 PM   #4
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
You need to add that to your bootloader. It should boot after that.

I don't know how to do that because I'm lucky enough to not use windoze at all. Never had windoze take over my bootloader.

For lilo it should look something like this:

Code:
image=/boot/vmlinuz
	label="linux"
	root=/dev/hda6
	initrd=/boot/initrd.img
	append="quiet devfs=mount hdc=ide-scsi hdd=ide-scsi acpi=off"
	vga=788
	read-only
You will have to replace with the exact locations of your system though. It appears it is there except for the initrd=/boot/initrd.img line.

The kernel appears to be booting, you should be able to add that initrd= line to the bootloader and be OK.

That help any?

Some other guru that has actually done this before lend a hand.

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel panic on bootup MattJohnson Fedora 3 11-24-2004 11:18 AM
another kernel panic error message o_0 Linux - General 5 10-05-2004 09:22 PM
bootup kernel message in 2.6.4 csvke Linux - Software 3 03-23-2004 07:11 PM
kernel panic error message --What do i do?? :confused: linuxnut2003 Red Hat 7 02-20-2004 10:50 PM
LIL- error message on bootup gedi1 Linux - General 5 10-04-2001 03:55 PM


All times are GMT -5. The time now is 06:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration