LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-03-2004, 11:55 PM   #1
Dachy
Member
 
Registered: Apr 2004
Location: san diego, ca
Distribution: Slackware 12.1
Posts: 99

Rep: Reputation: 15
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!
 
Old 05-04-2004, 12:19 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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
 
Old 05-04-2004, 12:35 AM   #3
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
try
fdisk /mbr
 
Old 05-04-2004, 12:42 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
usually the fdisk has a "delete non-dos partition"
 
Old 05-04-2004, 01:49 AM   #5
tumana
Member
 
Registered: Mar 2004
Posts: 102

Rep: Reputation: 15
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
 
Old 05-04-2004, 02:03 AM   #6
JexxSponsken
LQ Newbie
 
Registered: Aug 2003
Posts: 5

Rep: Reputation: 0
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.
 
Old 05-04-2004, 02:07 AM   #7
tumana
Member
 
Registered: Mar 2004
Posts: 102

Rep: Reputation: 15
humf!? alright... I stand corrected. I usually just wipe the thing clean.
 
Old 05-04-2004, 02:42 AM   #8
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
'fdisk /mbr' has nothing to do with the partition table.
 
Old 05-04-2004, 11:21 AM   #9
Dachy
Member
 
Registered: Apr 2004
Location: san diego, ca
Distribution: Slackware 12.1
Posts: 99

Original Poster
Rep: Reputation: 15
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.
 
Old 05-04-2004, 11:52 AM   #10
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
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
 
Old 05-04-2004, 12:53 PM   #11
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
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...
 
Old 05-04-2004, 01:36 PM   #12
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
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...
 
Old 05-04-2004, 03:28 PM   #13
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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.
 
Old 05-05-2004, 09:06 AM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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.
 
Old 05-05-2004, 01:25 PM   #15
wijnands
Member
 
Registered: Mar 2004
Posts: 132

Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting rid of Linux Partition Nefarious Linux - Newbie 18 09-10-2006 09:38 AM
Cannot delete partition with fdisk jackpal Linux - Hardware 2 07-18-2005 11:57 AM
What app can REALLY delete a partition? (not fdisk, parted, etc...) kornerr Linux - General 4 05-28-2005 12:14 PM
fdisk /mbr can't get rid of GRUB?! zaltar Linux - Newbie 8 11-21-2003 08:11 AM
need to get rid of redhat 7.2, and no fdisk wont work redcommie Linux - General 5 12-05-2002 06:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration