Discussion Locked

Deleting Linux partitions

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I know this was a topic a couple of months ago but I missed the answer. I set my PC up for both Win 95 and Linux. I would now like to set the machine back to Win95 only. How can I delete my linux partition and give my entire hard drive back to Win95?
FDISK keeps telling me that I can not delete a partition while logical drives exist but when I try to delete the logical drive, it says that it doesn't exist. Help!

8 replies

by kyerrid

Without knowing the flavor of Linux you are using (I will explain for Red Hat), you will need to rerun the Linux installation program. Select the custom/advanced install, and when you have the option of marking your devices, remove the Linux partition. Unfortunately, I believe you will lose your 95 partitions as well, since Linux LILO takes over the MBR. Once you remove the partitions, quit the install, use a floppy, and TRY fdisk /mbr to ATTEMPT to recover the MBR.

by mckaytech

If you don't want to just re-install your Windows95, probably a commercial tool such as PartitionMagic would be your best bet.

If your data is safely stored somewhere other than on the hard drive, the Linux Fdisk should do the job and then you can use the Win95 Fdisk to set up the new partition.

paul

by hugevlad

There is 2 ways:
1. Boot your PC from Linux-diskette, then run fdisk and delete linux partition. Depending of your LILO installation you may need bootup from Windows-rescue-floppy and issue FDISK /MBR (this command only restore master boot record program, no change at partition table).
2. Boot from MS-DOS diskette and run DiskEditor program (from NortonUtilities). Then you can manually change partition table entries.

Second way is dangerous, be careful !

With best regards,
Vlad.

by dalgarno

bootdisk.com have a utility AEFDISK 1.4 on their main page that will rid you of linux, NT partitions!

Hope this helps

This discussion is closed to new replies.