Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 09-25-2006, 09:21 AM   #1
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Rep: Reputation: 30
Now I've done it... GRUB overwritten by Winblows

I reinstalled Windows XP (as one has to do every year or so), and of course it overwrote my MBR, where I had stored GRUB. What's the easiest way to restore GRUB without overwriting my menu.lst or my images subdirectory in /boot/grub?
Old 09-25-2006, 12:00 PM   #2
Registered: Aug 2005
Location: Oregon
Distribution: Kubuntu.
Posts: 848

Rep: Reputation: 30
If you have a Linux boot cd (knoppix or dsl will work), load it, and run grub. In the grub shell (assuming partition 2 as linux partition), type "install (hd0,1)/boot/grub/stage1 (hd0) (hd0,1)/boot/grub/stage2 (hd0,1)/boot/grub/menu.lst". This will reinstall grub to the mbr, and use your existing menu.

If you have a grub boot floppy, you can boot it, then type "configfile (hd0,1)/boot/grub/menu.lst" to boot from your grub menu.

Lastly, you should also install grub on the linux partition so that it can be added to Windows boot menu, with "install (hd0,1)/boot/grub/stage1 (hd0,1) (hd0,1)/boot/grub/stage2 (hd0,1)/boot/grub/menu.lst" in grub, then adding that partition to Windows boot menu (don't ask me how, though - I don't do Windows).
Old 10-02-2006, 08:55 AM   #3
Registered: May 2006
Location: Cincinnati, Ohio
Distribution: Ubuntu
Posts: 256

Original Poster
Rep: Reputation: 30
Well, it worked... but because Windows changed its configuration (now reading the drive it is installed onto (the same one it was on before) as Drive D, and the shared FAT32 partition as C... stick with me, this isn't a Windows question, I promise.

When I installed Ubuntu, Debian automagically added the Debian Linux kernels it could find, which it keeps updated. It also ran a one-time detection of any other operating systems. How can I force that detection to run again?


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
HELP!, I'm Using Winblows...... salmanal SUSE / openSUSE 3 02-22-2006 02:52 PM
GRUB MBR overwritten by WIN98 MBR TOuseef Linux - General 7 11-14-2004 04:25 PM
MBR is overwritten and GRUB is lost satish427 Red Hat 3 10-13-2004 12:48 PM
GRUB + Windows Install =What!? It's not Overwritten? ellakano Linux - Software 7 09-12-2004 05:57 PM
Mounting Winblows frontier1 Linux - Newbie 5 03-12-2003 04:25 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:26 PM.

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