Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fixing the MBR so I can use gentoo again
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
Aaragath
n00b
n00b


Joined: 10 Apr 2004
Posts: 52

PostPosted: Sun Jan 02, 2005 1:38 am    Post subject: Fixing the MBR so I can use gentoo again Reply with quote

Ok, I've installed gentoo before, and the partitions are still on this computer, however, I had to reinstall windows so it re-wrote the MBR so grub is no longer what loads the OS, and therefore I have no way to get into my linux paritions. I was wondering if anyone knew if...

A: Gentoo will still work even though I upgraded my motherboard/proc/ram from an AMD 1800+ 512mb DDR pc 2100 RAM with an Epox 8KHA+ mobo (or something like that) to an AMD 3200+ with 1024mb DDR pc 3200 ram and an ASUS A7N8X Mobo

B: If the answer to A is yes, then how do I rewrite either the windows bootloader so that I can load my gentoo paritions or how do I go about re-doing grub (it was a while back that I did this, and I've tried to install gentoo about 7 times, only got it right once =/ ).

Hard drive setup:

Code:

/dev/hda1 = Windows XP
/dev/hda2 = /boot
/dev/hda3 = /
/dev/hda4 = swap


thnx
-Aaragath

If you need more info, my AIM is FireHawkX427 and my msn is star_trekker27@hotmail.com (I made it when I was 12... go figure). My Yahoo! is Aaragath. I suppose you could just post here too, but sometimes realtime chatting is easier and faster.
Back to top
View user's profile Send private message
hardcore
l33t
l33t


Joined: 01 Nov 2003
Posts: 626
Location: MSU, MI

PostPosted: Sun Jan 02, 2005 2:30 am    Post subject: Reply with quote

Ok, I'm guessing that the motherboards are both the same chipset (NFORCE2 w/ athlon-xp). So you should be fine booting up.

Did you happen to make a floppy boot disk? If so it's as easy as:
Code:

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


If not, boot the live cd or Knoppix or something similar that has grub on it, and do the above steps.
_________________
Nothing can stop me now, cuz I just don't care.
Back to top
View user's profile Send private message
Aaragath
n00b
n00b


Joined: 10 Apr 2004
Posts: 52

PostPosted: Sun Jan 02, 2005 3:09 am    Post subject: Reply with quote

I did that, but when I typed in "Setup (hd0)" it said "error 17: cannot mount partition"

any suggestions? I did the following to get into grub...

Code:

mount /dev/hda3 /mnt/gentoo
mount /dev/hda2 /mnt/gentoo/boot
swapon /dev/hda4
chroot /mnt/gentoo /bin/bash
env-update
grub


from there I was into grub, is there something else I should have done?
Back to top
View user's profile Send private message
L.U.
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2004
Posts: 119
Location: North Carolina, U.S.

PostPosted: Sun Jan 02, 2005 3:16 am    Post subject: Reply with quote

I may be wrong here, but should it be
Code:
 root (hd0, 1)
?
_________________
In linux, getting your computer to do what you want is a science. In windows, it's an art form...
Back to top
View user's profile Send private message
hardcore
l33t
l33t


Joined: 01 Nov 2003
Posts: 626
Location: MSU, MI

PostPosted: Sun Jan 02, 2005 3:52 am    Post subject: Reply with quote

L.U. wrote:
I may be wrong here, but should it be
Code:
 root (hd0, 1)
?


You're correct. My apologies.
_________________
Nothing can stop me now, cuz I just don't care.
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