Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub error
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
Mathiasdm
n00b
n00b


Joined: 22 Jan 2005
Posts: 24

PostPosted: Fri Mar 18, 2005 5:34 pm    Post subject: Grub error Reply with quote

I give up :( I wasn't going to ask for help, but I don't know what I'm doing wrong. I've edited grub.conf over and over again, but VMware still won't boot :?

My harddrive partitions:
/dev/sda1 ==> /boot
/dev/sda2 ==> swap
/dev/sda3 ==> /
/dev/sda4 ==> /home

I compiled the kernel using genkernel.

The boot error:
root (hd0,2)
Filesystem type is reiserfs, partition type 0x83
kernel /kernel-2.6.10-gentoo-r6 doscsi root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3

Error 15: file not found
Press any key to continue...

My grub.conf:

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

title= Gentoo Linux 2.6.10-r6
root (hd0,2)
kernel /kernel-2.6.10-gentoo-r6 doscsi root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initrd-2.6.10-gentoo-r6

Any ideas would be appreciated ;-)
Back to top
View user's profile Send private message
djpharoah
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 186
Location: Irvine, California USA

PostPosted: Fri Mar 18, 2005 5:36 pm    Post subject: Reply with quote

did u compile reiserfs support in ur kernel?
Back to top
View user's profile Send private message
shmattie
n00b
n00b


Joined: 20 Sep 2003
Posts: 16

PostPosted: Fri Mar 18, 2005 6:19 pm    Post subject: Reply with quote

Your grub.conf should say root (hd0,0) and not root (hd0,2).

It is looking for your boot partition and not your root partition.
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 18, 2005 7:15 pm    Post subject: Re: Grub error Reply with quote

Mathiasdm wrote:
I give up :( I wasn't going to ask for help, but I don't know what I'm doing wrong. I've edited grub.conf over and over again, but VMware still won't boot :?

My harddrive partitions:
/dev/sda1 ==> /boot
/dev/sda2 ==> swap
/dev/sda3 ==> /
/dev/sda4 ==> /home

I compiled the kernel using genkernel.

The boot error:
root (hd0,2)
Filesystem type is reiserfs, partition type 0x83
kernel /kernel-2.6.10-gentoo-r6 doscsi root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3

Error 15: file not found
Press any key to continue...


First of all, your grub seams to be wrong. But before you correct it, while compiling your kernel take care of the details what is your HDD controller. As much as i can see from your message, you are using SATA drive, which can be controlled by nvidia or Promise ..controller, which has to be included not as module but built into the kernel. If you are using Promise controller your drives would be recognized as one of the following options:


/dev/hda
/dev/hdc
/dev/hde
/dev/hdg

Try, and if it doesn`t work, let me know. And don`t panic, we will find a solution. :-)

Good luck

My grub.conf:

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

title= Gentoo Linux 2.6.10-r6
root (hd0,2)
kernel /kernel-2.6.10-gentoo-r6 doscsi root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initrd-2.6.10-gentoo-r6

Any ideas would be appreciated ;-)
Back to top
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Fri Mar 18, 2005 8:07 pm    Post subject: Reply with quote

shmattie wrote:
Your grub.conf should say root (hd0,0) and not root (hd0,2).

It is looking for your boot partition and not your root partition.
This is the problem. Alot of people are thrown off by the GRUB syntax root (hd , ), versus the kernels sytax root= or real_root=. The line root (hd0,0) simply defines / for further commands passed to grub as (hd0,0)/ (for example). Where as the paramater root= that is passed to the kernel tells it where to look for the root filesystem. In the case of kernels compiled with Genkernel, the root filesystem at boot is an initrd, located at /dev/ram0. This ramdisk contains utilities used by the kernel for autodetecting and loading module device support. The real_root= parameter then points the kernel to the actual root filesystem.
_________________
"That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3060
Location: Korea

PostPosted: Fri Mar 18, 2005 9:14 pm    Post subject: Reply with quote

Sith_Happens wrote:
This is the problem. Alot of people are thrown off by the GRUB syntax root (hd , ), versus the kernels sytax root= or real_root=. The line root (hd0,0) simply defines / for further commands passed to grub as (hd0,0)/ (for example). Where as the paramater root= that is passed to the kernel tells it where to look for the root filesystem. In the case of kernels compiled with Genkernel, the root filesystem at boot is an initrd, located at /dev/ram0. This ramdisk contains utilities used by the kernel for autodetecting and loading module device support. The real_root= parameter then points the kernel to the actual root filesystem.


A less confusing (imo) way to look at it is:

the
Code:
root (hd0,0)
is telling grub "My boot record is located at the first partition of the first disk" and the
Code:
root=
for the kernel is telling the kernel where your root partition is.

So the difference is that grub is "interested" in your boot record location whereas the kernel is "interested" in your root partition.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3060
Location: Korea

PostPosted: Fri Mar 18, 2005 9:16 pm    Post subject: Reply with quote

And to summarize what was said before your grub.conf should be changed to look like this:

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

title= Gentoo Linux 2.6.10-r6
root (hd0,0)
kernel /kernel-2.6.10-gentoo-r6 doscsi root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3
initrd /initrd-2.6.10-gentoo-r6
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 19, 2005 1:10 am    Post subject: Reply with quote

Duplicate of https://forums.gentoo.org/viewtopic-t-122656.html
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