LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


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

Rep: Reputation: 15
Unable to mount ext3 on laptop: kernel panic


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, 02:20 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
in your fstab file and menu.lst, replace
LABEL=/ with /dev/hda4

(or whatever partiition your root is, i think hd(0,4) is first ide - master, partition 4,
that is device /dev/hda4 in linux)

FYI:
/dev/hda primary ide - master
/dev/hdb primary ide - slave
/dev/hdc secondary ide - master
/dev/hdd secondary ide - slave

and the numbers 1-4 for primary partitions and 5 or greater for logical ones.


hth,
Flo

and btw: one posting is normally enough,
you'll get more answers without spamming the forum
 
Old 04-12-2006, 02:32 AM   #3
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
Hi there


hd(0,4) is first ide - master, partition 4,

is not correcnt

hd(0,4) stands for 5th partition not for 4th

also since he is not having any issues while booting with older kernels,then i do not think he need to replace the entry in /etc/fstab.
Now there can be a problem with the kernel that he has compiled.

regards
 
Old 04-12-2006, 02:47 AM   #4
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
you're right, and of course with a sata disk he has to use /dev/sda* instead /dev/hda*

seems that the sata modules are not compiled in or not correctly loaded by initrd...

but I never used initrd and don't hava a SATA system, so I'm out...

good luck anyway,
Flo
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic - Unable to mount fs dave`2005 Slackware 12 04-14-2006 08:00 AM
kernel panic - unable to mount root fs Steve Riley Linux - Hardware 1 02-01-2006 11:38 AM
Kernel Panic: Unable to mount VFS pafrica Slackware 21 01-26-2006 08:42 PM
2.2 --> 2.65: Kernel panic, unable to mount root. gaea Debian 5 04-28-2004 01:10 PM
EXT3-fs: unable to read superblock... Kernel panic: no init found. ebakunin Linux - General 2 06-16-2002 10:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:23 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