how to reclaim all HD space
Hi,
I have a HD that has installed Fedora3 and XP. I need to format the entire C drive.
I tried formatting through Windows but it leaves the Linux Drive intact.
How do I wipe evertything out?
Thank you.
Linux
Hi,
I have a HD that has installed Fedora3 and XP. I need to format the entire C drive.
I tried formatting through Windows but it leaves the Linux Drive intact.
How do I wipe evertything out?
Thank you.
by afram
by oc34
by oc34
by afram
AEFDISK is free:
http://www.aefdisk.com/adownload.html
(or just google "aefdisk download"
by choppit
I'm assuming you want to remove all partitions on your primary disk and not just your C:\ drive?
If so;
1) Boot from a windows boot disk.
2) fdisk /mbr and remove all partitions.
3) fdisk and remove all partitions
4) Create new partition(s)
5) Reboot with boot disk
6) Format partitions
by oc34
Thank you for taking the time to outline the procedure. I will give it a try.
One more question. Will this every single partition on the hd?
See, my problem is this. My HD is an 80GB. The first time I tried installing fedora I allocated 4GBs for it. My wife wanted me to install XP which I did, but after istalling XP I checked the size of the HD and it showed only 76GBs!
The 4GBs was gone for good!
Now, I just installed Linux on a separate partition but this time it borrowed from the 76GBs.
I just installed Partition Magic and even Partition Magic is unable to see the misterious 4GBs. It sees the current Linux swap and Linux ext2 and FAT32.
I do not have must data so wiping everything clean is not a problem. I just don't know how.
So whatever happened to the remaining 4GBs?
Thank you.
by choppit
It'll remove any partition you tell it to, which is why you need to be careful (make sure you're working with the correct physical disk). The Linux partitions will show as Non-DOS partitions.
Your 4GB is still there, but hidden from Windows by your boot manager, (probably BootMagic Grub or LILO). FDISK /MBR should erase any references to the boot manager from the master boot record.
If you intend to use multiple OSes I'd advise you to invest some time in learning about partitioning and filesystems. The partition magic manual usually covers this adequately.
by honu425
Assuming you intend to install XP, after the partitions are deleted, boot with the XP CD. At an appropriate point in the process the XP install will ask where you want to install, do you want to create a new/different partion, and how do you want to format it.
Just a time saver offering.
Hope it helps.
by house
by dafe2
If you haven't done so already, I think the utilities "house" mentions are probably what your looking for. Killdisk is offered in both freeware & professional editions. The only real difference is disk wipe capabilities/technologies...
There are hundreds of others, including (fdisk) as others mention here.
Both get rid of partitions...very well.
by oc34
As I stated earlier, I was able to delete and format the all the partitions. The problem it that FDISK doesn't see the missing 4GBs.
Since fdisk /mbr deals directly with sectors at the beginning of the HD you would think that it would do the job but it did not.
From what I read killdisk works similar to fdisk. Correct?
by oc34
by stane
HI, you have to make just few steps to delete the Fedora partition.
Step 1: Prepare one windows 98 bootable diskette, second edition prefferable.
Step 2: Boot from previously prepared diskette and when write in command line: "fdisk /mbr".
Step 3: Go to Windows management by clicking right mouse click on MyComputer and pressing Manage. Go to Disk Management. Delete all non windows partitions that was created as a result of Linux installation.
Attention!!! By this operation you will completly destroy the Boot-Linux and there is no way to boot from linux again.
Note: Described operation may be usefull and will work just if the sequence of installation was as following: First Widndows installed and after it Fedora installed.
Enjoy, Stas.
by oc34
hi,
I was able to delete the linux partition using 'fdisk /mbr'.
I must say this command is interesting. When I rebooted from the bootdisk, I typed 'fdis /mbr' and it did something and silently returned to the A:\ prompt.
Then I typed 'fdisk' and I still saw the linux along with the linux partitions leaving the Windows partition alone. After restarting the machine, I checked how if my mysterious missing 4GB was returned... nothing. I only had 76GB total.
Since I didn't get much action by typing 'fdisk /MBR', was I supposed to see something at all?
I am sure the 4GB is hidden somewhere.
Oh, found this link on the web I thought I should share with you guys...
http://www.winntmag.com/Windows/Article/ArticleID/5327/5327.html.
I think this only works for windows NT and 98 though. Any thoughts?
by choppit
Sorry, my answer may not have been that clear.
FDISK /MBR only sets the master boot record back to defaults and executes quickly and silently.
Next you need to run fdisk (without the mbr switch) to actually work with the partitions.
Remove all the partitions one at a time using the menu options. The DOS partitions need to be removed in the correct sequence but fdisk will inform you of this (Logical > Extended > Primary)
When you're done you should have 80GB of unallocated space.
Create new partitions as required using the fdisk menu
Reboot
Hope this makes things clearer
by stane
Hi again,
I think you'r wrong in what you say.
The nominal space of 80Gb disk is about 78-76Gb, dependent of disk vendor.
To be sure in it, please check the disk model and go to vendor's web site for extended information about your hard drive model.
In addition, if fdisk /mbr didn't return anything message, it's normal. Fdisk /mbr not retutning any message when done.
Stas.
by house
You are not missing any space.
80,000,000,000 bytes / 1024 = 78,125,000 kB
78,125,000 kB / 1024 = 76,293 mB
76,293 / 1024 = 74.5 gB
There is some confusion in the exponential math involved (kilo = 1024) not 1000. There are 1024 bytes in a kilobyte, 1024 kilobytes in a megabyte, and 1024 megabytes in a gig!!!
Vendors will say that there is 80 gigs when in fact, there is only 80,000,000,000 bytes... know what I mean?
by oc34
by oc34
hi all,
Merry Xmas!
I did what you guys told me... using fdisk /mbr and then fdisk to delete partitions. FDISK showed me every single partition available which I deleted and formated.
Now I have a total of 76GB (76211.8 to be exact).
About your comments above, when the HD was first installed it had 80GBs!
I don't really care too much about the missing 4GBs. But for learning purposes I would like to know where it is.
If you have any other idea(s) I am ready to try them.
by stane
Hi again, please write me the model of your H.D. and I'll try to find any information about it.
Thanks,
Stas.
by stane
If you want to know the exact capacity of your H.D., run the Windows XP setup and when windows propose you to choose partition, remove all partitions that Windows see (Windows XP can see any type of partition and can to delete any type of partition, Linux, Unix, DOS....) and try to see how many place free to create the "Complete" H.D. partition.
Stas.
by dafe2
Killdisk works better, both are similar.
With Fdisk you will see the "missing" 4 GB when using the win98 version of Fdisk.exe as a "Non DOS" partition (Option 3 if memory serves) and can delete it at that point.
Fdisk/mbr only updates the master boot record. nothing more.
Killdisk saves you from running arround the fdisk.exe menu and offers the ability to "scrub" HDD's to "rudimentry" DOD specs.
by stane
HI all,
In addition to this calculation I want to add something else, please don't forget that FAT table stealing some place in H.D. drive, so you can't expect that hard drive with capacity, even netto 78.125.000 will be realy 78.125.000. Always capacity will be decreased by "FAT table usage", "1024 byte transfer to MBytes" and so on....
Stas.
by tomsal
NOOOOO.. don't use magnets, I'm just kidding. ;)
The suggestions here are excellent, I for one think that you might want to try the free utility "AEFDISK" (or something like that) since from the context of your post you are not a techie with computers.
I'd suggest too that if installing multiple operating systems...use separate HDDs. I know everyone talks about using multiple partitions and an OS on each partition, but I don't like that idea myself for many reasons -- the most basic (and obvious one) being what if you are doing serious work on a system and the drive dies totally, you lost all your Operating systems. If they were on separate drives the chances of Both/ALL drives failing at once is very VERY rare (strictly speaking of mechanical/electrical failure here).
by oc34
HI,
Yes, I tried every single thing you guys suggested! And yes, I deleted everything XP was able to see. Normally I do not give up that easily--but this one I think I am gonna :(
For my own selfish purpose I'll take the "80,000,000,000/1024" theory! For the moment sounds logical and it makes me feel good knowing that I didn't really distroy my misterious 4GBs.
But what still bugs me is the fact that before I did any partitioning, XP Total Capacity 80Gb; Used 4Gb. I wear! (Now it says, Total Capacity 76Gb; Used blahblah). It wasn't until somewhere along the way when I try to intall XP for the second time it asked me something like "Are you sure you want to delete this partirtion?" or something like that. When I said yes, I thought it was one of those trivial warning we always get.
Thank you for trying to help me out. Someday I hope to return the favor.
by house
It is not theory at all, it is binary/exponential mathematics for disk storage. It is a fact.
If you want to see this sort of activity in the Windows table, go to the Windows Explorer and view the properties of one of your local disk partitions.
example: [i]11,942,932,480 bytes 11.1 GB[/i]
by tomsal
Like the other posters on here..the 1024 thing isn't theory its fact. But besides that you'll always see a difference between raw size and formatted size on any volume with any operating system.
The "raw size" is the amount of drive space on the drive before ANYTHING is done to it - it has no files on it, it has no file system formatting done to it.
The "formatted size" is the amount of true (re: USEABLE) drive space on the drive AFTER it has been formatted for the particular file system that your OS uses. A drive can't be used unless its formatted. There's no way around this.
Even appliances that have Hard drives built into them, had to have their drives formatted at the factory before it was installed in the appliance (an example would be a Tivo/DVR device).
The file system uses up some space by building its indexes and segmenting the drive into what is called sectors, tracks and clusters. This all takes up space. The bigger the raw size of the driver, the more space the formatting will require simply because the driver is bigger so the file system needs to make more sectors, clusters, tracks and bigger indexes.
It gets WAY more geeky than this btw, I'm just trying to simplify this as much as possible.
;)
Hope that helps.
by dafe2
The post (says) he saw 80G originally & now only sees 76G which would suggest he still has a hidden partition somewhere. Killdisk & other utils would show this and delete them.
Depending on the format used on the disk you can expect to lose a small ammount of space to format.
Also, to find the true drive capacity you'd simply multiply Heads*Cyl*Sect*512 for the true capacity
by house
Hasn't he used any of the tools that we've been recommending. There are several tools that you can use to view, manage, and create hidden partitions. I wonder if he has tried any of these. Killdisk is great for a quick fix/wipe - and, he would have to worry about partitions at all. I use that utility more often than I should, but it does the job when it comes to data removal. I also use the gdisk utility (I beleive that it is packaged with Symantec Ghost though, so it may not be a "free" tool).
I believe that the "Delpart" utility has the ability to see hidden partitions. There are about 10 different partition managers that I use at any given time, so I can't seem to remember off hand.
He should create a boot disk and throw delpart.exe on the floppy. I'm almost positive that I've used it for hidden partitions before.
by dafe2
I don't think so.
And your right, most of the advice here would kill off a hidden partition..(And then some)
I use any one of these technics allmost weekly.
I think one partition might have been inadvertently missed. Just going by what the post says though.
by oc34
Believe me or not I did tried them.
When Partition Magic failed, I tried FDISK /MBR.
The that didn't work, I downloaded KillDisk. Unlike the other programs, KillDisk took a longer to complete so I was more optimistic. But in the end, the result was the same. After that my pc would not boot until I formated and installed the OS.
I did not try using "Delpart". Maybe I should have.
Even my friend who does this stuff for a living, looked at it and did not believe that the HHD had 80GBs at one point.
That's the story of the missing 4GBs. Someday, when I reformat the HDD again, I will try other utilities.
Thanxs guys.
by dafe2
If you had 80 Gig (Or close to it) as you say, before you started all this, then you may have missed a partition during your build.
When you go ahead with your next build, either flatten the drive using Delpart or just use the XP install CD to reclaim the space. Both methods see & delete "hidden" partitions. These are also known as "non-dos" partitions & include NTFS volumes.
Enjoy.
by oc34
I just used partition magic to see what partitions I had available. Although it does have an option to delete and format other partitions, I did not delete using this program.
Sorry for the confusion.
by dafe2
I'm aware of the tool............I asked, because no one else mentioned it here, and you mentioned you did not want to buy a program.
Also, it's been known to do all kinds of other, unexpected stuff as well. If you only used it to "view" I'm sure your ok.
Thanks again
DAFE2
by jamesweaving
Hi,
Don't know if any of the mentioned utilities will do this but the only further suggestion I can make would be to low level format the drive, most hard drive manufacturers will let you download a disk utility to perform a low level drive format but you will need the one from your drive manufacturer, if your manufacturer doesn't have one on their website then you may be able to get a generic one but try manufacturer first.
The low level format will effectively take the drive back to the condition it was in when the drive was made, no partitions, no data, nothing. This will recover the maximum space for the drive then you can tell for sure if it was around 80Gb to start with or if in fact the maximum size of the drive is 76Gb.
Be advised though that the low level format will take a few hours to run through. Once it has finished though you will have a fresh clean drive that you can install whichever OS you prefer onto.
Hope this is of some help.
James
by oc34
I like the low level partitioning idea.
In case you are interested, here is the HDD details.
HD 80GB|WD 7200RPM 8MB WD800JB
Western Digistal site has posted the following file Low-Level Format
Mc7fmtp.exe at http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=7&p_created=1003423281&p_sid=3uzWn7uh&p_lva=&p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9MSZwX3NlYXJjaF90eXBlPXNlYXJjaF9mbmwmcF9wYWdlPTEmcF9zZWFyY2hfdGV4dD1NYzdmbXRwLmV4ZSA*&p_li=
Is this what you were thinking of?
by oc34
Sorry, when I said Theory I was just being stupid.
But seriously, I understand what you are saying... the "raw size", "formatted size" and the file system uses up some space by building its indexes and all.
But 4GBs? The entire linux OS doesn't take that much.
Whatever I did, I screwed it up good!
By the way, I did post some HDD information on the previous post (HD 80GB|WD 7200RPM 8MB WD800JB). I got added to the wrong thread.
by tomsal
My situation is different because the box I'm talking about is my "gaming box" (yep I'm a big pc gaming junkie). They OS its running is Win XP Pro. My 80 gig drive formatted went down a few gigs, I should check for the heck of it..I do believe it was like 77gigs or in the neighborhood of that after formatting.
The 250 gig drive had lost more I want to say it was 226 after formatting, for some reason that number sticks in my head.
(Btw I highly suggest getting a 250 or bigger drive, they are awesome...even after the 6 games I installed on it I still have almost 198 gigs free).
by house
...like an older Tomb Raider PC port that I played. The install simply registered the game and saved your settings in windows, the rest of the game, ran completely off the cd, similar to a console game. I understand the speed issues and potential damage that this can cause to your cd-rom (while it is running non-stop), but I was very impressed with this concept. Perhaps I will try it now with a USB drive.
Has anyone ever tried to install an OS via flash memory? I will try to do this eventually when a 1024 USB key is available within my budget.
by dafe2
Incidentally, We use the same drives as the poster. The formated capacity, as he stated is 80G. We use them on hundreds of boxes here.
There's must be a 4G partition on the (poster's) drive.
However at this point, and after all the advice, this is no way to walk a newbie (No Offence) through using some of these tools.
It's at the point now where another poster is suggesting a low level format in 2004. Haven't done that since the MFM days. That can (and) does sometimes damage disks, even if you understand the tools (uses) to begin with.
This, after all the good advice supplied here.
Once again, no offence but, enough's enough sometimes. Eat the 4G or take it to a tech.
by oc34
I am not offended, if anything I am very appreciative of all this ideas going around.
Next time I get into a comversation about partitioning HDD,... I can mention all those utility Tools! :)
by oc34
I am not offended, if anything I am very appreciative of all this ideas going around.
Next time I get into a comversation about partitioning HDD,... I can mention all those utility Tools! :)
by oc34
I am not offended, if anything I am very appreciative of all this ideas going around.
Next time I get into a comversation about partitioning HDD,... I can mention all those utility Tools! :)
by house
When I read that "low level format" post, I cringed at the idea. You should never have to do a low level format at all. Nowadays, leave that to the factory.
The original poster also mentioned that he used the killdisk utility to wipe the drive. If he has done this, then there is no hidden partition anymore.
WARNING - Do not play around with low level format drive utilities.
by dafe2
There are 30+ posts here that answer the question. The first three posts AEFDISK, FDISK & DELPART would solve the 'problem' easily. AEFDISK, FDISK & DELPART.
Pretty sure OC34 isn't collecting partition utilities.
So, either he hasn't used the utils correctly (My Bet) & the disk continues to hold onto a partition or the disk does not give him an 80G formatted capacity as he maintains or the PCB is flaky.....Could be his BIOS changed & he now sees the 'true' disk capacity now too. As I said your math is exactly correct and we know manufacturers do this on purpose the same way some measure monitors a little 'diferently'.
** We use this same (I think) disk on HP Workstations & just for the hell of it one of my guys checked & it shows 78.5G total capacity.
In the meantime, OC34 can use his system & the sun will still come up tomorow.
by jamesweaving
I notice a couple of people disagree with my comments about a low level format. I wasn't suggesting that this was the best solution, only that it was a way to guarantee that any and all partitions were removed.
By using a hard drive manufacturers utility you are ensuring maximum compatibility with your drive, and giving you a good diagnostic program designed for the drive, and besides if killdisk has already been run on the drive then this has probably already performed a low level format from what I have read about it.
I'm not suggesting that this should need to be done or is necessarily the best step forward but as the original poster claims there is now a 4Gb difference that wasn't there originally then my suggestion would clear the drive.
by dafe2
Your advice was "technically" sound. However, as you know this can lead to disk damage if used incorrectly.
The function of Killdisk is to 'scrub' disks, it can damage disks too and it doesn't work the disk as hard as a LLF. Remember a tech hasn't even checked to see if this is even necessary yet and the potential was there to use the wrong tool as well. We might have just had him use the debug routine.:-)
Simply put, the user had no idea what he was doing and IMO was getting excellent advice and not understanding it. To ask this user to do a low level format with the (apparent) lack of understanding on the other end may needlessly damage a disk.
Like I said, no offense to you, but we're not even certain that 4 Gig is 'missing' either.
Remember 'house' math is sound & so is all the other advise here.
So, read (my) post and 'house' carefully with that view.
by uppulurivasu
the problem you faced is a very common things in dual boot OS. There are 2 processes to format your drive:
1....> By using windows 98 bootable.follow the steps below :
a) Create a bootable in Windows 98 by going to Add/Remove programs, Create start up disk. It will ask u for win 98 CAB files which are absolotluy required and they shall be available in Win98 CD\Win98 folder
b) Change the boot order in BIOS as First Boot Device is floppy. Press F10 and Hit Enter
c) Restart your system and start your computer with out CD-ROM support. After you go to Command prompt C:\ Type fdisk like this C:\Fdisk.
d) There shall be 5 points in the next menu where first you select display partition information. later note down the non dos partition label and details.
e) now hit escape, and come to Delete partitions where you have to give the non dos partition info.hit ptoceed to delete the partition.
f) after the partition is deleted. create a new partition in FAT/16/32 and reboot. the linux space which is lost shall be used for you.
2.....> using a partition software like Partition magic. After you install the software, just select the linux partition shown in RED and hit format, at that change the partition option as FAT32/NTFS etc. The Fedora Disk Space is ready to be used.
Ok. Take care and reply wether the problem is solved or not.
Bye.............
VASU
by oc34
VASU, thank you for writting all those details for me but for now I won't be needing it. I am just going to leave my system as it is. I have installed XP on a NTFS, created a separate partition for storing DATA and finally installed FC3 on its own partition. Its working great and I am not gonna mess with it anymore.
Having said that, I just wanted to show you what linux 'fdisk -l' command shows me. As you can see, it says 80GB on top. But if I looked at it from XP still says 76GB, which is fine. I am going to wipe out windows anyway and stay with FC3.
--------------------------
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 2123 7127 40202631 7 HPFS/NTFS
/dev/hda2 7128 9729 20900565 f W95 Ext'd (LBA)
/dev/hda3 65 2122 16530853+ 83 Linux
/dev/hda4 1 64 514048+ 82 Linux swap
/dev/hda5 7128 9729 20900533+ b W95 FAT32
by house
by oc34
So I wanted a solution long term solution. I was sick of buying already assembled PCs b/c they are expensive with cheap parts which makes upgrading impossible.
So, I decided to build my own system, an AMD Athlon? 64 processor. Yeah :)
Bought parts online, put them together and I was ready to rock and roll! It took me two months to finish it but i have not had a single problem.
In the process I have learned a lot. Having said that for me using all those utilities mentioned ealier was not a problem at all.
Like they say, the best way to learn is to try it and learn from your mistakes(if any).
You should do the same.
Take Care.
This discussion is closed to new replies.
Sort by Trending