LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-22-2005, 12:18 AM   #1
iirish
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
Grub = Kernel panic


I have just installed gentoo and everything was fine until i decided to try to use grub instead of lilo. I am dual booting with. When i boot i get the following error.

ds: no socket drivers loaded
Kmod: failed to exec /sbin/modpobe -s -s to lock-Major-s, error = 2
Please append a correct "root=" boot option
Kernel panic: VFS : unable to mount root fs on 03:04

my grub.conf file looks like this

default 0
timeout 30
splashimage=(hd0,1)/grub/splash.xpm.gz

title=Gentoo Linux 2.4.28-gentoo-r8
root (hd0,1)
kernel (hd0,1)/kernel-2.4.28-gentoo-r8 real_root=/dev/hda4
initrd (hd0,1)/boot/System.map-2.4.28-gentoo-r8

title=Windows
rootnoverify (hd0,0)
makeactive
chainloader +1


my fstab looks like this
/dev/hda1 /windows ntfs noauto,ro 0 0
/dev/hda2 /boot ext2 noauto,noatime 1 1
/dev/hda4 / ext3 noatime 0 0
/dev/hda3 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/cdroms/cdrom1 /mnt/cdrom1 iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

none /proc proc defaults 0 0

none /dev/shm tmpfs defaults 0 0



any help would be very much appreciated as gentoo take half a lifetime to install. Thanks in advance.
 
Old 04-22-2005, 12:50 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Code:
title=Gentoo Linux 2.4.28-gentoo-r8
root (hd0,1)
kernel /kernel-2.4.28-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda4 udev
initrd /System.map-2.4.28-gentoo-r8

Now, I'm completely un-aware of any reason to put the System.map in the initrd line, but whatever floats your boat. Since you have the line "root (hd0,1)" you do not need to include its location on every consecutive line. Also, did you use genkernel or compile manually? There are to many unknowns for my answer to work, but your welcome to try.

Last edited by musicman_ace; 04-22-2005 at 12:56 AM.
 
Old 04-22-2005, 01:33 AM   #3
iirish
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Yeah, about that System.map, I was just trying things and forgot to change it back. I changed the code to what you said, but the errors stayed the same except hda4 changed to ram0 and 03:04 changed to 01:00. Thanks again for your help.
 
Old 04-22-2005, 05:32 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
which filesystems did you include in the kernel? Which filesystems are you using?
 
Old 04-22-2005, 09:11 AM   #5
iirish
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
i'm using ext2 for /boot and ext3 for /root
 
  


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
Grub Kernel Panic CloudBuilder Linux - General 3 02-07-2005 05:11 PM
kernel panic, grub and fdisk daigoro_cub Linux - Newbie 5 09-14-2004 02:15 PM
Grub w/ Gentoo 2.6.3 - Kernel Panic smehi Linux - Newbie 3 03-21-2004 11:39 PM
grub.conf and Kernel Panic!! phekno Linux - Software 4 10-15-2003 11:08 PM
Grub.conf - Kernel Panic. liguorir Linux - Software 2 06-29-2003 01:03 PM

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

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

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