LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2006, 12:58 PM   #1
gh02t
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
Removing GRUB from a previous installation


Ok, so here is the problem:
My second foray into the linux world was with Kubuntu, which I hated. I installed Kubuntu and used GRUB as my bootloader (installing it into the MBR). I recently decided Mandriva Linux is better and wanted to switch, but when I installed Mandriva (which has its own graphical version of LILO) GRUB did not go away. Naturally I could not boot any os because GRUB was configured to boot Kubuntu and Windows and the ndldr was replaced with Mandriva's LILO, so nothing worked. I managed to load Knoppix and modify the menu.lst file and restore ntldr so that GRUB was used to load windows and Mandriva, but now the need to erase that drive and reinstall Mandriva and I would really like to be rid of GRUB.
Additional Info
There are 2 hds:
The master is the one I want Linux on and the slave is where windows already is and I cannot remove the data on the windows drive.
Thank you for any help you can give
 
Old 04-19-2006, 01:08 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
What you should have to do is install lilo to the master boot record of the first disk (which I assume contains Mandriva). Your windows section of lilo.conf should just look like
Code:
other=/dev/hdb1
label=win
Then /sbin/lilo and it should all work fine.
 
Old 04-19-2006, 01:10 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Look at B3 for how to install lilo from your Mandriva partition to the MBR of /dev/hda.
 
Old 04-19-2006, 01:10 PM   #4
gh02t
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I have tried installing lilo into the MBR of the first disk during the mandriva install. The thing that gets me is that I have tried formatting the disk multiple times. Does formatting not erase the MBR?
 
Old 04-19-2006, 01:19 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I don't think formating does anything except wipe out the partition table (in fact, all the data you had on the drive is still there).

I'm not sure I understand the problem correctly though. You said you used knoppix to edit the menu.lst to make NTLDR be bootable. Grub should be unable to find the menu.lst because it should have been deleted when you wiped the Kubuntu partition.

At the time of Windows installion, was the windows drive the first hard drive or the second? (i.e. did you buy a second hard drive and put the new one as master and the second one as slave?)
 
Old 04-19-2006, 01:22 PM   #6
gh02t
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Original Poster
Rep: Reputation: 0
When I originally bought the comp. the windows drive was master.
I restored ntldr using the windows recovery console. And the thing about not wiping out the /boot/grub folder is what puzzles me. The folder and data is still there (though I misspoke earlier, I had to create a new menu.lst, but that was it)
 
Old 04-19-2006, 01:27 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay. Is there anything else on the linux drive?

What I would do is:

1) unplug the linux drive completely and plug the windows drive into the master slot.
2) Make sure it boots, you should only see NTLDR. No grub, no lilo.
3) shutdown and plug the linux drive into master and the windows drive into slave
4) install Mandriva, be sure to put lilo into the MBR
5) Make sure Mandriva boots up, see if there's a windows option at boot time.
6) if so, reboot and try windows (I have a funny feeling it won't work because windows will think it is master, but that's fixable)
 
  


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
Limewire removing previous version error novacrasher Linux - Software 0 02-01-2005 01:48 AM
Burning Multi session CD ,removing previous content zulfilee Linux - General 3 10-04-2004 12:26 AM
adding debian to a previous grub installation starguymike04 Debian 18 08-25-2004 02:34 AM
Deleting a previous kernel in GRUB? borrrden Linux - General 1 08-13-2004 11:24 AM
SDL -1.2.5-1 and previous versions. (installation & removal) Mr Guk Linux - Software 1 11-07-2002 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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