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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-03-2004, 11:55 PM
|
#1
|
Member
Registered: Apr 2004
Location: san diego, ca
Distribution: Slackware 12.1
Posts: 99
Rep:
|
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!
|
|
|
05-04-2004, 12:19 AM
|
#2
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
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
|
|
|
05-04-2004, 12:35 AM
|
#3
|
Member
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323
Rep:
|
try
fdisk /mbr
|
|
|
05-04-2004, 12:42 AM
|
#4
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305
Rep:
|
usually the fdisk has a "delete non-dos partition"
|
|
|
05-04-2004, 01:49 AM
|
#5
|
Member
Registered: Mar 2004
Posts: 102
Rep:
|
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
|
|
|
05-04-2004, 02:03 AM
|
#6
|
LQ Newbie
Registered: Aug 2003
Posts: 5
Rep:
|
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.
|
|
|
05-04-2004, 02:07 AM
|
#7
|
Member
Registered: Mar 2004
Posts: 102
Rep:
|
humf!? alright... I stand corrected. I usually just wipe the thing clean.
|
|
|
05-04-2004, 02:42 AM
|
#8
|
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796
Rep:
|
'fdisk /mbr' has nothing to do with the partition table.
|
|
|
05-04-2004, 11:21 AM
|
#9
|
Member
Registered: Apr 2004
Location: san diego, ca
Distribution: Slackware 12.1
Posts: 99
Original Poster
Rep:
|
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.
|
|
|
05-04-2004, 11:52 AM
|
#10
|
Member
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429
Rep:
|
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
|
|
|
05-04-2004, 12:53 PM
|
#11
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098
Rep:
|
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...
|
|
|
05-04-2004, 01:36 PM
|
#12
|
Senior Member
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571
Rep:
|
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...
|
|
|
05-04-2004, 03:28 PM
|
#13
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,305
Rep:
|
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.
|
|
|
05-05-2004, 09:06 AM
|
#14
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
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.
|
|
|
05-05-2004, 01:25 PM
|
#15
|
Member
Registered: Mar 2004
Posts: 132
Rep:
|
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 04:22 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|