I can't get rid of linux, can't delete partition with fdisk
Linux - NewbieThis 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.
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.
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!
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.
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.
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.
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
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...
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.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.