Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Guess what? Grub troubles...
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
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Sat Jan 25, 2003 5:42 pm    Post subject: Guess what? Grub troubles... Reply with quote

Well, I ran (let's say walked) across the installation process, closely following the guide, and all went fine until Grub-time.
I installed Gentoo on my secondary master hard disk, XP is on primary master. Before doing so, I resized a previous NTFS partition, leaving raw diskspace at the beginning of the disk. Then I successfully partitioned this space with a large root and a small boot. Swap is on the other disk.
On to the problem.

Code:
# grub

grub> root(hd1,2) //first weirdness, grub detects a hd1,0 type 7 partition.
grub> setup (hd1) //complains, I retry, works fine (or so it seems).
grub> quit


Now at Step 28 of the guide:

Code:
#etc-update //complains that there's nothing to update!
#reboot


After rebooting and telling BIOS to do so from hd1, I get a really screwed up Grub screen (barely readable, grey with vertical black stripes) with the two options I put in grub.conf.

If I choose Gentoo, it complains there's no such partition and goes back to the menu. If I choose XP, it gets stuck at the ... chainloader+1 screen.

Telling BIOS to boot from hd0 (XP installed), everything works fine, BUT
Partition Magic displays my second hard disk as BAD, not detecting any partitions. Luckily, no data is lost and the partitions are still there. Pheeew!

So I try to reboot from the Livecd, mount partitions and run Grub again. Now the setup command won't work, giving Error 15.

What now? Does the disk's MBR need fixing? Would using LILO and ignoring Grub automagically do the trick? Did I do something else wrong?

Help would be very appreciated. :)

EDIT: I just remembered that I din't perform the dd operation when suggested. Hell if I know why. :roll:

What if I just restart from scratch? I have rescue disks from Partition Magic, created just before beginning the Gentoo installation.


Last edited by xenon on Sat Jan 25, 2003 6:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
mrhodes
Guru
Guru


Joined: 01 May 2002
Posts: 310
Location: Halifax, NS

PostPosted: Sat Jan 25, 2003 6:48 pm    Post subject: Reply with quote

not sure if this would help, but why don't oyu install grub on the primary drive?

Sure it will overwrite the MBR, but as long as you have a menu option to load windows it should come up.

also, what partition is the /boot partition on?

from your line in grub => root(hd1,2) that makes me think that it is on /dev/hdb3 ...

Is that the case? if so, no problem, but it not, you have to change that root line to point to the /boot partition.

Hope that helps,


Mike
Back to top
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Sat Jan 25, 2003 6:58 pm    Post subject: Reply with quote

Thanks for your interest.

I don't want to install grub on my primary master (thus overwriting the MBR) to avoid the danger of screwing my Windows install (and possibly data). Should I do as you suggest, and make a mistake, I'd be probably locked out from both XP and Gentoo - not something I'm looking for. :wink:

First of all, linux partitions are hdc3 and hdc4, since I have a cd burner on primary slave, and I made a mistake in my previous post: XP is on primary master, Gentoo on secondary master, not primary slave.
Right now, I'm starting to feel stupid. :roll:
In my understanding, Gentoo required 3 partitions: root, boot and swap.
I thought boot was some kind of backup, not to be used (not even mounted) unless something's wrong. So I pointed grub to my root partition. Is this my Oh So Big mistake that's causing troubles? :(
Well, I guess I can try while I wait for more hints.

Thanks again.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Jan 25, 2003 7:02 pm    Post subject: Reply with quote

xenon wrote:
So I pointed grub to my root partition. Is this my Oh So Big mistake that's causing troubles? :(
Yes. GRUB's notion of "root" is "where the kernel is", which in the case of a default Gentoo install is the /boot partition.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Sat Jan 25, 2003 7:46 pm    Post subject: Reply with quote

Thanks. I'm afraid I don't really get along with Grub. Something wrong in using LILO instead? I think I'll restore my previous partition structure and restart from scratch, since after various retries and changes to the Grub setup, I still didn't manage to boot Gentoo (nor XP, by the way).

Is the dd command that I didn't use the first time in any way dangerous (or plain harmful) for preexistent NTFS partitions on the drive where it's called?

I like this place, thanks for your support. :)
Back to top
View user's profile Send private message
kraylus
l33t
l33t


Joined: 07 Jun 2002
Posts: 648
Location: ft.worth.tx

PostPosted: Sat Jan 25, 2003 9:14 pm    Post subject: Reply with quote

dd has nothing to with this situation. your problem lies with your telling the bios to boot the other hd when you previously told grub something different. linux will always know what hd is installed where, but grub doesn't. grub goes by what your bios tells it. so if you tell grub one thing, then change it on grub, you can't expect grub to work.

my advice:

tell your bios to boot the first hd first. that way your bios, grub and linux are all seeing the same thing.

next, don't be a baby ;) install grub on your windows hd's mbr. it will work like a charm.

other option: set your bios to boot your second hd first and THEN give grub those settings. but tell grub that your second hd is actually the first. thus, instead of typing (hd1,2) you will type (hd0,2) because grub sees what your bios sees.

at least, this has been my experience. grub is a little bitch and you have to give it what it wants ;)

good luck,

ryan
_________________
I used gentoo BEFORE it was cool.
Back to top
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Sat Jan 25, 2003 9:20 pm    Post subject: Reply with quote

Ok. I understand what you mean. Now I'm gonna try it. But I still think Grub is a bit too user-hostile, especially in its lack of consistency with the way linux itself sees and names drives.

On a related topic, I officially hate Partition Magic. It turns out that the bitch doesn't backup your MBR. Its rescue disks are totally unuseful. Now grub correctly detects partitions, linux mounts them, windows sees them, but PM says the whole disk is "Bad". Solution: screw PM! :twisted:

Ok, enough swearing, gonna try what you suggested. Thanks.
Expect another post soon. :evil:
Back to top
View user's profile Send private message
xenon
Guru
Guru


Joined: 25 Dec 2002
Posts: 432
Location: Europe

PostPosted: Sat Jan 25, 2003 9:51 pm    Post subject: Reply with quote

That was it! Now Gentoo boots correctly.

Thanks a lot and on towards the next problems! :D
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