Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112234 - grub 0.96 gives file not found error even if file is really present
Summary: grub 0.96 gives file not found error even if file is really present
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-11 18:17 UTC by Vincent Leduc
Modified: 2006-09-07 22:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
GRUB configuration file (grub.conf,378 bytes, text/plain)
2005-11-12 06:01 UTC, Vincent Leduc
Details
GRUB device map (device.map,45 bytes, text/plain)
2005-11-12 06:02 UTC, Vincent Leduc
Details
/etc/fstab (fstab,1.24 KB, text/plain)
2005-11-12 06:18 UTC, Vincent Leduc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Leduc 2005-11-11 18:17:43 UTC
Upon trying to boot linux, grub gives error 15: file not found.  Upon using grub
tab completion, it is evident that the kernel image is indeed on the boot
partition and has the same file name as the one specified in the grub boot line.
 Lilo has no problem booting this kernel image.

Reproducible: Always
Steps to Reproduce:
1. Install gentoo following AMD64 installation handbook, restart computer.
2. Try to boot kernel image in grub
3. See error message
4. Edit boot line
5. Use tab completion to list all possible file names

Actual Results:  
All file names on boot partition are listed, including the one in the grub boot
line, which grub says is missing.

Expected Results:  
grub should have booted the present kernel image.

This was on a maxtor SATA drive using an nforce4 chipset (MSI neo4 Platinum SLI)
with an Athlon X2 3800+ (dual-core).  Gentoo installed with stage3 install from
Gentoo AMD64 universal CD 2005.1.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 01:41:37 UTC
grub version missing, grub.conf missing as well. Also post your /etc/fstab. We
need some real information to troubleshoot problems. 
Comment 2 Vincent Leduc 2005-11-12 06:01:56 UTC
Created attachment 72743 [details]
GRUB configuration file
Comment 3 Vincent Leduc 2005-11-12 06:02:47 UTC
Created attachment 72744 [details]
GRUB device map
Comment 4 Vincent Leduc 2005-11-12 06:18:28 UTC
Created attachment 72745 [details]
/etc/fstab
Comment 5 Vincent Leduc 2005-11-12 06:34:17 UTC
Here is a text "screenshot" of using TAB completion be placing cursor after
"grub edi> kernel /" and pressing TAB in GRUB at boot time:

<screenshot begins>

grub edit> kernel /kernel-2.6.12-gentoo-r6 root=/dev/sda5 vga=0x31B video=vesa>
 Possible files are: .keep boot kernel-2.6.12-gentoo-r6 config-2.6.12-gentoo-r6
map-2.6.12-gentoo-r6 grub

grub edit> kernel /kernel-2.6.12-gentoo-r6 root=/dev/sda5 vga=0x31B video=vesa>

<screenshot ends>

Using this boot line leads to error 15 file not found.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 06:44:23 UTC
If you change that to 'root (hd0,1)', does it work?
Comment 7 Vincent Leduc 2005-11-12 07:04:23 UTC
Added the following entry in grub.conf:

title=Test
root (hd0,1)
kernel /kernel-2.6.12-gentoo-r6 root=/dev/sda5 vga=0x31B
video=vesafb:mtrr,ywrap,1280x1024-32@60

This does not work, as hd0 is my other hard drive (not SATA, standard IDE PATA).
 In fact it hangs my computer.  I have a boot partition from a previous
installation of gentoo (x86) on (hd0,1).  However none of the kernel images on
this boot partition are named kernel-2.6.12-gentoo-r6, while there is an image
with that file name on hd1,1 (/dev/sda2).
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 07:08:13 UTC
You forgot to reopen the bug.
Comment 9 Vincent Leduc 2005-11-12 07:15:21 UTC
(In reply to comment #8)
> You forgot to reopen the bug.

Sorry, first time reporting a bug, as you can tell...
Comment 10 Vincent Leduc 2005-11-12 07:25:53 UTC
Changing back to needinfo so I can re open bug.
Comment 11 Vincent Leduc 2005-11-12 07:26:12 UTC
Missing info was added.
Comment 12 SpanKY gentoo-dev 2005-11-12 16:59:57 UTC
try with 0.97-r2
Comment 13 Vincent Leduc 2005-11-12 20:11:18 UTC
Ran emerge --sync.

Emerged GRUB 0.97-r2.

Ran grub-install /dev/sda2.

Same results.
Comment 14 Vincent Leduc 2005-12-17 11:42:34 UTC
Just tried to install Ubuntu breezy x86 (i386).  The same problem occurs with grub, which was automatically set-up by the ubuntu installer.  This is looking more and more like a hardware-specific bug.  No linux will ever install with grub on my computer :(
Comment 15 Jens Lindemann 2005-12-31 09:44:21 UTC
I don't think it's completely hardware-specific. I had the same problem when I tried to install Ubuntu on my system (Athlon 64 X2 4200+ on Asus A8N-SLI (NF4 SLI), 2 Maxtor 6L250S0 SATA-HDDs) - lilo didn't work either, but with Gentoo the problem didn't occur. 
Comment 16 Vincent Leduc 2006-01-01 10:03:42 UTC
Thanks, good to know, there is hope at least :).  In any case, I'm gonna try putting the boot partition on my standard ide hard drive (instead of my SATA) next to see if that does the trick.
Comment 17 genbug 2006-02-21 02:46:11 UTC
before giving up there's also 1.92 , dont know what state that is in , I dont see any bug reports here although it still seems to carry a hardmask
Comment 18 Vincent Leduc 2006-02-21 19:29:24 UTC
(In reply to comment #17)
> before giving up there's also 1.92 , dont know what state that is in , I dont
> see any bug reports here although it still seems to carry a hardmask
> 

What I can tell you for now is that grub works fine on my IDE hard drive.  What version it is I am not sure, since it was installed automagically by Ubuntu Breezy (x86).  I definitely want to try Gentoo again on my SATA hard drive, though I do not know when I will find some time to set it up.  I'll give it a try with grub 1.92 (which I didn't even know existed).  Thanks for the comment.

I just noticed something interesting too.  Jens Lindemann, in his comment, mentions that he had the same problem with his system : (Athlon 64 X2 4200+ on Asus A8N-SLI (NF4 SLI), 2 Maxtor 6L250S0 SATA-HDDs).  The 6L250S0 is precisely the SATA drive model I use as well.
Comment 19 Rüdiger Saßmannshausen 2006-05-22 10:22:03 UTC
Similar Problem here. Grub 0.97-r2. Also 2 Maxtor SATA-drives (not the same model, mine are 6V250F0), but ...... Kernel 2.6.16-r6 boots fine, 2.6.16-r8 does not. The kernels are made using genkernel, so the config should be almost the same. Any ideas, what I could check?
Comment 20 SpanKY gentoo-dev 2006-09-07 22:46:48 UTC
re-open in grub 0.97-r3 doesnt fix things