Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 12-18-2003, 04:58 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
Remove Mandrake from system; Restore Windows

I currently dual-boot into Windows XP Home edition and Mandrake 9.1 using LILO. Now I want to use my Windows system's system restore disk/CD to restore everything to factory settings. But before doing this, I think I will have to remove LILO and then expand the current Windows partition to cover the existing Linux partitions using Partition Magic.

From a lot of googling around, it seems thatboot into Mandrake, remove LILO, expand the Windows partition to cover the Mandrake partition (using PartitionMagic?), and *then* do a system restore. Is this right?

And another question...if the above *is* right, how do I remove LILO?

[And of course, if the above is *not* right, what's the right procedure? Or perhaps there is an easier or better procedure...]

It's not that I don't like Mandrake. I just installed Mandrake on my new computer so that it has only Linux; this one will have only Windows

Old 12-18-2003, 07:27 PM   #2
LQ Newbie
Registered: Nov 2003
Location: Florida, USA
Distribution: Mandrake
Posts: 20

Rep: Reputation: 0
You can remove lilo and put the windows bootloader up by running fdisk /mbr on a DOS command line.. this means you will probably have to boot up from a floppy(or CD) and make sure the bootable media has the fdisk utility... i'm sure there are other ways.. but that's how i do it..
Old 12-18-2003, 07:46 PM   #3
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
See the Microsoft guide How to Remove Linux and Install Windows XP

You can remove lilo from the mbr in Linux with
/sbin/lilo -u
Old 12-19-2003, 11:27 PM   #4
Dr. Ephemeron
Registered: Oct 2003
Distribution: Mandrake 10.1 & Fedora Core 4
Posts: 84

Rep: Reputation: 15

If lilo -u leaves your computer un-bootable, you can boot the Windows XP CD and choose to run the Recovery Console and execute "fixmbr" to fix it.
Old 12-19-2003, 11:53 PM   #5
Registered: Oct 2003
Location: Holiday Fl
Distribution: Slackware-current
Posts: 77

Rep: Reputation: 19
i think i can help out here i had to do this a few times and it is very simple.
NOTE: i am running slackware.

1) insert the mandrake cd boot and go into cfdisk or fdisk witch either you prefere.
2) where you can select linux as boot choose not to boot linux and choose write. it will ask you are you sure click yes.
3) where it gives you the option to boot make windows the boot partition. so click on windows select it as the boot and then hit write. that will make windows the main boot.

Please no one ask me how i know this. it was from some frustrating hours that i spent banging my head on my glass table.
Old 12-21-2003, 07:40 AM   #6
LQ Newbie
Registered: Dec 2003
Posts: 12

Rep: Reputation: 0
You can also do this using the Mandrake install discs and graphical setup:

Boot from disc 1, go through the language, mouse selection and security level sections until it gets to the disc partitioning stage. Select "custom partitioning", in "expert" mode. Delete all Linux partitions. In "More" select "save partition table", which writes it to the hard disc(s).

You have now removed all Linux partitions from the system. Depending on your setup, you may need to do a few more things:

*) If your copy of Windows is on the first primary partition of the primary master HD (you can have 2), then you will need to remove LILO with an "fdisk /mbr" from dosprompt or a suitable boot disc. Windows will now boot: its own tools in "control panel - administrative tools" or partition magic will do the partition sizing for you.

*) If your copy of Windows is on the first primary partition of the primary slave, you can change the boot sequency in BIOS and Windows will boot with no further modifications.

*) If your copy of Windows is on any other partition, you will need to create a primary partition at the start of the disc of at least 30MB, formatted to vfat, then run a system recovery from the WinXP boot disc. It will write the WinXP boot loader to this new partition so you can boot Windows. If you have to go to that sort of length, you might almost be better off Ghosting the entire Windows space and restoring it following a complete nuke-n-pave.

I've tried all of these before and they work... at least with Win2k


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
How to remove LILO and restore Windows Bootloader RobertRBuce Linux - Newbie 14 10-20-2009 05:08 AM
HP Windows System Restore Slayer097 Linux - Newbie 1 01-09-2005 09:41 PM
help on system restore aditya.tomar Linux - Enterprise 0 09-15-2004 09:50 AM
Remove Linux, Restore WINXP Bootloader costasm Linux - General 2 07-31-2004 07:41 AM
How to remove Linux and restore Windows on Dual boot using Grub TheBaffledKing Linux - Newbie 13 04-14-2004 05:47 AM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration