Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A little grub help.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Fri Sep 24, 2004 11:36 pm    Post subject: A little grub help. Reply with quote

Allright a couple days ago I install gentoo where Windows was.

And I've been booting gentoo with my OLD gentoo's grub.

Well I decided to install grub today and all I get is an error 18.

here's my entry.

Code:

default=0
timeout=10
#splashimage=(hd0,0)/grub/splash.xpm.gz
title Gentoo Linux (2.6.8.1-mm2)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.8.1-mm2 ro root=/dev/hda1


Another thing is, this is the first time I've set up a system without /boot.

I also upgraded glibc for nptl last night.. don't know if that makes a difference.
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Sat Sep 25, 2004 2:53 am    Post subject: Reply with quote

Hmm, I'm looking through some manual pages and it looks like everything I have listed is correct..

I get "Error 18" during "Grub Stage 1.5" :|

I'm using ext3 for /dev/hda1 without a boot partition.
Back to top
View user's profile Send private message
TNorthover
Guru
Guru


Joined: 25 Jan 2004
Posts: 434
Location: Edinburgh, UK

PostPosted: Sat Sep 25, 2004 2:21 pm    Post subject: Reply with quote

It''s been a while since I meddled with grub, but if you have a look in /boot/grub, and make sure e2fs_stage1_5 is there. There should also be your menu.lst or whatever you've called it, and a stage2 file.

If one of those is missing, you could try rerunning grub to install it. I think I put it on hda directly rather than any partitions. I just redid it and worked out the commands I used:
Code:
root@hal9000 grub #grub
    GNU GRUB  version 0.94  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

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

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
 Running "embed /boot/grub/reiserfs_stage1_5 (hd0)"...  26 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+26 p (hd0,4)/boot/grub/stage2 /boot/grub/menu.lst"... su
cceeded
Done.

grub> quit


You'd replace the "root (hd0,4)" with "root (hd0,0)" and it would obviously recognise your ext3 filesystem instead (it may recognise it as ext2, but that's fine. The only difference is when writing and grub won't be doing that directly.

With luck that should work, but make sure your menu.lst is in /boot/grub (probably before you do the above).
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Sat Sep 25, 2004 4:01 pm    Post subject: Reply with quote

I did everything as stated above..

And I still get the Error 18. :?

Crap, I don't know what I'm doing wrong.
Back to top
View user's profile Send private message
TNorthover
Guru
Guru


Joined: 25 Jan 2004
Posts: 434
Location: Edinburgh, UK

PostPosted: Sat Sep 25, 2004 4:31 pm    Post subject: Reply with quote

OK, looking on the internet, it seems going into BIOS and fiddling around with the hard drive's LBA settings might work (someone mentioned setting it to large instead of LBA, another turning LBA on -- it'll be very hardware dependent). Possibly along with this would be changing the setup line in installing grub to "setup --force-lba (hd0)".

If that doesn't work, I suspect a separate boot partition at /dev/hda1 will, but it's always a pain to fiddle with partitions when things are installed (It should be possible without destroying your install though, provided your data doesn't take up more than half the drive -- using parted to resize and shuffle things about).

Those are the only two solutions I can think of. The problem is that it's trying to read past the 1024 cylinder BIOS may impose. So the only solutions are to stop BIOS imposing that limit (LBA settings, possibly including the force-lba to make grub use the BIOS properly), or make sure it doesn't run into that limit (make a separate boot partition with the kernel and grub on, and make sure all of that partition is below 1024 cylinders).

Having said that, there may be another way (wipe the partition and make sure grub's the first thing on there), but it'd be very unreliable and fragile to grub being upgraded (and possibly kernel upgrades too) -- almost certainly not worth pursuing.
Back to top
View user's profile Send private message
amiatrome
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 180
Location: Campus | Arena Country Club | Home

PostPosted: Sat Sep 25, 2004 4:41 pm    Post subject: Reply with quote

Found it in the Grub manual. Maybe it will shed some light.

Quote:
18 : Selected cylinder exceeds maximum supported by BIOS
This error is returned when a read is attempted at a linear block address beyond the end of the BIOS translated area. This generally happens if your disk is larger than the BIOS can handle (512MB for (E)IDE disks on older machines or larger than 8GB in general).

_________________
blog | homepage | alias | prompts
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Sat Sep 25, 2004 8:18 pm    Post subject: Reply with quote

Well I'm emerging parted and about to install gparted..

Let's hope for the best, eh?
Back to top
View user's profile Send private message
TNorthover
Guru
Guru


Joined: 25 Jan 2004
Posts: 434
Location: Edinburgh, UK

PostPosted: Sat Sep 25, 2004 8:38 pm    Post subject: Reply with quote

Oh dear, no luck then?

At the risk of teaching my grandmother to suck eggs, I'd suggest shrinking your current partition. Creating another one at the end. Copying everything across. Deleting old one. Creating boot and root. Copying everything back from backup. Deleting backup partition. Growing new root.

A bit like those towers of Hanoi really, but I can't think of a quicker way.
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Sat Sep 25, 2004 8:40 pm    Post subject: Reply with quote

Heh, I'm just going to resize my root partition and create a /boot partition at the beginning.
Back to top
View user's profile Send private message
TNorthover
Guru
Guru


Joined: 25 Jan 2004
Posts: 434
Location: Edinburgh, UK

PostPosted: Sat Sep 25, 2004 8:56 pm    Post subject: Reply with quote

Eeek, apparantly you can't move the start block in resizing, so that's impossible. It mentions the restrictions at the homepage
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Sat Sep 25, 2004 9:02 pm    Post subject: Reply with quote

crap, I may just reinstall :\
Back to top
View user's profile Send private message
TNorthover
Guru
Guru


Joined: 25 Jan 2004
Posts: 434
Location: Edinburgh, UK

PostPosted: Sat Sep 25, 2004 10:15 pm    Post subject: Reply with quote

You could try LILO or something on the off-chance if you don't want to spend hours recompiling.
Back to top
View user's profile Send private message
miqorz
Veteran
Veteran


Joined: 04 Apr 2004
Posts: 1170
Location: Pissing into the wind.

PostPosted: Sat Sep 25, 2004 11:43 pm    Post subject: Reply with quote

I hate lilo (personal prefrence.)

I'm in Knoppix right now downloading a stage3 tarball.

It's a good thing I put home on it's own partition or I'd be really pissed right about now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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