Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub install trouble
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
crisponions
n00b
n00b


Joined: 21 Jan 2004
Posts: 26

PostPosted: Sun Feb 15, 2004 6:05 pm    Post subject: grub install trouble Reply with quote

I just finished installing gentoo on my laptop. I am dual booting with XP. I am trying to setup grub in my mbr and I get the "unrecognized partition 0x7" error for the root command and a "unable to mount partition" error when I try to run setup.

Here is the catch. I had grub loaded on the mbr before this install to boot another Linux distro. I figured if i kept my partitions the same grub would find everything OK. Not the case.

I have ran fixboot and fixmbr from windows recovery mode so it boots to XP ok, but I still cant get grub loaded. :?
Back to top
View user's profile Send private message
dblas
n00b
n00b


Joined: 01 Nov 2002
Posts: 41

PostPosted: Sun Feb 15, 2004 7:21 pm    Post subject: Reply with quote

This may or may not help. When you change/update grub you first have to mount /boot, where grub resides. Gentoo doesn't leave it mounted for security reasons. So, try mounting /boot (it's in fstab so "mount /boot" will work) and then "grub", i.e. re-install it on the mbr. Also, Wind'ohs sometimes does some funny things, especially if you are running anti-virus software, as it thinks that anything that is not Wind'ohs in the mbr it is a virus.
Back to top
View user's profile Send private message
crisponions
n00b
n00b


Joined: 21 Jan 2004
Posts: 26

PostPosted: Sun Feb 15, 2004 11:06 pm    Post subject: Reply with quote

I made sure the boot partition was mounted., that caught me a while back when I was trying to change kernels. I dont have any anti-virus on windows. If its any help the distro that loaded grub last time was Fedora. But all remenants of that are gone since I rebuilt the mbr.

Anyway to boot gentoo off of a live cd?
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Mon Feb 16, 2004 1:02 am    Post subject: Re: grub install trouble Reply with quote

crisponions wrote:
I am trying to setup grub in my mbr and I get the "unrecognized partition 0x7" error for the root command and a "unable to mount partition" error when I try to run setup.

Partition type 0x7 is NTFS ... this is not the partition you want.

GRUB's "root" command needs to point to the location of GRUB's files (i.e. your /boot partition). You can probably figure out which partition that is by using GRUB's tab-completion feature.
Code:
grub> root (hd0,<press tab>
grub> setup (hd0)
grub> quit
Back to top
View user's profile Send private message
crisponions
n00b
n00b


Joined: 21 Jan 2004
Posts: 26

PostPosted: Mon Feb 16, 2004 1:46 am    Post subject: Reply with quote

Problem solved. Thanks alot. makes sense now that I think about it.
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