Author Topic: How do I get the hard drive in my laptop back to a completely empty/new state?  (Read 4184 times)

0 Members and 1 Guest are viewing this topic.

Offline engineheatTopic starter

  • Frequent Contributor
  • **
  • Posts: 267
  • Country: us
I want to format my entire hard drive, including the C drive which has Windows 7 installed. I want to nuke everything and start fresh, and reinstall a OS from BIOS, just like when you first buy a hard drive.

How do I do this? I don't think Disc Management in Windows will allow me to format the C drive...

thanks
 

Offline kulla

  • Supporter
  • ****
  • Posts: 34
  • Country: se
Boot your computer with installation disc, you will have part of installation where you select partition where you can delete the ones that you have and create new empty one where you will install OS after formatting.
 

Offline Ampera

  • Super Contributor
  • ***
  • Posts: 2578
  • Country: us
    • Ampera's Forums
The techie's tool of choice here is a live GParted disk/c. It's free, works with pretty much every single file system and partition table known to man and a few species of intelligent lobster, and can do exactly what you are looking for.

If you were running Linux, you'd actually have a much better time nuking the entire system, as in theory Linux could stay alive just long enough to nuke the entire drive and then likely crash. I have never tried this, though.
I forget who I am sometimes, but then I remember that it's probably not worth remembering.
EEVBlog IRC Admin - Join us on irc.austnet.org #eevblog
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 12852
If you want to be certain there's nothing persistent that could affect a fresh OS install, and aren't a Linux nerd with a deep familiarity with dd, use DBAN (Darik's Boot and Nuke) in its "Quick Erase" mode.   

Caution: it will wipe most factory restore partitions so if your OS was supplied preloaded without media don't expect to be able to boot into the restore partition (which cant be trusted anyway if your machine's ever caught any malware) to reload afterwards.

N.B. it wont guarantee failing or failed sectors are securely erased, but they wont be accessible thereafter in normal operation.

It also wont help if you have been infected with a BIOS or HD controller firmware rootkit.
« Last Edit: April 16, 2018, 03:29:29 am by Ian.M »
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3666
  • Country: us
You can't reinstall the OS from the BIOS (if that's what you meant), you need an install disc for the OS you want to use. The install files can also be put on a USB flash drive. More info would be helpful.
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Nononononononono!!!

OK, first things first, I think that you mean to reinstall the OS from the recovery partition which is on the hard disk.

A tool like GPARTED (which is very powerful but not at all easy or safe to use if you have no experience of it) or DBAN will wipe the entire disk including the recovery partition so *DO NOT USE IT* unless you are 100%, absolutely dead sure it won't wipe anything important and that includes hidden recovery partitions.

We need to know which machine it is because different brands have different recovery methods, on some you hold down a function key to initiate the recovery from a hidden partition, you may need recovery disks if it doesn't haver that partition.

 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: gb
If you want to wipe the drive completely, find the manufacturer of the drive, go to their website and download their low level format tool.  This will zero the drive completely.  This is completely OS independent and will also test the drive and report on how many sectors are damaged etc.

Companies like Maxtor sometimes require you use this before they will accept a return drive as faulty.

Note, it takes quite a long time as it literally writes to every single byte on the drive multiple times.

EDIT:  If however you want to reset your laptop/PC to "factory" the way you bought it, follow the advice about recovery discs.  Usually one came with the PC or can be downloaded from the manufacturers website.

The two processes are not compatible.  If you erase the drive the recovery disc will no longer work.  Equally the recovery process will often not remove any persistent data which will often still exist and still be accessible and in others remains on the disc in a deleted but hackable state.
« Last Edit: April 16, 2018, 02:57:21 pm by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16844
  • Country: lv
If you want to wipe the drive completely, find the manufacturer of the drive, go to their website and download their low level format tool.  This will zero the drive completely.  This is completely OS independent and will also test the drive and report on how many sectors are damaged etc.

Companies like Maxtor sometimes require you use this before they will accept a return drive as faulty.
There are no low level format tools available for general public and maxtor is gone since 12 years ago. Not to say such tools may be useful for remapping bad sectors, not deleting data. As of how to make HDD as new, boot from USB or DVD drive, and use Diskpart (command prompt) to clean the disk from partition table (diskpart clean). Though just deleting volumes during installation is generally more than enough.

« Last Edit: April 16, 2018, 03:08:08 pm by wraper »
 

Offline rdl

  • Super Contributor
  • ***
  • Posts: 3666
  • Country: us
Using recovery disk(s) or hidden recovery partition usually has the drawback of also restoring all the original bloatware/crapware. Generally using a normal install disk is a better choice. The basic drivers included in the OS install will be enough to get up and running. You may need to locate and download some drivers afterward, but that's not much of a problem these days.
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Using recovery disk(s) or hidden recovery partition usually has the drawback of also restoring all the original bloatware/crapware. Generally using a normal install disk is a better choice. The basic drivers included in the OS install will be enough to get up and running. You may need to locate and download some drivers afterward, but that's not much of a problem these days.

Usually, but it's often the case that the disks you can create from that partition are a raw OS set plus the crapware on a separate disk so it's worth exploring.
 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: gb
If you want to wipe the drive completely, find the manufacturer of the drive, go to their website and download their low level format tool.  This will zero the drive completely.  This is completely OS independent and will also test the drive and report on how many sectors are damaged etc.

Companies like Maxtor sometimes require you use this before they will accept a return drive as faulty.
There are no low level format tools available for general public and maxtor is gone since 12 years ago. Not to say such tools may be useful for remapping bad sectors, not deleting data. As of how to make HDD as new, boot from USB or DVD drive, and use Diskpart (command prompt) to clean the disk from partition table (diskpart clean). Though just deleting volumes during installation is generally more than enough.



http://knowledge.seagate.com/articles/en_US/FAQ/196275en?language=en_US&key=ka030000000tnDZAAY&kb=n&wwwlocale=en-gb

Low level format tools actually overwrite the drive multiple times with bit sequences, this allows them to identify bad sectors, remap them and to assess the health of the drive.  They also, due to overwriting the data completely wipe it.  Only the FBI/Forensics would recover the data.

