LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-30-2006, 12:45 PM   #1
jaymoney
Member
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu 8.10, Xubuntu 8.04, Fedora 10
Posts: 87

Rep: Reputation: 15
mbr after xp install


after booting into windows for the first time in months, it seems like performance really isnt too good. im not sure if it is bc im used to the quickness of linux, but i decided that i am going to reinstall xp. i know this will mess up my mbr, and was wondering how difficult it is to reinstall grub?

thanks in advance.

jason

Last edited by jaymoney; 08-30-2006 at 12:48 PM.
 
Old 08-30-2006, 12:53 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
Easy. Boot with a linux live CD and then follow scenario B5 from here.
 
Old 08-30-2006, 01:14 PM   #3
proji
Member
 
Registered: Aug 2006
Location: Essex
Distribution: Lubuntu, Peppermint One, Ubuntu, Kubuntu
Posts: 34
Blog Entries: 1

Rep: Reputation: 15
yeah it only takes a minute to rectify, i did it when i was running mandriva last year
 
Old 09-12-2006, 04:41 PM   #4
jaymoney
Member
 
Registered: Mar 2006
Location: Cincinnati, OH
Distribution: Ubuntu 8.10, Xubuntu 8.04, Fedora 10
Posts: 87

Original Poster
Rep: Reputation: 15
i wanted just let people know that i was able to fix this issue. i was able to restore grub successfully from the following directions.


Quote:
1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.

2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary.

3. Type "grub" which makes a GRUB prompt appear.

4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.

5. Type "root (hd0,3)".

6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".

7. Type "quit".

8. Restart the system. Remove the bootable CD.

Hope this helps. Since I use Norton Ghost to make regular backups and restores (I do a lot of testing), I do this all the time...
hope this help people in the future.

Last edited by jaymoney; 09-13-2006 at 12:50 PM.
 
Old 09-13-2006, 12:03 PM   #5
proji
Member
 
Registered: Aug 2006
Location: Essex
Distribution: Lubuntu, Peppermint One, Ubuntu, Kubuntu
Posts: 34
Blog Entries: 1

Rep: Reputation: 15
glad it's all sorted mate
 
Old 09-13-2006, 12:26 PM   #6
pckeeper
LQ Newbie
 
Registered: Sep 2006
Distribution: Slackware current and Mandriva
Posts: 12

Rep: Reputation: 0
which distribution are u using ? if its mandriva, put your installation dvd/cd into the drive and type rescue, then read and etc it will rewrite your boot loader
 
  


Reply

Tags
grub


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not install lilo on MBR kazuya1977 Slackware - Installation 5 03-20-2006 01:14 AM
Install and MBR Kanon Red Hat 8 03-05-2006 01:28 PM
how to install MBR? mrgrieves Linux - Software 4 05-17-2004 01:11 AM
how do i install grub in the mbr? spyghost Linux - Newbie 2 11-07-2003 10:52 AM
GRUB Install on MBR JakeFarley Linux - Newbie 3 10-22-2002 08:16 AM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration