LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-18-2010, 10:50 PM   #1
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Rep: Reputation: 88
Unhappy Ubuntu 10.0Deleted Grub


Hi guys,

My pc has partitions:

1=XP
2=7
3=Ubuntu 10.0

I deleted win7 by formating partition#2 and I reinstalled Windows 7. The problem is that now Grub doesn't work. I thought Grub always resides on Partition#1 but I guess I was wrong.
How can I fix Grub?
Any help is greatly appreciated!!!
Thanks
 
Old 08-18-2010, 11:36 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
There is a huge amount of information about reinstalling grub on the web. Have you goggled? Have what have you tried so far?

Evo2.
 
Old 08-18-2010, 11:51 PM   #3
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Smile

Your MBR may have been overwritten by Windows 7. In which case u have to re-install Ubuntu 10.04. Or try the Live cd of ubuntu 10.04 and see if u can install grub.

Open a terminal
#grub-install /dev/sda
 
Old 08-19-2010, 10:30 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Did you reinstall windows 7 on the same partition?
If so, then the problem is likely that stated above. Any windows installation overwrites the master boot entry without asking or informing the user so you will just need to reinstall Grub.

Open a terminal in Ubuntu and run the command: sudo fdisk -l (lower case Letter L) and check the output to be sure sda2 is an ntfs partition. If you don't understand the output, post it here and someone should be able to help.
 
Old 08-19-2010, 12:51 PM   #5
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
I reinstalled Windows 7 on that partition. I thought the Winxp partition would have the MBR.
I ran Ubuntu Live but I didn't see any options to reinstall Grub.
I haven't google anything yet but I will as soon as I get home.
Thanks for your quick response.
 
Old 08-19-2010, 12:55 PM   #6
ceantuco
Member
 
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809

Original Poster
Rep: Reputation: 88
if I can't get it resolved, I will just reinstall Ubuntu anyways Ubuntu doesn't take as long as windows for a clean install...
 
  


Reply



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
Ubuntu 7.10 Dual Boot with XP, ubuntu partition deleted, grub 1.5 error 22 narchy Linux - Newbie 11 02-07-2011 03:54 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:07 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