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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-19-2009, 07:44 PM
|
#1
|
|
Member
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334
Rep:
|
Installation question please ...
I need to reinstall windows xp , i have ubuntu too , i had installed windows first then ubuntu , forgot which is in MBR , i dont knw either it is GRUB or windows boot loader
When i reinstall windows xp , will it make any problem to my ubuntu, i'm supposed to install in earlier windows location itself
Please help ..
|
|
|
|
02-19-2009, 08:00 PM
|
#2
|
|
Member
Registered: Jan 2009
Location: Georgia
Distribution: OpenSuse Fedora
Posts: 64
Rep:
|
For a dual-boot always install Windows first..is that what you are asking?
|
|
|
|
02-19-2009, 08:26 PM
|
#3
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,227
|
XP will replace the loader in the MBR. No big deal - you can re-install grub easily enough after the event. Your Ubuntu system will still be there, but you won't be able to access it directly after the XP re-install.
|
|
|
|
02-19-2009, 08:31 PM
|
#4
|
|
Member
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
XP will replace the loader in the MBR. No big deal - you can re-install grub easily enough after the event. Your Ubuntu system will still be there, but you won't be able to access it directly after the XP re-install.
|
How can i access my ubuntu then .. ? Shud anything done in MBR , please help me to perform , i dont knw much about MBR , or grub reinstall , that kind of words
|
|
|
|
02-19-2009, 08:33 PM
|
#5
|
|
Member
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334
Original Poster
Rep:
|
Quote:
Originally Posted by rtrahan
For a dual-boot always install Windows first..is that what you are asking?
|
I was supposed to reinstall ..Still having ubutntu in another partition
|
|
|
|
02-19-2009, 09:05 PM
|
#6
|
|
Member
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389
Rep:
|
Quote:
Originally Posted by vibinlakshman
I was supposed to reinstall ..Still having ubutntu in another partition
|
if you reinstall windows with ubuntu still existing, xp will over write your MBR so your boot loader (whether grub or lilo) will be gone. BUT your ubuntu is still available. you have just to reinstall your boot loader via using the ubuntu install cd.. (if i am saying it right) i have done this before. . .
|
|
|
|
02-19-2009, 09:24 PM
|
#7
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
Reinstall XP,then reinstall Ubuntu.Problem solved.
|
|
|
|
02-19-2009, 09:47 PM
|
#8
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,903
|
And a quick note on the usage of English words:
Please compare
http://www.dictionary.net/doubt
http://www.dictionary.net/question
Thanks...
Cheers,
Tink
P.S.: I took the liberty to rename your thread to reflect
the different meanings explained above.
|
|
|
|
02-19-2009, 11:27 PM
|
#9
|
|
LQ Newbie
Registered: Dec 2007
Location: Chilliwack, BC
Distribution: Ubuntu 7.10 Gutsy Gibbon/Hardy-Alpha4
Posts: 1
Rep:
|
Hi vibi,
Not sure why you feel you need to re-install windows (care to explain?). If not, here is the definitive & easiest way to restore your Grub. I think I got it from Ubuntu Forums...You might want to try this before re-installing anything!!!
How to restore Grub from a live Ubuntu cd.
This will restore grub if you already had grub installed but lost it to a windows install or some other occurence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.
(This how to is written for Ubuntu but should work on other systems. The only thing to take note of, when you see "sudo" that will mean to you that the following command should be entered at a root terminal.)
Boot into the live Ubuntu cd. This can be the live installer cd or the older live session Ubuntu cds.
When you get to the desktop open a terminal and enter. (I am going to give you the commands and then I will explain them later)
Code:
sudo grub
This will get you a "grub>" prompt (i.e. the grub shell). At grub>. enter these commands
Code:
find /boot/grub/stage1
This will return a location. If you have more than one, select the installation that you want to provide the grub files.
Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)
Code:
root (hd?,?)
Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1)
Next enter the command to install grub to the mbr
Code:
setup (hd0)
Finally exit the grub shell
Code:
quit
That is it. Grub will be installed to the mbr.
When you reboot, you will have the grub menu at startup.
Good Luck
Last edited by jonny5tails; 02-19-2009 at 11:28 PM.
|
|
|
|
02-20-2009, 09:05 AM
|
#10
|
|
Member
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334
Original Poster
Rep:
|
Quote:
Originally Posted by jonny5tails
Hi vibi,
Not sure why you feel you need to re-install windows (care to explain?). If not, here is the definitive & easiest way to restore your Grub. I think I got it from Ubuntu Forums...You might want to try this before re-installing anything!!!
How to restore Grub from a live Ubuntu cd.
This will restore grub if you already had grub installed but lost it to a windows install or some other occurence that erased/changed your MBR so that grub no longer appears at start up or it returns an error.
(This how to is written for Ubuntu but should work on other systems. The only thing to take note of, when you see "sudo" that will mean to you that the following command should be entered at a root terminal.)
Boot into the live Ubuntu cd. This can be the live installer cd or the older live session Ubuntu cds.
When you get to the desktop open a terminal and enter. (I am going to give you the commands and then I will explain them later)
Code:
sudo grub
This will get you a "grub>" prompt (i.e. the grub shell). At grub>. enter these commands
Code:
find /boot/grub/stage1
This will return a location. If you have more than one, select the installation that you want to provide the grub files.
Next, THIS IS IMPORTANT, whatever was returned for the find command use it in the next line (you are still at grub>. when you enter the next 3 commands)
Code:
root (hd?,?)
Again use the value from the find command i.e. if find returned (hd0,1) then you would enter root (hd0,1)
Next enter the command to install grub to the mbr
Code:
setup (hd0)
Finally exit the grub shell
Code:
quit
That is it. Grub will be installed to the mbr.
When you reboot, you will have the grub menu at startup.
Good Luck
|
Oh man u were so good , I got it .. Will perform it
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:11 AM.
|
|
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
|
|