LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2006, 10:31 PM   #1
bhuvanmital
LQ Newbie
 
Registered: Dec 2005
Posts: 23

Rep: Reputation: 15
Kernel Panic while mounting ext3 on Fedora core 4


I have a laptop which doesn’t have a brandname. It is a ‘china make’ and I think is assembled laptop. This laptop uses a promise SATA card, to which a harddisk is connected. So, during booting it requires a promise SATA card driver, otherwise Harddisk is not detected properly. I faced this problem with Windows and Linux installation. I could install linux in 3rd attempt. Anyways now the problem is that when i recompiled kernel 2.6.15.4 on the same machine it gives the following kernel panic message:

************************************************** **************

Booting ‘Fedora Core 4 (2.16.15.4)’

Root (hd0,4)

Filesystem type is ext2fs, partition type 0x83

Kernel /boot/vmlinuz-2.6.15.4 ro root=LABEL=/1 rootfstype=ext3 enforcing=0 rhgb quiet

[Linux-bzImage, setup=0x1e00, size=0x19f457]

Initrd /boot/initrd-2.6.15.4.img

[Linux-initrd @ 0x1fd67000, 0x128da7 bytes ]



Uncompressing Linux . . . Ok, booting kernel.

PCI: Failed to allocate mem resource #6:20000@d0000000 for 0000:01:00.0

Red Hat nash version 4.2.15 starting

Mkrootdev: label / not found

Mount: error 2 mounting ext3

ERROR opening /dev/console!!!!: 2

Error dup2’ing fd of 0 to 0

Error dup2’ing fd of 0 to 1

Error dup2’ing fd of 0 to 2

Switchroot: mount failed: 22

Kernel Panic – not syncing: Attempted to kill init!

************************************************** ************************************************** **************************

My grub.conf looks this way:



#boot=/dev/sda5

default=3

timeout=5

splashimage=(hd0,4)/boot/grub/splash.xpm.gz

hiddenmenu

title Fedora Core (2.6.11-1.1369_FC4smp)

root (hd0,4)

kernel /boot/vmlinuz-2.6.11-1.1369_FC4smp ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-2.6.11-1.1369_FC4smp.img

title Fedora Core-up (2.6.11-1.1369_FC4)

root (hd0,4)

kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet

initrd /boot/initrd-2.6.11-1.1369_FC4.img

title Fedora Core 4 (2.6.15.4)

root (hd0,4)

kernel /boot/vmlinuz-2.6.15.4 ro root=/dev/sda5 rhgb quiet

initrd /boot/initrd-2.6.15.4.img

title Other

rootnoverify (hd0,0)

chainloader +1

************************************************** ************************

My fdisk -l looks like this:

Disk /dev/sda: 60.0 GB, 60011642880 bytes

255 heads, 63 sectors/track, 7296 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 * 1 3824 30716248+ c W95 FAT32 (LBA)

/dev/sda2 3825 7295 27880807+ f W95 Ext'd (LBA)

/dev/sda5 3825 7167 26852616 83 Linux

/dev/sda6 7168 7294 1020096 82 Linux swap / Solaris

And the fstab entry looks like this :

# This file is edited by fstab-sync - see 'man fstab-sync' for details

LABEL=/ / ext3 defaults 1 1

/dev/devpts /dev/pts devpts gid=5,mode=620 0 0

/dev/shm /dev/shm tmpfs defaults 0 0

/dev/proc /proc proc defaults 0 0

/dev/sys /sys sysfs defaults 0 0

LABEL=SWAP-sda6 swap swap defaults 0 0

/dev/hdb /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0

************************************************** ************************************************** ************************

What could be the reason for this??
 
Old 04-12-2006, 01:34 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet

kernel /boot/vmlinuz-2.6.15.4 ro root=/dev/sda5 rhgb quiet

Considering that the kernel compilation went fine I can recommend that you should try out "root=LABEL=/ " for your compiled kernel also

regards
 
Old 04-12-2006, 02:02 AM   #3
bhuvanmital
LQ Newbie
 
Registered: Dec 2005
Posts: 23

Original Poster
Rep: Reputation: 15
I have already tried with that but it doesn't work either. It was only after it failed i tried making root equal to the device (/dev/sda5). Can you suggest some other alternative?
 
Old 04-12-2006, 02:09 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Do you have suport for ext2 FS built in your kernel??

follow this thread too,I think you can get some good directions here

https://www.redhat.com/archives/atar.../msg00018.html

regards
 
Old 04-13-2006, 01:27 PM   #5
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
I may be wrong but don't you need in fstab:

/dev/sda5 / ext3 defaults 1 1

???

Sören
 
Old 04-14-2006, 01:29 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
well the line

LABEL=/ / ext3 defaults 1 1

in fstab files says it all

Here tha partition that has been marked as root will be used mount at /

the problem can arise if you more than 1 partition marked as root

regards
 
Old 04-14-2006, 07:30 AM   #7
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Why does it say:

Root (hd0,4)

Filesystem type is ==>ext2fs<==, partition type 0x83

And here:

Kernel /boot/vmlinuz-2.6.15.4 ro root=LABEL=/1 ==>rootfstype=ext3<== enforcing=0 rhgb quiet
 
Old 04-14-2006, 07:41 AM   #8
Sören Schneider
Member
 
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
Shouln't:
kernel /boot/vmlinuz-2.6.15.4 ro root=/dev/sda5 rhgb quiet
Be:
kernel /boot/vmlinuz-2.6.15.4 ro root=LABEL=/ rhgb quiet

???
 
Old 04-16-2006, 11:55 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally Posted by Sören Schneider
Shouln't:
kernel /boot/vmlinuz-2.6.15.4 ro root=/dev/sda5 rhgb quiet
Be:
kernel /boot/vmlinuz-2.6.15.4 ro root=LABEL=/ rhgb quiet

???
I had suggested the same in my first post

regards
 
Old 04-17-2006, 12:00 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Quote:
Originally Posted by Sören Schneider
Why does it say:

Root (hd0,4)

Filesystem type is ==>ext2fs<==, partition type 0x83

And here:

Kernel /boot/vmlinuz-2.6.15.4 ro root=LABEL=/1 ==>rootfstype=ext3<== enforcing=0 rhgb quiet
Well ext3 is notjing but ext2fs with journalling support

regards
 
  


Reply



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
fedora core 3 installation kernel panic - not syncing woutervw Linux - Newbie 26 08-29-2007 09:13 PM
Fedora Core 2 Kernel Panic smOked^ Fedora - Installation 3 02-10-2005 03:29 AM
kernel panic trying to bood fedora core 3 poiuytrewq Linux - General 1 12-31-2004 07:03 AM
Fedora Core 2 Kernel Panic On Vmware cperdana Fedora 10 10-08-2004 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration