LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 11:50 PM   #1
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 579

Rep: Reputation: 37
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-19-2010, 12:36 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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-19-2010, 12:51 AM   #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, 11:30 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
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, 01:51 PM   #5
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 579

Original Poster
Rep: Reputation: 37
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, 01:55 PM   #6
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Kali
Posts: 579

Original Poster
Rep: Reputation: 37
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


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


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