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

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Mr. Garr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2003
Posts: 130
Location: Shangri-La

PostPosted: Mon Jan 05, 2004 9:11 pm    Post subject: Problem with configuring grub Reply with quote

I have a problem with grub while I install my gentoo, i emerged grub, then while i want to configure it i get:
Code:

grub> root (hd0,0)
 Filesystem type is xfs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found


I would be gratefull for any help
_________________
Illuminatus Primus
Back to top
View user's profile Send private message
Mr. Garr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2003
Posts: 130
Location: Shangri-La

PostPosted: Mon Jan 05, 2004 9:38 pm    Post subject: Reply with quote

ah and i don't have any sepparate /boot partition
/ is on /dev/hda1
_________________
Illuminatus Primus
Back to top
View user's profile Send private message
yak8998
n00b
n00b


Joined: 06 Jun 2003
Posts: 35

PostPosted: Mon Jan 05, 2004 9:44 pm    Post subject: Reply with quote

I'm having the same problem, my thread is right below yours =/

I think your problem might be you need a seperate boot partition tho
_________________
"ignorance is bliss for stupid people."
www.primotechnology.com
Back to top
View user's profile Send private message
Mr. Garr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2003
Posts: 130
Location: Shangri-La

PostPosted: Mon Jan 05, 2004 9:48 pm    Post subject: Reply with quote

heh I haven't noticet your thread, sorry :)

But i'm instlling gentoo not for the first time, and i allways had the same configuration, and never had any problems :|
_________________
Illuminatus Primus
Back to top
View user's profile Send private message
Mr. Garr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2003
Posts: 130
Location: Shangri-La

PostPosted: Mon Jan 05, 2004 9:48 pm    Post subject: Reply with quote

heh I haven't noticed your thread, sorry :)

But i'm instlling gentoo not for the first time, and i allways had the same configuration, and never had any problems :|
_________________
Illuminatus Primus
Back to top
View user's profile Send private message
mikecore
Guru
Guru


Joined: 29 Dec 2003
Posts: 342
Location: Toledo, Ohio

PostPosted: Mon Jan 05, 2004 9:51 pm    Post subject: I am a noob to Reply with quote

your supposed to have setup 3 partions with Fdisk

hda1 = boot ext2 (think thats what the install recommended )
hda2 = swap
hda3 = root (and what ever Files system you choose)

I don't know if thats your problem.

If you follow the install guide You will have a working Gentoo Box. its alot of reading but its
worth it

Also if your a noob like me it recommended a stage three install to make it a little easier on you.

it looks like you where messing with a stage one
Back to top
View user's profile Send private message
FreeFly42
l33t
l33t


Joined: 03 Nov 2003
Posts: 848
Location: Houston, TX

PostPosted: Tue Jan 06, 2004 8:32 am    Post subject: Reply with quote

You don't need a separate /boot partition if you don't want one. Can you post a listing of your /boot/grub folder? (And /boot, just for kicks)

Edit: when you emerge grub it should put some stage 1.5 files in your /boot/grub folder, specifically the one you need is the xfs 1.5 file. The grub install command is complaining that it can't find it.
_________________
Kent

Planes are dangerous, get out of 'em quick
Back to top
View user's profile Send private message
Mr. Garr
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2003
Posts: 130
Location: Shangri-La

PostPosted: Wed Jan 07, 2004 1:40 pm    Post subject: Reply with quote

heh i reinstalled everything hoping that it'll be ok now :D
now it gives me this :
Code:

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/xfs_stage1_5" exists... yes
 Running "embed /boot/grub/xfs_stage1_5 (hd0)"...  0 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+0 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... failed

Error 6: Mismatched or corrupt version of stage1/stage2


my /boot/grub folder looks like this:
Code:

ls /boot/grub/
e2fs_stage1_5  ffs_stage1_5      jfs_stage1_5    reiserfs_stage1_5  stage1  vstafs_stage1_5
fat_stage1_5   grub.conf.sample  minix_stage1_5  splash.xpm.gz      stage2  xfs_stage1_5


