Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with grub.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
whitetr6
n00b
n00b


Joined: 11 Mar 2005
Posts: 28

PostPosted: Fri Mar 11, 2005 2:27 pm    Post subject: Problem with grub.conf Reply with quote

I think I may have my grub.conf mis-configured. I installed Gentoo using Knoppix, and used a stage3

My 3 separate physical drives (SCSI) are configured as follows:

boot: /dev/sda1
swap: /dev/sdb1
root: /dev/sdc1

grub-install reports this all correctly. After rebooting, I get Error 15, File Not Found

my grub.conf looks like this:

default 0
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.10-r6
root (hd0,0)
kernel /kernel-2.6.10-gentoo-r6 root=/dev/sdc1

[EOF]

I'm new to Grub. Before I mess something up further that may be difficult to fix, is the problem the line that says root (hd0,0) ? If (hd0,0) is referring to a physical separate hard disk, then maybe I should be using (hd0,2), or is it (hd2,0) ?? Sorry, the syntax is confusing me a bit. Thanks!
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Fri Mar 11, 2005 2:45 pm    Post subject: Reply with quote

I'm a bit confused by your partitions' choice but the grub.conf seems ok to me, tell us more about what's happening at boot time: does the menu appears, what happenesd exactly when you tip enter etc...

Does grub tells your an error no X or is something quicly launched (the kernel) and it stops with a kernel panc?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Fri Mar 11, 2005 2:47 pm    Post subject: Reply with quote

Enlight wrote:
Does grub tells your an error no X or is something quicly launched (the kernel) and it stops with a kernel panc?

He said:
whitetr6 wrote:
After rebooting, I get Error 15, File Not Found

_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
Tahoe_Strider
Apprentice
Apprentice


Joined: 06 Jul 2003
Posts: 152
Location: Amador County, Awarded 9th Best Place to live in Rural America

PostPosted: Fri Mar 11, 2005 3:11 pm    Post subject: Reply with quote

Your /dev/sdc drive may not be what you really think it is. I had a problem similar to this on a friends' machine where he had his Gentoo instalation on a SATA drive which was "presented" as dev/sdc. Turned out that he had a USB Flash Card Reader, which also gets recognized as a storage device, that was causing the problem. When we changed /dev/sdc to /dev/sdb...the problem was resolved. HTH
_________________
"It does not require a majority to prevail, but rather an irate, tireless minority keen to set brush fires in people's minds."
Back to top
View user's profile Send private message
whitetr6
n00b
n00b


Joined: 11 Mar 2005
Posts: 28

PostPosted: Fri Mar 11, 2005 3:11 pm    Post subject: Problem with grub.conf Reply with quote

Yes, I get the splash. The error occurs as soon as I hit enter.

Explanation on the drives: I have 3 physical SCSI drives, 2 that are 9.1 GB and one 18.2.

It's an old system, and is mostly for playing/experimenting with Gentoo. So I don't really care about the wasted space on each drive. So what I did is,

1. Configured the first partition on the first drive as boot: /dev/sda1
2. Configured the first partition on the second drive as swap: /dev/sdb1
3. Configured the first partition on the third drive as root: /dev/sdc1

That's why I was trying to figure out if my problem is that I need to specify the root to be the 3rd drive in grub.conf. In other words, is /dev/sdc1 equal to (hd2,0) <-- first partition on the third drive

Thanks for the help!
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Fri Mar 11, 2005 3:36 pm    Post subject: Reply with quote

kimchi_sg wrote:
Enlight wrote:
Does grub tells your an error no X or is something quicly launched (the kernel) and it stops with a kernel panc?

He said:
whitetr6 wrote:
After rebooting, I get Error 15, File Not Found


Damn emerge eyes now!

EDIT 1 :root=/dev/* is an argument passed to the kernel, probleme cannot come from here. (for the moment :wink: )

EDIT 2 : what about :
Code:
kernel (hd0,0)/kernel-2.6.10-gentoo-r6 root=/dev/sdc1


ps sure it's exactly the name of your kernel? (

a good thing would be to use the live cd , mount your partitions again and chroot and post here the output for :

Code:
ls -l /boot


you should see isomething like : boot -->.

If not :

Code:
cd /boot
ln -s  boot .
Back to top
View user's profile Send private message
dacha_san
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2004
Posts: 82

PostPosted: Fri Mar 11, 2005 4:15 pm    Post subject: Re: Problem with grub.conf Reply with quote

whitetr6 wrote:
I think I may have my grub.conf mis-configured. I installed Gentoo using Knoppix, and used a stage3

My 3 separate physical drives (SCSI) are configured as follows:

boot: /dev/sda1
swap: /dev/sdb1
root: /dev/sdc1

grub-install reports this all correctly. After rebooting, I get Error 15, File Not Found

my grub.conf looks like this:

default 0
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.10-r6
root (hd0,0)
kernel /kernel-2.6.10-gentoo-r6 root=/dev/sdc1

[EOF]

I'm new to Grub. Before I mess something up further that may be difficult to fix, is the problem the line that says root (hd0,0) ? If (hd0,0) is referring to a physical separate hard disk, then maybe I should be using (hd0,2), or is it (hd2,0) ?? Sorry, the syntax is confusing me a bit. Thanks!



First of all, your partition table looks too strange. Before you start installing Gentoo, put on the paper whether you have SATA disk or not, then check your MOBO to see which controller it is using and then you will be able to start with your installation using LiveCD. The best would be to use LivecD 2004.2 and then when the installation is finished, use portage to update your favorite distro. But, be prepared to spend many hours in the front of the computer, before you fire it up and get it working.

Cheers
Back to top
View user's profile Send private message
dcrook
n00b
n00b


Joined: 22 Jul 2004
Posts: 71

PostPosted: Fri Mar 11, 2005 11:17 pm    Post subject: Reply with quote

Just to repeat what Tahoe_Spider said the drive names may NOT be what you think they are. The drive names CAN be different than what you saw when you booted from the cd.

SCSI has the unique bug/feature that whatever harddisk you boot from always becomes /dev/sda. But if you boot from CD then it might get named something else. Now the name will be consistent unless you start adding more harddisks or messing with the scsi ids.

When I was setting up my system it took me forever to get past it because everything worked fine when I booted the CD.

Grubs naming scheme is a little wierd, but you get the idea. hd(0,0) is the first partition of the first hard disk. hd(0,1) is the 2nd partion of the first harddisk. hd(1,0) is the first partition of the 2nd hard disk.

What drive did you install grub on? Which drive is listed in your scsi bios as the boot drive? That drive should end up being /dev/sda.

Beyond that you can check the usual suspects for booting problems:

1) Not having the proper filesystem support and device drivers installed in your kernel. Check your kernel config. You need scsi disk support and the right scsi driver complied into your kernel. DO NOT COMPILE THESE AS MODULES. You will also need to have support for all the filesystems used by your disks. You didn't mention what filesystem you used on your drives.

2) Like Enlight pointed out, check the spelling of your kernel name. It has to be an exact match. Its an easy mistake to make.

3) Grub.conf, fstab problems. Your grub file looks right. Lets see the contents of your /etc/fstab
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Sat Mar 12, 2005 5:04 pm    Post subject: Reply with quote

Please, follow the grub error collection thread.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum