LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-27-2005, 11:21 PM   #1
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Rep: Reputation: 15
windows overwrote my mbr


I've been running ubuntu warty warthog for a while now and reinstlled windows because I had to have counterstrike. Anyway, doze overwrote my mbr and now I can't boot back into ubuntu. How can I reinstall grub from a knoppix live cd? I've tried mounting my ubuntu partition and doing a chroot to it and running grub-install, running grub manual and doing root (hd0,2) setup hd0, as well as just about everything else I could think of. none of the posts i've found on linuxquestions have been any help.

when I run grub and try to fix it the way various posts say to, I get this
grub>
root (hd0,2)

Error 21: Selected disk does not exist

*note* my linux distro is on the 3rd partition of my first disk
help?
 
Old 03-28-2005, 12:21 AM   #2
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
Via the CD, you need to reinstall/repair. Or you could boot from your rescue floppy and re-execute grub.
 
Old 03-28-2005, 01:55 AM   #3
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Original Poster
Rep: Reputation: 15
have you actualy done this or have any reason to think it is possible? the ubuntu cd dosn't seem to have any sort of repair mode and there is no way in hell I'm reinstalling it. I don't have a rescue floppy for the system. How can I reinstall grub from knoppix? I've done it before on this exact system last time I installed windows. can anyone link me to a tutorial or instructions?
 
Old 03-28-2005, 02:01 AM   #4
Thoreau
Senior Member
 
Registered: May 2003
Location: /var/log/cabin
Distribution: All
Posts: 1,167

Rep: Reputation: 45
I have done this on many distro's. I have not done it on Ubuntu. When you reinstall, it should find the pre-existing packages and just do a minial install and set the MBR at the end. You reboot and you are done. There is no risk since you can't get to a damn thing anyway.
 
Old 03-28-2005, 10:27 AM   #5
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Original Poster
Rep: Reputation: 15
so, what exactly is it going to do? overwrite my kernel with the one on disk? how much is the "minimal" reinstall reinstalling? can I skip straight to the grub thing from expert mode on the cd?
 
Old 03-30-2005, 02:23 PM   #6
Orkie
Member
 
Registered: Mar 2005
Distribution: Breezy Badger
Posts: 248

Rep: Reputation: 30
My don't you let it mount the partitions, then ALT+F2 into a new shell and execute GRUB from there?
 
  


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
Accidentally overwrote MBR - Grub rrc124 Linux - Newbie 2 05-20-2005 01:24 AM
Windows took over MBR!! thebeast Slackware 8 07-18-2004 01:21 PM
winxp overwrote MBR :( rohan208 Red Hat 5 05-17-2004 09:05 AM
OOPS! overwrote MBR, GRUB wont boot :( slacker9876 Linux - Newbie 4 04-16-2004 06:04 PM
mdk overwrote MBR without warning!! frankae Linux - General 21 03-03-2003 01:43 PM


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