and /boot:
Code:

Knoppix linux # ls /boot
boot  bzImage  grub

_________________
Illuminatus Primus
Back to top
View user's profile Send private message
FreeFly42
l33t
l33t


Joined: 03 Nov 2003
Posts: 848
Location: Houston, TX

PostPosted: Wed Jan 07, 2004 5:00 pm    Post subject: Reply with quote

From the GRUB messages it would seem something went wrong (or was corrupted after the fact) with your grub emerge. I would do:
Code:
cp /boot/grub/grub.conf /
emerge -C grub
rm /boot/grub/*
emerge grub
mv /grub.conf /boot/grub/

Also, before installing GRUB again, try backing up your MBR, then erase the boot portion:
Code:
dd if=/dev/hda of=mbr bs=512 count=1
dd if=/dev/zero of=/dev/hda bs=446 count=1

The first line will create a binary file called mbr which contains a copy of your MBR. The second line will erase the bootloader portion of your MBR while leaving your partition table untouched
Now go ahead and re-install Grub:
Code:
# grub
<grub> root (hd0,0)
<grub> install (hd0)

_________________
Kent

Planes are dangerous, get out of 'em quick
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2019
Location: Earth

PostPosted: Mon Jan 26, 2004 7:40 am    Post subject: Reply with quote

Hello,

I too am now getting Error 15: file not found with grub. It seems to be searching for a stage1 file in the grub directory.. The thing is, there is a stage2 file in the grub directory but grub doesn't seem to care about that one. I've reformatted my boot partition, I've recompiled the kernel, re-emerged grub (after unmerging it) and nothing seems to work.

My error is the exact same as the author of this post other than the fact that all my partitions are Reiser..

I'm not fond of Lilo and prefer to stick with grub as that is what is installed on all my gentoo installs....

Executing the 'root' command --> 'root (hd0,0)' works fine. 'setup(hd0) is what dumps the error about not being able to find this stage1 file.

I thought I'd cheat by copying the stage1 from my server to the PC (I suspected it wouldn't work due to ubercustomization but I figured I had nothing to lose) but that didn't work either..

This is a stage1 install (x86) and I'm using the xfs sources (2.4.24-r1). Anyone know what's up?

This post did not help: http://forums.gentoo.org/viewtopic.php?t=122656 .. It basically says to make sure the file exists.. Well, the file doesn't exist and I have no clue as to how to MAKE it exist using the proper methods...
Back to top
View user's profile Send private message
kompressor
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2003
Posts: 127
Location: Randolph, VT

PostPosted: Mon Jan 26, 2004 10:13 pm    Post subject: Reply with quote

Im having the same problem as the author as well. I have boot on the same partition as everything else. Even making a binary of grub and installing it that way on my machine. it fails at boot.

This was my first time trying grub. which as severely tained it. I doubt I'll be making the switch any time in this millenia.
Back to top
View user's profile Send private message
lorinton
n00b
n00b


Joined: 22 Jan 2004
Posts: 16

PostPosted: Tue Jan 27, 2004 6:24 pm    Post subject: Reply with quote

The ~x86 version of grub in portage (0.93.20031222) appears to be flawed. It does not provide the stage1 files. I was unable to boot after doing an emerge -u world. After reverting to the older version (0.93.20030118) all was well again.
Back to top
View user's profile Send private message
dirtboy
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 263
Location: Pascagoula, MS

PostPosted: Tue Jan 27, 2004 8:06 pm    Post subject: Reply with quote

Run
Code:
grub-install /dev/bootdevice
where bootdevice is your boot partition. That will install your stages onto the device you specify and let you run setup from the grub prompt.
Back to top
View user's profile Send private message
idoneus
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 243
Location: Graz, Austria

PostPosted: Tue Jan 27, 2004 9:58 pm    Post subject: Reply with quote

-Amoeba- wrote:
This post did not help: http://forums.gentoo.org/viewtopic.php?t=122656 .. It basically says to make sure the file exists.. Well, the file doesn't exist and I have no clue as to how to MAKE it exist using the proper methods...
Until now all grub error 15 that I've read about where due to a missing kernel.
Your case is special, since grub seems to not be installed correctly. I'll add it to the guide, as well as dirtboy's suggestion.
Back to top
View user's profile Send private message
roTor
n00b
n00b


Joined: 21 Apr 2002
Posts: 55
Location: Atlanta, GA

PostPosted: Sun Feb 01, 2004 4:53 pm    Post subject: Reply with quote

dirtboy wrote:
Run
Code:
grub-install /dev/bootdevice
where bootdevice is your boot partition. That will install your stages onto the device you specify and let you run setup from the grub prompt.


Same problem with a "Error 15; File not found". Dirtboy's solution fixed that and let me finish the grub install.
_________________
Even if you're on the right track, you'll get run over if you just sit there.
-- Will Rogers
Back to top
View user's profile Send private message
astaines
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2004
Posts: 81
Location: Ireland

PostPosted: Sat Nov 06, 2004 9:55 pm    Post subject: Error 15 on a Compaq DL380 [Copy] Reply with quote

Problem :- Grub crashes out at
Code:

grub> root (hd0,0)
 Filesystem type is extfs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found


while trying to install GENTOO on a Compaq DL380.

Solution

Code:

1) CFLAGS="" emerge grub
2) grub-install hd0
3) grub
   grub> root (hd0,0)
   grub> setup (hd0)


Seems to work fine.
Back to top
View user's profile Send private message
blackphiber
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2003
Posts: 86
Location: IL

PostPosted: Thu Feb 03, 2005 10:42 pm    Post subject: Reply with quote

having a very similar problem see here and none of these suggestions worked for me.
Back to top
View user's profile Send private message
Caco_Patane
n00b
n00b


Joined: 23 Apr 2003
Posts: 13

PostPosted: Sat Apr 26, 2008 1:31 pm    Post subject: Reply with quote

I've solve it doing:

Code:
cp /lib/grub/i386-pc/* /boot/grub


The stage files reside there.
_________________
Caco_Patane <!>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
G! dpu s:--- a-- C++ UL++ P+ L++ E---- W+++ N- o-- K- w--
O---- M- V- PS+++ PE Y PGP- t++ 5-- X+ R+++ tv++ b++ DI--- D+
G++ e h! r++ z**
------END GEEK CODE BLOCK------
Back to top
View user's profile Send private message
vasya
n00b
n00b


Joined: 23 Jun 2005
Posts: 5

PostPosted: Wed Aug 10, 2011 10:08 am    Post subject: Reply with quote

Mr. Garr wrote:
heh i reinstalled everything hoping that it'll be ok now :D
now it gives me this :
Code:

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/xfs_stage1_5" exists... yes
 Running "embed /boot/grub/xfs_stage1_5 (hd0)"...  0 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+0 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... failed

Error 6: Mismatched or corrupt version of stage1/stage2


my /boot/grub folder looks like this:
Code:

ls /boot/grub/
e2fs_stage1_5  ffs_stage1_5      jfs_stage1_5    reiserfs_stage1_5  stage1  vstafs_stage1_5
fat_stage1_5   grub.conf.sample  minix_stage1_5  splash.xpm.gz      stage2  xfs_stage1_5


and /boot:
Code:

Knoppix linux # ls /boot
boot  bzImage  grub


I have the same problem. Grub was merge with gcc-4.6.1. I solve this problem remerge grub with gcc-4.5.3. Merge grub with gcc-4.6.1 reproduce error 6 again.
Back to top
View user's profile Send private message
will824
n00b
n00b


Joined: 03 Jul 2003
Posts: 16
Location: Medellin, Colombia

PostPosted: Thu Aug 18, 2011 4:25 am    Post subject: Reply with quote

I can confirm the culprit was gcc-4.6.1

Try to emerge grub with a previous version of GCC, example gcc-4.5.0 and it will work.

gcc-4.6.1 is great specially for corei7 processors but is still a bit unstable. The risks of being on the edge ;)
_________________
--
Will
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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