LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I can't get rid of linux, can't delete partition with fdisk (https://www.linuxquestions.org/questions/linux-newbie-8/i-cant-get-rid-of-linux-cant-delete-partition-with-fdisk-177593/)

Dachy 05-03-2004 11:55 PM

I can't get rid of linux, can't delete partition with fdisk
 
so i pop in a windows xp boot disk, restart my computer and type "format c:" but i get "Invalid drive specification"

so i type fdisk and deleted everything but: "Partion 1 EXT DOS Usage 95%"

i've deleted the partitions i could but when i go to delete the extended dos partition it says i can't while logical drives exist.. but from everything i can see.. none do! im totally stumped and would just like to get windows on this computer for now, thanks for your time!

Demonbane 05-04-2004 12:19 AM

If you have a Linux live CD of some sort (like Knoppix) you can zero out the MBR(which includes the partition table) by executing
Code:

dd if=/dev/zero of=/dev/hda bs=512 count=1

Jerre Cope 05-04-2004 12:35 AM

try
fdisk /mbr

whansard 05-04-2004 12:42 AM

usually the fdisk has a "delete non-dos partition"

tumana 05-04-2004 01:49 AM

By your title and your post, you are trying to get rid of Linux and install Windows XP.

Why don't you just start the Windows XP installation and let it format the HDD (hard disk drive, not hdd) for you. It will give you the disk partitioning options where you can delete any partitions currently on your computer. After you decide you have what you want Windows will format the C:\ for you. That's the only partition I usually create during the installation. I create the other ones (D:\, E:\, ...) while already logged on.

You don't need to run fdisk before installing Win XP.

Why are you migrating to Windows XP anyways?

ian

JexxSponsken 05-04-2004 02:03 AM

Like said above the "fdisk /mbr" command after booting with a bootdisk (ex win 98se bootdisk) will do the trick. a regular harddisk format using Xp installation wont work, i had the ame thing a while ago when i installed the bootmanager (grub) into the master boot record of the harddisk.:scratch:

tumana 05-04-2004 02:07 AM

humf!? alright... I stand corrected. I usually just wipe the thing clean.:p

Demonbane 05-04-2004 02:42 AM

'fdisk /mbr' has nothing to do with the partition table.

Dachy 05-04-2004 11:21 AM

i did fdsik /mbr and it didn't do anything. made some noise.. then back to the a:\. when i went into fdisk to see if i could delete the "logical drives" that prevent me from deleting the extended dos partition it said none existed.

witeshark 05-04-2004 11:52 AM

Re: I can't get rid of linux, can't delete partition with fdisk
 
Quote:

Originally posted by Dachy
so i pop in a windows xp boot disk, restart my computer and type "format c:" but i get "Invalid drive specification"
so i type fdisk and deleted everything but: "Partion 1 EXT DOS Usage 95%"
i've deleted the partitions i could but when i go to delete the extended dos partition it says i can't while logical drives exist.. but from everything i can see.. none do! im totally stumped and would just like to get windows on this computer for now, thanks for your time!

format c isn't it. Get C: drive prompt then type FORMAT - then you get prompted are you sure and hit y enter

detpenguin 05-04-2004 12:53 PM

if you had redhat on your machine, thats the problem...it creates the extended /logical drive monster that tells you there are logical drives, but when you check..there realy aren't...you need to use "parted" from your linux boot cd, and remove them that way...

itsjustme 05-04-2004 01:36 PM

Quote:

Originally posted by Dachy
when i went into fdisk to see if i could delete the "logical drives" that prevent me from deleting the extended dos partition it said none existed.
This has happened to me a couple of times. It's really annoying.

My only solution was to get a utility from the hard drive maker to completely wipe the drive. On my maxtor drive it was called Max-Blast. It was the CD and floppy that came with the drive, actually. I think I also downloaded some utility from Hitachi once for this purpose.

However, if this happens again though, I will first try the dd command as mentioned above.

Good luck...

whansard 05-04-2004 03:28 PM

the dd command will always work. if it's too late to boot linux, boot the first linux cdrom, and pick rescue or anything like that. get to a terminal and do it. it writes zero's over the area of the disk that has the partition table and master boot record on it. if you want to wipe the whole drive, dd if=/dev/zero of=/dev/hda and just let it run. it will stop when it get's to the end of the disk.

DavidPhillips 05-05-2004 09:06 AM

Windows just can't handle the pressure??


You would think that xp could wipe a harddrive by now. If you can get a windows 95 boot floppy it can do it.

wijnands 05-05-2004 01:25 PM

there's an old, old, utility from the NT 3.51 resource kit that's perfect for the job. Delpart. You can get it here: http://www.juliatexas.com/delpart/delpart.htm

it's pretty easy but it should be run from a dos bootdisk. I've used this succesfully to remove all sorts of partitions including linux, novell, etc.


All times are GMT -5. The time now is 05:52 AM.