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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-18-2010, 10:50 PM
|
#1
|
Member
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809
Rep:
|
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
|
|
|
08-18-2010, 11:36 PM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
There is a huge amount of information about reinstalling grub on the web. Have you goggled? Have what have you tried so far?
Evo2.
|
|
|
08-18-2010, 11:51 PM
|
#3
|
Member
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182
Rep:
|
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
|
|
|
08-19-2010, 10:30 AM
|
#4
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,389
|
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.
|
|
|
08-19-2010, 12:51 PM
|
#5
|
Member
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809
Original Poster
Rep:
|
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.
|
|
|
08-19-2010, 12:55 PM
|
#6
|
Member
Registered: Mar 2008
Location: New York
Distribution: Debian
Posts: 809
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 12:40 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|