Discussion Locked

deleting partition created by linux

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

hi all
i have installed red hat linux 6.0 on 8.4gb HDD having linux as only operating system.Now i want to remove linux and install windows NT on it.i boot to this machine using fdisk it displays me partition information as ext2 file system as onlypartition but fdisk doesn't allows me to delete it. is there is any way through which i could delete the partition listing MBR.i tried fdisk /mbr to fix the problem but in vain.
help me F1

15 replies

by dmiles

Boot into Linux using a rescue diskette or CD,switch to VC 2
For each drive run
fdisk -l /dev/hda
To wipe the whaole drive,you can use the command
dd if=/dev/zero of=/dev/hda count=1 bs=512
dd if=/dev/zero of=/dev/hda

See Microsoft KnowledgeBase Article Q247804

by choth

hi,
Boot into Linux using a rescue diskette or CD and then type the following command:
If you have only one HDD as master it is /dev/hda, if you have 2 HDD, one as master and one as slave, the master is /dev/hda and slave /dev/hdb. In your case Ithink that you have one HDD, so you can type:
$ fdisk /dev/hda
Press "p" to print the partition table and then you will see how many partitions you have and then press D for delete and it will prompt you which partition to delete. Assume that you have one partition then press D and then 1 i.e /dev/hda1. Press "n" to create new partition. You can create primary and logical partition and do not forget to press "t" for each partition, if u 1 2 create Win98 FAT32 as I remember is pressing "b". After you create partition all everything you need is that you have to press "w" for writing the partition that you have done and then "q" for quit. After that goto /sbin/lilo -u (for uninstall Linux, if you don't c it /sbin/lilo restart ur machine insert MSDOS disk that have FDISK and type FDISK /mbr. I think it will help you.
Choth

by brian m

Once you've deleted the partitions using the Linux fdisk utility, you will probably also need to run the DOS "fdisk /mbr" command to be able to boot to Windows.

You actually should be able to delete the partitions using the NT fdisk utility that comes up when booting from the NT install disk. But you will still need to use the DOS "fdisk /mbr" before the system will boot to Windows.

by mike o

Another solution is something called the Ranish Partition Manager. If you can at least boot into Windows or NT and run this (or if you can boot from a Win98/DOS startup disk with a second hard drive temporarily installed with the Ranish Partition Manager on it) you can convert the ext2 partion over. I've done a few drives this way.

I don't have the link handy, but if you do a search on Google I'm sure you'll find it. It's easy to use, too. Has a simple DOS GUI.

Take care,
Mike

by andymah

Your absolute best option is to run PartitionMagic. It will handle all DOS, Linux (ext2 AND Swap!), NTFS, and Novell partitions with ease and speed. Not to mention you can do it on the fly. No fuss, no muss.

Check it out here?
http://www.powerquest.com/partitionmagic/

Good luck, hope that helps!

by neeraj_rohliyan

1. run ur linux login as root then run fdisk
# fdisk /dev/hda
disply ur all partistion and delete,save the changes and exit reboot ur machine with win98 bootable run fdisk /mbr then run fdik again
make ur partion and install winnt.
2. u can also use seagate disk manager. if ur hdd is other then seagate then run dm /o perform low level format, then again create partition and install whatever u want

by krkosiorek

If all you want to do is to remove all linux partitions and install NT, just boot from the NT cd and delete the linux partitons using the partition utility included with the NT install.

This discussion is closed to new replies.