LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-03-2006, 06:15 PM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
Question ubuntu: windows took over MBR and can't restore grub


I'm trying to restore grub after windows took over the MBR.

I'm using ubuntu-live to try to do it.

I just wait till it's completely up. Then I start a terminal. sudo su. I mount the HD's / on /mnt, then I chroot /mnt

I run grub-install /dev/hda and the output is:
Code:
the file /boot/grub/stage1 not read correctly.
What's going on?

PS By the way, before I ran grub-install I modified menu.lst to include a windows item. Could that be the problem?
 
Old 02-03-2006, 06:28 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 47
Try preparing a grub boot floppy by booting into the LiveCD. Boot into your ubuntu install and then run grub-install.

From the link below, start at "Preparing a GRUB floppy".

http://www.linuxjournal.com/article/4622

Last edited by ppuru; 02-03-2006 at 06:30 PM.
 
Old 02-03-2006, 07:05 PM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
A floppy? You gotta be kidding me!!! (no pun intended)

I haven't used a floppy in years (literally) and I don't intend to do it now. The computer doesn't even have a floppy drive. :-)

There's gotta be a way to do it. Be it knoppix, ubuntu (live or install), or assembly (just kidding ;-)).
 
Old 02-03-2006, 08:29 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Conventional wisdom says you install Windows first, but there are ways around it. One is a Boot CD mentioned here often: http://www.ultimatebootcd.com/
I have not tried this, but their description suggests it will solve your issue.
As far as your approach, the only thing that comes to mind is that permissions are not set correctly.
 
  


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
grub and lilo on MBR with Windows xp blotch Linux - General 6 11-18-2005 09:57 PM
How do you get back into Ubuntu if you don't put Grub on the MBR? Marrea Ubuntu 7 07-21-2005 06:27 AM
MDK 10.2 GRUB - Windows killed MBR stunter Mandriva 7 03-21-2005 09:07 AM
How to remove Linux and restore Windows on Dual boot using Grub TheBaffledKing Linux - Newbie 13 04-14-2004 05:47 AM
restore mbr (in lilo and grub) abs Slackware 5 02-07-2004 02:39 PM


All times are GMT -5. The time now is 03:08 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 Google+: linuxquestions
Open Source Consulting | Domain Registration