LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-17-2005, 02:11 AM   #1
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Ubuntu Jaunty 9.04
Posts: 250

Rep: Reputation: 30
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, 07: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, 08:41 AM   #3
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Ubuntu Jaunty 9.04
Posts: 250

Original Poster
Rep: Reputation: 30
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 08:42 AM.
 
Old 08-17-2005, 11:11 AM   #4
blastradius
Member
 
Registered: Oct 2004
Location: Cheshire, England
Distribution: Ubuntu Jaunty 9.04
Posts: 250

Original Poster
Rep: Reputation: 30
success!!

Thanks for your help, it worked perfectly!
 
Old 08-18-2006, 06: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 08: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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 08:25 PM.

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