LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 08-17-2005, 03:11 AM   #1
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269

Rep: Reputation: 39
broken MBR on dual-boot drive


Iíve got Ubuntu and XP dual-booting on my SATA drive. I went to install Linspire on my IDE drive and it wrote the MBR to the SATA drive with the result that The MBR is corrupted (Grub) on the SATA and I canít boot XP or Ubuntu . I need to re-install the boot loader. How do I do this without re-installing all Ubuntu? I can get to the grub prompt by pressing Ďcí if that helps.

Thanks in advance
 
Old 08-17-2005, 08:05 AM   #2
gkiagia
Member
 
Registered: Oct 2003
Location: Greece
Distribution: Debian sid
Posts: 248

Rep: Reputation: 30
If you can enter grub, then why you can't boot ????

Anyway, to reinstall grub:
Enter the grub command line and type
Quote:
find /boot/grub/stage1
It should return with something like that: (hd0,5)
If it returns with an error then try: find /grub/stage1
Now type:
Quote:
root (hd0,5)
but change the numbers to match the ones returned by the find command.
If there is no error, type:
Quote:
setup (hd0)
(that's the string returned by find but without the ",5")
If there are no errors, grub is reinstalled.
 
Old 08-17-2005, 09:41 AM   #3
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269

Original Poster
Rep: Reputation: 39
I can't boot because the Ubuntu loader has been replaced by the Linspire loader and for some reason the Linspire one lists my operating systems but won't boot to them. I think it's because i installed Linspire on my IDE but my primary drive (in my bios) was the SATA so Linspire wrote the loader to both, (at least that seems to be what happened!!) i can boot to Linspire on my IDE no problem but when i boot the SATA i get the Linspire loader which won't run the OS's.

I am a newbie so i could be talking rubbish of course!

I just want to get my Ubuntu loader back!

Last edited by blastradius; 08-17-2005 at 09:42 AM.
 
Old 08-17-2005, 12:11 PM   #4
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Debian Stable
Posts: 269

Original Poster
Rep: Reputation: 39
success!!

Thanks for your help, it worked perfectly!
 
Old 08-18-2006, 07:44 AM   #5
OnMahWeh
LQ Newbie
 
Registered: Aug 2006
Location: Hulst, the Netherlands
Distribution: Kubuntu's latest
Posts: 1

Rep: Reputation: 0
Thumbs up Ehmmm

Quote:
Originally Posted by blastradius
Thanks for your help, it worked perfectly!
The problem looks a lot like the one I'm having now. XP on SATA, kubuntu on IDE fully updated and working the way I wanted.Great! After a reboot with the dvd in the drive:boot from first hard drive---> grub error 15. I already changed the hd bootsequence in the BIOS but it still won't work. So can anyone please tell me WHAT worked perfectly as I can't find it on this page?
Tnx
Edit: fixed it by reinstalling Kubuntu on the hda1 partition and booting from that hard disc I read something about that in another thread. So indeed thanks for your help

Last edited by OnMahWeh; 08-19-2006 at 09:58 AM.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with MBR / dual boot AdmiralFreezbee Linux - Newbie 11 03-31-2005 04:19 AM
MBR help dual boot xp and fc2 theconfused Fedora 7 09-03-2004 06:00 PM
Dual-boot on two Hard Disks, MBR, etc admanb Linux - Newbie 4 02-06-2004 05:45 PM
Dual boot, linux MBR on floppy question? Dobie Linux - Newbie 1 12-15-2003 11:19 AM
Dual boot without touching the MBR? senectus Linux - Newbie 4 07-14-2003 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration