Erase a hard drive

Sharky Forums


Results 1 to 7 of 7

Thread: Erase a hard drive

  1. #1
    Catfish webraycer's Avatar
    Join Date
    Dec 2001
    Location
    Midlothian, VA, USA
    Posts
    187

    Post Erase a hard drive

    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

    ------------------
    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

  2. #2
    Tiger Shark DeadKen's Avatar
    Join Date
    Oct 2001
    Location
    Seattle
    Posts
    800

    Post

    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


    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...
    I want an OS, not a hobby...

    Theres nothing more pathetic then someone who wears non-matching socks on purpose.

  3. #3
    Expensive Sushi
    Join Date
    Dec 2000
    Posts
    30

    Post

    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

  4. #4
    Reef Shark chronicle's Avatar
    Join Date
    Jan 2002
    Location
    NYC, NY, USA
    Posts
    311

    Post

    You should be fine

    ------------------
    Girls!
    Can´t live with em'
    Can´t live without em'!

  5. #5
    Catfish webraycer's Avatar
    Join Date
    Dec 2001
    Location
    Midlothian, VA, USA
    Posts
    187

    Post

    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

  6. #6
    Reef Shark biosx's Avatar
    Join Date
    Jun 2001
    Location
    Chicago, IL, USA
    Posts
    448

    Post

    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 ##
    ## root is the greed of all evil ##

  7. #7
    Catfish webraycer's Avatar
    Join Date
    Dec 2001
    Location
    Midlothian, VA, USA
    Posts
    187

    Post

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •