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).
|