LinuxQuestions.org
Review your favorite Linux distribution.
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 01-20-2011, 06:06 AM   #1
LQ zunkie
LQ Newbie
 
Registered: Jan 2011
Posts: 16

Rep: Reputation: 4
GRUB reinstall


Hi,

I have Linux Mint 10 Julia installed in my laptop, and now I'd like to install XP.
But that will surely overwrite the MBR causing the deletion of GRUB .

So how to reinstall the GRUB after that? can I use the live CD in order to do that?
 
Old 01-20-2011, 06:11 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello,

In few words, yes you can.

A bit more in detail. Normally if you installed it the other way around (first Windoze and then Linux) you wouldn't need to be afraid for this. Have a look at this site, it shows you one possible solution:
http://www.howtogeek.com/howto/ubunt...-wipes-it-out/
It's for Ubuntu but should work in your case too.

Kind regards,

Eric
 
Old 01-20-2011, 06:25 AM   #3
LQ zunkie
LQ Newbie
 
Registered: Jan 2011
Posts: 16

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by EricTRA View Post
Hello,

In few words, yes you can.

A bit more in detail. Normally if you installed it the other way around (first Windoze and then Linux) you wouldn't need to be afraid for this. Have a look at this site, it shows you one possible solution:
http://www.howtogeek.com/howto/ubunt...-wipes-it-out/
It's for Ubuntu but should work in your case too.

Kind regards,

Eric
I already googled and saw this kind of content to reinstall GRUB, but I couldn't find the menu.lst file in my system, so I'm afraid thats not gonna work. Any other idea?

I don't wanted windows in my system thats why din't install it in the first place, but now I need to run an old TV tuner which works only with Windows

I tried using WINE, tvtime, metv but those din't help, then I tried to run with Virtual box which worked good to some extent, i was able to run the software and install the driver but the video I'm getting now is not coming frequently, the frame rates are inconsistent. I guess its due to the delay in the interaction between hardware and guest system kernel.
And I have doubts that using any other virtualization s/w won't solve that problem, or will it? :O

So I thought of installing windows again (The last thing I wanted).

Last edited by LQ zunkie; 01-20-2011 at 06:27 AM.
 
Old 01-20-2011, 06:53 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Quote:
Originally Posted by LQ zunkie View Post
I already googled and saw this kind of content to reinstall GRUB, but I couldn't find the menu.lst file in my system, so I'm afraid thats not gonna work. Any other idea?
That's because you're using grub2 rather than the original grub.
Have a read of this.
 
1 members found this post helpful.
Old 01-20-2011, 07:08 AM   #5
sanjaydelhi
Member
 
Registered: Sep 2010
Location: India
Distribution: Ubuntu
Posts: 39

Rep: Reputation: 2
I had gone through similar problem.

I tried following two solutions(grub4dos).

http://ubuntuguide.net/how-to-restor...ws-xpvistawin7

http://members.iinet.net.au/~herman546/p9.html

But unfortunately it did not work for me.

I got following error.


Error 15: File not found
 
Old 01-20-2011, 08:16 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by LQ zunkie View Post
but I couldn't find the menu.lst file in my system, so I'm afraid thats not gonna work. Any other idea?
menu.lst is not present in Mint, but after installing Windows I think you can insert a Mint live CD and then run the command
Code:
grub-install /dev/sdaX
This command is bound to work, I have tried it here: http://www.linuxquestions.org/questi...ectory-837603/

Hope it helps.
 
1 members found this post helpful.
Old 01-20-2011, 01:10 PM   #7
bryanl
Member
 
Registered: Dec 2003
Posts: 96

Rep: Reputation: 35
One addition to Anisha's example for GRUB2: mount the root partition of the Linux system as, say, /mnt/newroot from the Live CD system. Then /mnt/newroot/boot will have the existing grub stuff and /mnt/newroot/etc should have the fstab which you can check to make sure the UUID's match to mount the proper partitions for your linux system. Once that is set, then

Code:
grub-install --root-directory=/mnt/newroot /dev/sdx
where sdx is the device you want to install GRUB2 to.

That should get you back to booting the Linux OS. Once you get there, you can run

Code:
grub-update
to get the boot menu updated with the XP system.

If you install GRUB2 and it doesn't boot your linux system, you can get to GRUB2's command prompt, locate the linux partition, and then boot it. Once you have that linux partition running, the grub-update should get the menu fixed.
 
1 members found this post helpful.
Old 01-21-2011, 03:11 AM   #8
LQ zunkie
LQ Newbie
 
Registered: Jan 2011
Posts: 16

Original Poster
Rep: Reputation: 4
Thanks everyone, I have not tried this yet but I will and let you know the result.
And I managed to find this in Mint tutorial
BTW, I have separate /boot partition on sda5 so I guess the commands given by you guys should be implemented on that partition only, not in the / partition?

Last edited by LQ zunkie; 01-21-2011 at 03:13 AM.
 
1 members found this post helpful.
Old 01-21-2011, 03:13 AM   #9
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Please have a careful look at the thread I have pointed in post 6
 
Old 01-21-2011, 03:32 AM   #10
LQ zunkie
LQ Newbie
 
Registered: Jan 2011
Posts: 16

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by Anisha Kaul View Post
Please have a careful look at the thread I have pointed in post 6
I read that already, I will surely run update-grub once I am able to reinstall the GRUB and boot in to Mint successfully, hope that will detect the windows partition and reflect in the GRUB menu.
And I am not planiing to install any new distro, so that won't happen unlike your case.
 
  


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
GRUB Reinstall MikRose Ubuntu 17 03-03-2009 03:29 AM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Reinstall grub jaygee02 Ubuntu 4 01-22-2007 03:01 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 11:50 AM
Reinstall grub rejser Linux - Software 3 04-14-2004 04:19 AM


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