Click to See Complete Forum and Search --> : Erase a hard drive
webraycer
02-04-2002, 10:44 PM
I want to completely reset my computer, and I would like to write a program that will write all zero's to my hard drives so that I can be sure they are completely reset. I know a fair amount of c++ and I have visual c++ 6.0, so I know I have the tools to do it I just dont know how. I think I need to use pointers. Any help would be helpful http://www.sharkyforums.com/ubb/wink.gif
------------------
What good is it if you've got everything but the one thing that you really need?
---
Athlon 1.2ghz
384mb sdram
Asus A7V133 Motherboard
GeForce2mx
Soundblaster Live 5.1
DVD-Rom 16x
Two 40 gig 7200rpm HD's
Win2k Pro
DeadKen
02-05-2002, 01:10 PM
Originally posted by webraycer:
I want to completely reset my computer, and I would like to write a program that will write all zero's to my hard drives so that I can be sure they are completely reset. I know a fair amount of c++ and I have visual c++ 6.0, so I know I have the tools to do it I just dont know how. I think I need to use pointers. Any help would be helpful http://www.sharkyforums.com/ubb/wink.gif
I don't think visual c++ will help much. The task to want to accomplish is at a lower level then a Windows app is normally allowed to run.
You would probably have to boot to Dos to do a decent job of it. Then you could wipe it out by hand (disk i/o operations).
------------------
I want an OS, not a hobby...
ihafarm
02-05-2002, 02:47 PM
First off, if it is an IDE drive DO NOT ATTEMPT TO ZERO IT OUT. You have a 50/50 chance of destroying the drive completely. SCSI drives don't have that problem. On the other side...it is possible to recover data from drives that have been zero'd out. I've heard of machines that can recover from a drive that's been zero'd up to 22 times. You can probably find a utility to do zero a drive on sharware.com.
-ihafarm
chronicle
02-05-2002, 02:58 PM
You should be fine
------------------
Girls!
Canīt live with em'
Canīt live without em'!
webraycer
02-05-2002, 11:26 PM
yea it is ide. Are there other ways to be sure everything is erased from the drive? One drive has been registering as 32 gigs and it is a 40 gig drive. I cant remember when this happened but I think it was the last time i tried to install linux. An extra 8 gigs would be nice. I just want to be sure all the space is freed up.
------------------
What good is it if you've got everything but the one thing that you really need?
---
Athlon 1.2ghz
384mb sdram
Asus A7V133 Motherboard
GeForce2mx
Soundblaster Live 5.1
DVD-Rom 16x
Two 40 gig 7200rpm HD's
Win2k Pro
biosx
02-07-2002, 06:29 PM
Originally posted by webraycer:
yea it is ide. Are there other ways to be sure everything is erased from the drive? One drive has been registering as 32 gigs and it is a 40 gig drive. I cant remember when this happened but I think it was the last time i tried to install linux. An extra 8 gigs would be nice. I just want to be sure all the space is freed up.
A good way is to fdisk the hard drive, and delete all the partitions. Then create a new partition and have it do the max size. That usually fixes any problems with old partitions from other OS's.
You also have to understand that math (when dealing with bits and bytes) is different. 1G is not necessarily 1,000 bytes. It is actually 1024 bytes. With this converting, the harddrives usually don't show the number that you think your hard drive really is.
Good luck
------------------
## root is the greed of all evil ##
webraycer
02-07-2002, 08:38 PM
I am aware of the byte->gigabyte conversion, but what is strange is that one hard drive is about 38,000 megabytes, and the other about 32,000 megabytes. They are exactly the same. I cant remember for sure, but i think originally they were the same. It seems interesting that the size of one of them is the maximum size for a fat32 partition. Yes, I have tried deleting all partitions (I have done that several times). Actually, there is no partition on that disk as I type this message.
------------------
What good is it if you've got everything but the one thing that you really need?
---
Athlon 1.2ghz
384mb sdram
Asus A7V133 Motherboard
GeForce2mx
Soundblaster Live 5.1
DVD-Rom 16x
Two 40 gig 7200rpm HD's
Win2k Pro