Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Removing Linux Hard Disk Partitions

Status
Not open for further replies.

unixgy

Technical User
Dec 28, 2001
36
US
Hello.

I have a system with a 5GB drive with RedHat Linux 8.0 installed on it. I need to remove the linux partitions and install windows 2000 (I know, but I'm being forced to do this!)

Anyway, when I try fdisk'ing the disk it says that I cannot delete the partition while logical drives exist - but none show up to delete.

Any ideas?

Jeff
 
I usually would use the gnu fdisk utility to delete the Linux partitions. I keep a couple setup CD-ROMs around. Put one in, get to the partition part, delete them all, make new ones, set the filesystem type to "0B" (Fat32, LBA), write it, set it bootable, done. I've never gotten the hang of using MS' fdisk in this situation.

If you don't have the setup disk for Linux, just boot into Linux, do the same thing. Kind of an OS "suicide" ;-). You can also use this opportunity to run a "lilo -u" to uninstall lilo and avoid any lilo prompts later on.

Good luck! --
JR
 
In the MS fdisk you have to delete the "logical drives" before you can delete the partition. I think as long as the "drives" are "inside" that partition it won't let you delete it.
 
If you can't blow away the partitions using the Linux fdisk tool, an easy way is to use a utility called delpart. Do a search on google for delpart. This utility is actually an old MS resource kit tool, it's easy to use. MSDOS Fdisk can only blow away DOS logical drives, not those created by another OS.
Just make sure after blowing away the partition, (and after a reboot), using a boot disk with (MSDOS) fdisk, type the following at a command prompt:

fdisk /mbr

This will hose the Linux boot loader, although Win2k should eliminate it anyways.
 
Easiest way to remove those linux partitions is with Partition Magic. It'll get rid of anything. And you can set up your new partition and even format it. I've done it several times.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top