LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   removing slackware + lilo (https://www.linuxquestions.org/questions/linux-newbie-8/removing-slackware-lilo-360661/)

Noido 09-06-2005 05:57 AM

removing slackware + lilo
 
recently, I got hold on a nice cheap laptop for installing linux onto. Unfortunately, I now need to remove the linux partition from my main PC because I've run out of space on my hard drive.

I have slackware installed on a secondary (slave) hard drive, along with a windows data partition. what I need to know is how to uninstall linux *and* lilo so my PC boots normally to windows.

I found this http://support.microsoft.com/kb/q171611/

which tells you how to remove lilo, but I'm not sure if this will let my computer boot normally, and if I can just erase the linux partitions with partition magic or somesuch program once it is gone.

Also, I'm not sure where lilo IS installed, if it's on the MBR of my master hard drive, or the linux root partition... I used the BitBender forums guide to installing slack if that helps.

http://www.bitbenderforums.com/vb22/...?postid=311808


thanks in advance for any help!

~noido

scuzzman 09-06-2005 06:09 AM

Put in your WinXP install CD and boot from it. At the recovery console, type:
Code:

fixboot
and
Code:

fixmbr
Then, use any partition program you like to delete the partitions. This should successfully remove any and all traces of Linux.

Noido 09-06-2005 06:12 AM

no CD
 
I haven't got a winXP cd

I bought a compaq (woops) so I don't get anything with it. I have a recovery partition, and no CDs.

how wonderful.

is there a way I can get a CD/make one?

ethics 09-06-2005 06:58 AM

never had to boot into a recovery partition but i imagine it works the same as a disk.

in which case you could change lilo to boot into that recovery partition, execute fixmbr and then reboot.

You could borrow a win cd from a friend/work to use its recovery feature, or buy a copy (i would reccomend this if you use windows a lot, you wil lcome to a point it needs reinstalling).

Noido 09-06-2005 07:14 AM

oh no, the recovery partition won't let you run that, it's some weird compaq thing that isn't XP :( what about that microsoft lilo -u thing?

makuyl 09-06-2005 07:55 AM

Try a bootdisk, a dos one should do it, but you can also use an xp one.
http://bootdisk.com/bootdisk.htm

EDIT: oops, a dos bootdisk doesn't do fixmbr, but: fdisk /mbr

Noido 09-06-2005 08:19 AM

hehe, don't mean to be annoying, but to clarify: fdisk /mbr will remove lilo and I can boot normally? (and then remove linux partitions of course)

b0nd 09-06-2005 08:20 AM

hi,
/sbin/lilo -u restores original MBR.

regards

Noido 09-06-2005 08:23 AM

heh thanks :) i'll try lilo first, then fdisk if that fails (which i doubt it will)

Noido 09-06-2005 08:41 AM

right ^^ that worked perfectly, thanks everyone for the help, and for putting up with me!

~noido


All times are GMT -5. The time now is 02:56 PM.