Parted / Disk part, et. al. simply delete the partition table.  I have recovered complete partitions after that process was done accidentally on one of mine.  (Yes, a case of "Oh shit, not that disk, the other one)  I was able to reinstate the partition table.  Similarly I have formatted drives accidentally and then promptly recovered them, mostly.  This required the linux block level tools though.

So it really depends on how deep the erasure you want.  Of course in business they have moved on from magnetic erasure to companies that will come round and put the drive through a shredder for you.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: gb
Also beware that recovery disks often don't delete your existing data and if there is enough of it will actually fail as they try and expand temporary files before overwriting the OS, so if the destination C drive is full they can fail.  I have lots of trouble with them and usually ended up doing the process myself.  Note that, as long as you have a windows license sticker for the version you are installing (or are entitled to) the actual install media can be downloaded easily.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline GreyWoolfe

  • Supporter
  • ****
  • Posts: 3651
  • Country: us
  • NW0LF
My company uses DBAN.  We work with the public sector and must use DBAN to decommission a hard drive if the drive is functional enough to do so, otherwise it's complete destruction.  I also use it myself to completely clean a hard drive.  Know that it can take hours to completely wipe a hard drive with DBAN.  I have also used DiskPart to get rid of the GPT partition that Clonzilla creates so I could do a clean install from an OS disc instead of an image.  This process doesn't take long.  Do you have media for your OS?  Disc or flash drive?  If so, DBAN it.  If you have only the recovery partition, use DiskPart to clean the partition.
"Heaven has been described as the place that once you get there all the dogs you ever loved run up to greet you."
 

Offline ez24

  • Super Contributor
  • ***
  • Posts: 3082
  • Country: us
  • L.D.A.
For the future:

I have not seen install disks in years.  When I get a new computer, I turn it on and let it do its thing (no internet).  Then I turn it off and remove the HD and clone it (cloners are cheap) and put the clone back in (usually a SSD) and store the original.  If something happens, I clone the original again.  Very easy and simple and reliable.

Just last week I ran into a new problem.  My latest computer came with a mSATA drive so I had to order adapters (for the cloner) and have not figured out how to clone the mSATA yet.   |O

But I do have a related problem that some of these answers seen too complex so I will start a new topic :

"Simple way to clean a Dell laptop for donation"

Removing a HD from a laptop decreases the value too much for a donation.  I have 6 old laptops that I would like to donate without damaging the HDs.

YouTube and Website Electronic Resources ------>  https://www.eevblog.com/forum/other-blog-specific/a/msg1341166/#msg1341166
 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: gb
So you let windows find itself and set it's self up for one PC, then clone it and put it into other computers and hope that windows figures everything out and cleanly swaps the driver assignments and autoconfig over?  Even with sysprep it leaves stray driver assignments lying around and gets it's self into a muddle... often just blue screening on boot even in safemode.

That said I have maintained the same instance of linux for about 10 years through 3 different computers without a reinstall.  It's that it's more repairable and upgradable with the right amount of time effort and know how than windows is.

Then again, Windows is much more prone to issues that are just not recoverably from, including malware/viri infection and Windows just driving itself nuts.  So, I too have kept image based backups of Windows on external drives.  I never expect them to work on different machines though.

I know the local college uses a rotating wipe and reclone using PIXE boot tools and network drive clone software to routinely and frequently erase and reimage every PC in the building automatically.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16844
  • Country: lv
http://knowledge.seagate.com/articles/en_US/FAQ/196275en?language=en_US&key=ka030000000tnDZAAY&kb=n&wwwlocale=en-gb

Low level format tools actually overwrite the drive multiple times with bit sequences, this allows them to identify bad sectors, remap them and to assess the health of the drive.  They also, due to overwriting the data completely wipe it.  Only the FBI/Forensics would recover the data.
Do you realize how old that tool and supported drives are? Also such tools are not intended for data destruction so nothing is guaranteed. Not to say question was about making drive "like new" for further own use, not irrecoverably destroying the data.
As of newer seatools it barely can do anything and low level format is certainly not among it's capabilities.
« Last Edit: April 18, 2018, 12:00:53 pm by wraper »
 

Online Halcyon

  • Global Moderator
  • *****
  • Posts: 5669
  • Country: au
 

Online wraper

  • Supporter
  • ****
  • Posts: 16844
  • Country: lv
See my post from an almost identical thread here: https://www.eevblog.com/forum/chat/simple-way-to-clean-a-dell-laptop-for-donation/msg1480675/#msg1480675
It's not. That thread is particularly about destroying data without loosing windows install, not making HDD as if was fresh.
 

Online Halcyon

  • Global Moderator
  • *****
  • Posts: 5669
  • Country: au
See my post from an almost identical thread here: https://www.eevblog.com/forum/chat/simple-way-to-clean-a-dell-laptop-for-donation/msg1480675/#msg1480675
It's not. That thread is particularly about destroying data without loosing windows install, not making HDD as if was fresh.

Same principle still apply, just adjust it to your requirements.
 

Online wraper

  • Supporter
  • ****
  • Posts: 16844
  • Country: lv
See my post from an almost identical thread here: https://www.eevblog.com/forum/chat/simple-way-to-clean-a-dell-laptop-for-donation/msg1480675/#msg1480675
It's not. That thread is particularly about destroying data without loosing windows install, not making HDD as if was fresh.

Same principle still apply, just adjust it to your requirements.
It's completely different, no step will be done the same.
 
The following users thanked this post: ez24

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Low level format tools actually overwrite the drive multiple times with bit sequences, this allows them to identify bad sectors, remap them and to assess the health of the drive.  They also, due to overwriting the data completely wipe it.

That's not a low level format, a low level format is a process from back when hard drives were not intelligent and did not have embedded servo tracks, it re-writes the underlying 'structure' of the disk (tracks and sectors) that allow the controller to locate the heads and write data in known locations on the physical media, the DOS or Linux or whatever OS you choose then lays it's own high level format down within the framework of that low level structure.

There is no way a PC can perform a low level format of almost any hard disk made in the last 20 years, it is simply not possible despite what the companies writing the disk utilities would have you believe (and that, in some situations includes disk manufacturers who misuse the term).

What you are describing is a media test, weirdly though that media test is a more thorough way to destroy data than a real low level format because it writes to everywhere on the disk that's marked as being available for data whereas a true LLF just creates the markers that indicate where the data can be put and doesn't always write everywhere (though some did) so even though the data isn't locatable by the controller it can still be recovered in part or whole with some large amount of effort and skill.

debug
g=c800:5
 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 4028
  • Country: gb
There is no way a PC can perform a low level format of almost any hard disk made in the last 20 years, it is simply not possible despite what the companies writing the disk utilities would have you believe (and that, in some situations includes disk manufacturers who misuse the term).

So maybe that's were I got the term from.  I have had to return several drives due to being broken and they asked me to test the drive with their "low level format tool".  It was about 10 years ago now, I vaguely recall it giving you a fault code for the warranty claim.   It also gave a report on number of bad sectors marked etc.  They were boot disc OS free utilities.  A good drive would take ages to complete. In my case it failed pretty quickly as it was returning mostly broken sectors and it gave up declaring the drive (only a year old) faulty.
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline G7PSK

  • Super Contributor
  • ***
  • Posts: 3859
  • Country: gb
  • It is hot until proved not.
For the future:

I have not seen install disks in years.  When I get a new computer, I turn it on and let it do its thing (no internet).  Then I turn it off and remove the HD and clone it (cloners are cheap) and put the clone back in (usually a SSD) and store the original.  If something happens, I clone the original again.  Very easy and simple and reliable.

Just last week I ran into a new problem.  My latest computer came with a mSATA drive so I had to order adapters (for the cloner) and have not figured out how to clone the mSATA yet.   |O

But I do have a related problem that some of these answers seen too complex so I will start a new topic :

"Simple way to clean a Dell laptop for donation"

Find the licence code for the software if not on label on computer use something like Belarc advisor. Then download the OS and reinstall on the HDD of the computer, Dell have a repository of all their drivers and even a tool for downloading them.  I have done this on many over the years.

Removing a HD from a laptop decreases the value too much for a donation.  I have 6 old laptops that I would like to donate without damaging the HDs.
 

Online Halcyon

  • Global Moderator
  • *****
  • Posts: 5669
  • Country: au
That's not a low level format, a low level format is a process from back when hard drives were not intelligent and did not have embedded servo tracks, it re-writes the underlying 'structure' of the disk (tracks and sectors) that allow the controller to locate the heads and write data in known locations on the physical media, the DOS or Linux or whatever OS you choose then lays it's own high level format down within the framework of that low level structure.

There is no way a PC can perform a low level format of almost any hard disk made in the last 20 years, it is simply not possible despite what the companies writing the disk utilities would have you believe (and that, in some situations includes disk manufacturers who misuse the term).

Correct. Furthermore if you do somehow manage (through the use of other tools) to "Low Level Format" your modern spinning disk hard drive, it will be rendered permanently useless.
 

Offline MyHeadHz

  • Regular Contributor
  • *
  • Posts: 165
  • Country: us
If you want to wipe the drive completely, find the manufacturer of the drive, go to their website and download their low level format tool.  This will zero the drive completely.  This is completely OS independent and will also test the drive and report on how many sectors are damaged etc.

Companies like Maxtor sometimes require you use this before they will accept a return drive as faulty.
There are no low level format tools available for general public and maxtor is gone since 12 years ago. Not to say such tools may be useful for remapping bad sectors, not deleting data. As of how to make HDD as new, boot from USB or DVD drive, and use Diskpart (command prompt) to clean the disk from partition table (diskpart clean). Though just deleting volumes during installation is generally more than enough.



http://knowledge.seagate.com/articles/en_US/FAQ/196275en?language=en_US&key=ka030000000tnDZAAY&kb=n&wwwlocale=en-gb

Low level format tools actually overwrite the drive multiple times with bit sequences, this allows them to identify bad sectors, remap them and to assess the health of the drive.  They also, due to overwriting the data completely wipe it.  Only the FBI/Forensics would recover the data.

Parted / Disk part, et. al. simply delete the partition table.  I have recovered complete partitions after that process was done accidentally on one of mine.  (Yes, a case of "Oh shit, not that disk, the other one)  I was able to reinstate the partition table.  Similarly I have formatted drives accidentally and then promptly recovered them, mostly.  This required the linux block level tools though.

So it really depends on how deep the erasure you want.  Of course in business they have moved on from magnetic erasure to companies that will come round and put the drive through a shredder for you.

There are some common misconceptions in that post.  It has not been possible to "low-level format" consumer drives for a long time.  Drives come low-level formatted (using very expensive commercial equipment) from the factory.  Once low-level formatted, the disks are then added to the rest of the consumer grade components in an HDD to be soft formatted and used normally.  You are getting low-level formatting mixed up with "wiping," which is a common error.  is a short and simple explanation in video form.  In that link you provided, it used the term "low level format" a few times, but what it describes is a slightly different software formatting- in other words, pure marketing wank.  There is not a way to low-level format modern drives (last 20 or so years), regardless of manufacturer, outside of the manufacturer's original production line process and equipment.  period.

You also refer to data forensics techniques (Guttman method).  Any remotely modern drive (the size is debatable, but certainly anything above 80GB, no matter what standard or technology) is impossible to recover- no matter the method, and no matter the actor- your, your mom, FBI, CIA, tin foil hat guy, aliens, etc.  As long as the data is actually written over at least once, it is simply not physically possible to recover it.  This misconception is quite old and comes from an early research paper on magnetic storage.  The author himself even later corrected the confusion saying it only works on very old drives- think mid-90's floppy drives, and possibly early MB or very low GB range HDD's.  How this misconception has lived for decades is beyond me.  :o

That being said, DBAN sounds like what the author wants.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf