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!

Delete Linux

Status
Not open for further replies.

linuxnewb00

Technical User
Sep 21, 2003
8
US
How can I completely format the drive in Linux?
 
Hi,

Use fdisk. Are you trying to get rid linux? Or adding new disk to linux. What are you trying todo.

feroz
 
I usually use the distro's installation CD. Get to the drive partitioning part. Delete all partitions, make a big, single partition. Change the partition type (FAT32 LBA was 0xb I think). Then reboot with the Windows install CD or even a boot floppy. Format the empty partition (or even fdisk and make sure the partition type is set correctly and makes Windows happy), and install Windows.

I've fought with MS fdisk trying to delete extended and logical non-DOS partitions and failed, so that's why I use the installation/GNU fdisk program to remove Linux partitions.

I've used GNU fdisk to set the partition type to FAT32 and MS format got really aggravated with me, so that's why I do the redundant partition type change with MS fdisk.

That's how I do it. Your mileage may vary :)

----
JBR
 
use mkfs command for changing the file system of existing partition.
for creating new partition use
# fdisk /dev/hdX
 
You can also do a search for 'aefdisk'. It's a neat little utility that you can use to delete ALL partitions on your disk. The shareware version is sort of limited, but it still works. And it will fit on the same floppy you might use as a Win startup disk.

J.R.
 
What OS are you going to put on this HD? If it's windows just use fdisk to delete all partitions and start over.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top