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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-14-2013, 10:16 AM   #1
info.latawaz
Member
 
Registered: Jun 2013
Location: India
Posts: 44

Rep: Reputation: Disabled
Removing LILO


I have Windows 7 installed along with Slackware. Now I wish to remove Slackware and LILO and try CentOS.
The problem is that I installed LILO and Slackware a long time back and now I don't remember where I installed LILO.
I believe deleting the partition of Slackware will remove it completely. Am I correct?
How do I remove LILO after that?
 
Old 09-14-2013, 01:46 PM   #2
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Is LILO the boot loader for both windows and Slackware ?
In that case LILO is installed at MBR of the disk .
If LILO is installed at MBR removing the Slackware partition than LILO is still in MBR .
If you installed Centos boot loader in the MBR than it will overwrite LILO .
IF LILO is installed at MBR you can also use the repair option of windows 7 cd to overwrite LILO with the command bootrec.exe fixmbr
Or did you use two boot loaders ?
 
Old 09-14-2013, 01:48 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The major portion of Lilo is installed in the root partition. But, a small part is in the MBR (Master Boot Record) portion of the hard drive, along with the partition table.

If you delete the Slackware partition, that will not remove the part of Lilo which is in the MBR, and you will not be able to boot windows.

You can install CentOS, and during the installation process, choose to install in the partition which now contains Slaceware. Choose to reformat the partition during installation.

When you get to the part of the installation which asks where to install Grub, choose to install to the MBR of the hard drive. That will overwrite the Lilo part in the MBR with the first stage of Grub.

The installation of grub should detect the windows installation and make a generic entry for windows into the grub menu (it will not name windows 7; it will only say windows in a partition number).
 
Old 09-16-2013, 12:31 AM   #4
info.latawaz
Member
 
Registered: Jun 2013
Location: India
Posts: 44

Original Poster
Rep: Reputation: Disabled
Finally did it. It was as "bigrigdriver" said. I deleted the partition having Slackware but LILO leftouts were the problem.
I had seen many solutions but they all were related to old windows version where fdisk still worked. But with windows 7, this is not the case.
I was keeping Windows 7 installation disk as the last resort because I had to create a USB stick with windows installation which is a pain but hell, had to get this over with.

Thanks "ronlau9" and "bigrigdriver" for your help.

This is what I did to get through this:
1) Boot with windows installation disk.
2) Click on repair and then select command prompt.
3) Change the directory to USB and then to boot folder.
4) Execute this: bootsect /nt60 c: /mbr
5) Restart. Done!
 
  


Reply

Tags
lilo



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing LILO -=Sabin=- Linux - Software 5 01-08-2008 12:06 AM
removing LILO Rawjoe Linux - General 4 07-07-2006 06:37 AM
Removing lilo ebit Linux - Newbie 11 07-28-2004 03:31 AM
Removing LILO sunday2 Linux - Software 4 05-15-2004 06:26 PM
Removing LILO mrobi Linux - General 2 01-21-2003 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 AM.

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