View previous topic :: View next topic |
Author |
Message |
crisponions n00b
Joined: 21 Jan 2004 Posts: 26
|
Posted: Sun Feb 15, 2004 6:05 pm Post subject: grub install trouble |
|
|
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 |
|
|
dblas n00b
Joined: 01 Nov 2002 Posts: 41
|
Posted: Sun Feb 15, 2004 7:21 pm Post subject: |
|
|
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 |
|
|
crisponions n00b
Joined: 21 Jan 2004 Posts: 26
|
Posted: Sun Feb 15, 2004 11:06 pm Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Mon Feb 16, 2004 1:02 am Post subject: Re: grub install trouble |
|
|
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 |
|
|
crisponions n00b
Joined: 21 Jan 2004 Posts: 26
|
Posted: Mon Feb 16, 2004 1:46 am Post subject: |
|
|
Problem solved. Thanks alot. makes sense now that I think about it. |
|
Back to top |
|
|
|