LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 07-16-2009, 06:44 PM   #1
debianD
Member
 
Registered: Jul 2009
Posts: 37

Rep: Reputation: 16
kernel panic !


Greetings All,
I have just completed complete gentoo installation using step by step guidelines from handbook.
I am using vmware 6 on windows.
As per the exact instructions given in hadbook,
my partitions are:

/dev/hda1 ext3 boot
/dev/hda2 swap swap
/dev/hda3 ext3 root



grub.conf is :


default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.24-r5
root (hd0,0)
kernel /boot/kernel-2.6.24 root=/dev/hda3


When I boot.....

Kernel panic-not syncing :VFS unable to mount root fs on unknown-block (2,0)


Also showing me the message..


please append a correct "root=" boot option;here are the available options:
0800 10485760 sda driver:sd
0801 31626 sda1
0802 500377 sda2
0803 9953685 sda3
one more line...
and kernel panics


When I change root=/dev/sda3 from (/dev/hda3) it boots up and give this message :

fsck.ext3: No such file or directory while trying to open /dev/hda3
Superblock could not be read or does not define a correct ext2 filesystem
etc


and then asks me for root password,which I did not set.Is there any default password?
When I change root=/dev/sda3 ,it works fine when I boot in rescue mode but there the /boot/grub subdirectory is missing.
Is the problem due to Vmware,My vmware is using the virtual drive as IDE, so I have also used the drive as /dev/hda throught partition and mount.

Sorry for elaborating so much.
Help needed.

Cheers!!
 
Old 07-16-2009, 11:20 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
It's obviously sda3.

It fails now at a later stage because you probably forgot to sync /etc/fstab with that as well.

In rescue mode it boots because it doesn't mount /, what you see is only a ram image, that's why it misses most of the stuff.

Finally, the password should have been set during installation. You can use passwd to set it. For that you first need to boot from a livecd, and chroot to your gentoo drive, then use passwd.
 
Old 07-17-2009, 03:54 AM   #3
debianD
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 16
I am sending screenshots of my rescue mode..what I am confused about is..that my mount is not working..also I am using Vmware 6.5 and iso disk image.

I was suggested to do
Code:
mount /dev/sda3 /mnt/gentoo 
mount /dev/sda1 /mnt/gentoo/boot 
mount -t proc none /mnt/gentoo/proc 
mount -o bind /dev /mnt/gentoo/dev 
chroot /mnt/gentoo /bin/bash 
env-update 
source /etc/profile 
export PS1="(chroot) $PS1" 
passwd
But thats not working.
PFA of screenshots.

Cheers!!
Attached Thumbnails
Click image for larger version

Name:	Other 3-2009-07-17-01-40-59.JPG
Views:	15
Size:	53.3 KB
ID:	1022   Click image for larger version

Name:	Other 3-2009-07-17-01-49-02.JPG
Views:	20
Size:	40.9 KB
ID:	1023  
 
Old 07-17-2009, 04:37 AM   #4
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
It's very possible that your disk will be hda in the livecd and sda in your install, or viceversa, keep that in your mind while doing everything.
 
Old 07-17-2009, 04:47 AM   #5
debianD
Member
 
Registered: Jul 2009
Posts: 37

Original Poster
Rep: Reputation: 16
No it was hda throughout the process.
I am glad to affirm that I solved my problem.
Booted in rescue mode.
I checked ..

#mount
I founded that I was in chrooted environment so I need not to mount anything just need to edit fstab.
#mount -o remount,rw /

then edited the fstab.
Changed all hd*'s to sd*'s
save and exited

#mount -o remount,ro /

Reeboted as normal.

Things worked.

Thanks for your help.

Cheers!!
 
  


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
upgrading Fedora Core 3 kernel 2.6.9-1.667 to 2.6.26.3 manually+kernel panic error LinuxLovinNoob Linux - Newbie 7 12-17-2008 08:45 PM
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM
kernel panic (narius panic) narius Linux - Newbie 3 06-20-2002 03:56 PM
Kernel panic making me panic! Linux_N0oby Linux - Software 19 05-29-2002 12:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

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