Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12591 - grub-0.90-r7 is buggy: results in "error 17" when trying to install it into mbr
Summary: grub-0.90-r7 is buggy: results in "error 17" when trying to install it into mbr
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Donny Davies (RETIRED)
URL: http://www.numlock.ch
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-22 16:30 UTC by Daniel Mettler
Modified: 2003-01-04 17:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Mettler 2002-12-22 16:30:48 UTC
grub-0.90-r7 (that's the current stable version in gentoo, presumably also 
present in most current livecd's and stages) resulted in an error 17 (see 
http://www.gnu.org/manual/grub-0.92/html_node/Stage2-errors.html) when i tried 
to install grub to the mbr (aka "setup (hd0)"). this means grub failed to 
install resulting in an "not" bootable gentoo. i do not know the reason for 
grub throwing this error, might have to do with me having reiserfs on /boot 
(though i correctly mounted it using the -o notail option). but this does not 
sound reasonable to me (why should grub care for the fs when installing to the 
mbr?)

however, there is no such error when i tried the same using the latest grub-
0.92-r1 (which works fine for me).

thus i suppose it's a bug in grub 0.90 or rather, a bug in conjunction with 
one of the patches applied to it (as i did not find any information regarding 
such a bug in both grub's bugzilla and changelog).

another work-around might be to use lilo (would have been my next step, not 
tested yet though)

i use a via eden samuel 2 cpu board (lex barebone) and stage3-i586_k6.3-
1.4_rc1.tar.bz2 (which appears to be fine besides this)
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2002-12-22 17:46:12 UTC
could you please paste the complete action you've done ?
Comment 2 Daniel Mettler 2002-12-22 19:12:57 UTC
well, exactly as described in the gentoo installation manual. i won't repeat 
each single step here... abbreveated, that's what i got:

/dev/hdc1 /boot reiserfs
/dev/hdc2 extended partition
/dev/hdc5 swap
/dev/hdc6 /     reiserfs

correct partition types etc.

mounted hdc6 to /mnt/gentoo, mounted -o notail hdc1 to /mnt/gentoo/boot,

chroot etc.

then grub
root (hd0,0)
setup (hd0)
quit

error appeared after setup (hd0). same error no matter how i tried to install 
grub (recreated the fs, umounted, remounted etc. etc.). but: no such error 
with the newer grub. that's why i suppose it's a grub bug.

actually, i am a bit surprised about grub seeing hdc as hd0. i thought it'd be 
hd2. anyway.
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-22 23:05:33 UTC
I'm hearing no negativity about 0.92-r1 -- time for unmasking soon maybe?
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2002-12-23 03:02:56 UTC
first error hdc1 reiser
for booting compatiblity use ext2

whats on hda and hdb ?

which hardware (ide controller and so on) do you use ?

Comment 5 Daniel Mettler 2002-12-24 10:24:12 UTC
> first error hdc1 reiser  that's not an error. it's perfectly ok as long as the partition is at least 100 mb (iirc), mounted with -o notail and stuff. do not forget reiserfs is in the stock kernel for a while now and appears to be rock-solid (can confirm this from my own experience; i have been using reiserfs for a long time already).  > for booting compatiblity use ext2  i have my reasons for choosing reiserfs instead of ext2 as boot partition fs for this barebone. no need to go into details here. besides, i do not have any troubles with my boot partition (works fine everything), i had troubles with grub-0.90 (solved with 0.92 :)  > whats on hda and hdb ?  hda was the temporarily attached dvd drive of my workstation (see http://www.icu.unizh.ch/~mettlerd/news/ if you're looking for some blurry pics ;). that's where i installed gentoo from.  hdb is void ;)  > which hardware (ide controller and so on) do you use ?  it's a via m/b with a via eden samuel 2 533 mhz cpu (lex barebone CV860A-3R53 on http://www.lex.com.tw/index1.htm). not very common but a fine thing nonetheless :) ide controller:  Bus  0, device   7, function  1: IDE interface: VIA Technologies, Inc. VT82C586B PIPC Bus Master IDE (rev 6). Master Capable.  Latency=32. I/O at 0xc000 [0xc00f].  haven't heard anything bad about it yet.  merry x-mas! :) 
Comment 6 Daniel Mettler 2002-12-24 10:29:01 UTC
oh well, and greets from konqueror of course ;) once again (sorry):

> first error hdc1 reiser

that's not an error. it's perfectly ok as long as the partition is at least 100
mb (iirc), mounted with -o notail and stuff. do not forget reiserfs is in the
stock kernel for a while now and appears to be rock-solid (can confirm this from
my own experience; i have been using reiserfs for a long time already).

> for booting compatiblity use ext2

i have my reasons for choosing reiserfs instead of ext2 as boot partition fs for
this barebone. no need to go into details here. besides, i do not have any
troubles with my boot partition (works fine everything), i had troubles with
grub-0.90 (solved with 0.92 :)

> whats on hda and hdb ?

hda was the temporarily attached dvd drive of my workstation (see
http://www.icu.unizh.ch/~mettlerd/news/ if you're looking for some blurry pics
;). that's where i installed gentoo from.

hdb is void ;)

> which hardware (ide controller and so on) do you use ?

it's a via m/b with a via eden samuel 2 533 mhz cpu (lex barebone CV860A-3R53 on
http://www.lex.com.tw/index1.htm). not very common but a fine thing nonetheless
:) ide controller:

Bus  0, device   7, function  1: IDE interface: VIA Technologies, Inc. VT82C586B
PIPC Bus Master IDE (rev 6). Master Capable.  Latency=32. I/O at 0xc000 [0xc00f].

haven't heard anything bad about it yet.

merry x-mas! :)
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-01-04 04:42:28 UTC
0.92 is now stable in portage tree

is this still a issue or can we close this ?
Comment 8 Daniel Mettler 2003-01-04 08:24:44 UTC
imho it can be closed as this update fixes the major pain of grub 0.90.

we should just keep in mind that regarding grub, "stable" obviously not always 
means "stable". thus i'd suggest a rather conservative updating strategy, once 
a nicely working, well-tested version of grub is found.

fiddling around with buggy bootloaders is pretty annoying for most people (as 
it eventually can be a blocker during installation already).

(for reference: the problem seems to have been reported to grub's bug tracker 
quite a while ago: http://savannah.gnu.org/bugs/?
func=detailbug&bug_id=1427&group_id=68. same conclusion as here: updating grub 
solves the problem.)
Comment 9 Donny Davies (RETIRED) gentoo-dev 2003-01-04 17:42:17 UTC
ok.