3

Is there a way to completely nuke everything on a computer, including all OSs? I've been trying to fix a computer but I think at this point its time to cut my losses and reinstall.

8
  • 1
    You could boot up with a linux disk, get access to the command line and type dd if=/dev/zero of=/dev/sdX (where X is the drive you want to get rid of - so probably /dev/sda) - This will take a while as it will zero out the entire disk - you can do it much quicker using dd if=/dev/zero of=/dev/sdX bs=1024 count=1024 - which will zero out the first meg of the disk - including all references to the file structure and it will appear blank to a new OS install.
    – davidgo
    Jul 14 '16 at 22:08
  • 1
    Note that if you do perform a quick wipe by only destroying the filesystem metadata, all your data will still be there, and accessible to file-carving utilities like PhotoRec, Recuva, etc. The names and directory hierarchy will be lost, but the file data itself can still be retrieved. for well structured binary files, automated scanners can easily isolate files like images, non-text documents (MS office/libreOffice) PE executables/libraries, databases, etc. Jul 14 '16 at 22:16
  • 1
    Boot up from a system disk—like a USB flash drive or a CD/DVD disc—and then wipe the disk that way. Jul 15 '16 at 4:58
  • 2
    For secure wiping, see How can I reliably erase all information on a hard drive?. In this case, there does not seem to be a security concern. Then formatting the partition is enough; most operating systems will offer to format during installation, or do it automatically, so nothing special to do.
    – sleske
    Jul 15 '16 at 8:05
  • As well as the disks, consider whether you want to reset the machine's saved BIOS configuration back to factory defaults. It's not a given that you should do that, but do give it some thought. Jul 15 '16 at 8:39
7

short answer, use DBAN (aka Darik's Boot and Nuke): http://www.dban.org/

DBAN is a live CD with all the tools set up for securely wiping media. In general you boot from the LiveCD, use menus to select the disk, and perform the wipe.

Here is a tutorial: http://pcsupport.about.com/od/data-destruction/ss/dban-tutorial.htm

1
  • 10
    Note that DBAN is not suitable for SSDs (it will delete them, but not quite securely, and will shorten their lifespan). Use "ATA Secure Delete" instead.
    – sleske
    Jul 15 '16 at 8:02
14

Instead of downloading DBAN, you can do the same with any Windows Install disk. In fact I do it regularly with a Windows 7/8/8.1 ISO whichever I have.

  1. Boot up into the Windows Installer.
  2. On the partitioning screen, press SHIFT + F10 to bring up a command prompt.
  3. Type diskpart to start the application.
  4. Type list disk to bring up the connected disks.
  5. The Hard Drive is often disk 0. Type select disk 0.
  6. Type clean to wipe out the entire drive. Alternatively, type clean all and instead of just deleting, it will fill the drive with zeroes hence shredding the drive.

DBAN is the standard in data shredding, however, most people consider it an overkill. One pass of random data is often enough to make the data unreadable for anyone. Unless you have really confidential data and are afraid someone can sniff it, just use the diskpart's clean command.

6
  • 1
    ... and if you have really confidential data, you have it under whole drive encryption anyway, of course. Right? :D
    – Luaan
    Jul 15 '16 at 8:30
  • How about doing multiple clean all if you have confidential data? Jul 15 '16 at 8:48
  • 1
    @Russian Soyuz Rocket: Actually, Diskpart's clean all command writes all zeroes to the drive, not random data.
    – Nassbirne
    Jul 15 '16 at 9:46
  • @Krishnabhadra, that option would have worked but as Nassbirne stated, it writes zeros to the drive. I don't know the underlying magnetic theory of hard drives and can't say if writing the "same" data again and again would really suppress the older data enough to make it unreadable.
    – user612013
    Jul 15 '16 at 9:52
  • While I do appreciate the solution, I'm going to run Ubuntu not Windows, and attempting to do the same with the Ubuntu install threw errors.
    – John Doe
    Jul 15 '16 at 19:34
6

If all you want to do is reinstall, then there's no need to erase entire drive (as proposed by Frank Thomas and U. Muneeb). You just want to ensure that there's nothing that can obviously be read on the OS partition.

If you want to erase OS partition, but preserve other partitions, just start re-installing Windows from optical disc or flash drive. On the partition selection screen there will be a Format button. Select the partition you want to install to, format it and proceed with installation. Other partitions will be preserved (including recovery partition, if you have one). This is what you usually want to do when reinstalling Windows.

6
  • Yes, this. OP does not need/want a secure wipe, they just want the old OS out of the way. For that, reformatting the partition is enough.
    – sleske
    Jul 15 '16 at 8:04
  • Well, the OP noted "including all OSs", suggesting they need to nuke more than one OS/partition. Unless they have 10 different installations of Windows on the same partition, of course...
    – Luaan
    Jul 15 '16 at 8:32
  • 1
    If it's Linux you're installing rather than Windows, then most distros have the ability to partition and format drives before starting to write anything to disk. E.g. in the standard Debian or Ubuntu installer, it's in the install menu shortly after selecting your preferred language and keyboard layout. Jul 15 '16 at 8:36
  • 1
    Sometimes a corrupt partition table can mess things up. You might want to remove everything, including the partition table as well and start from scratch.
    – user612013
    Jul 15 '16 at 12:11
  • 1
    @RussianSoyuzRocket You're right. However OP doesn't seem to consider any options other than fixing current instance of OS and nuking hard drive. I wanted to show that there are other options and regular reinstallation is next thing to try before deleting innocent files.
    – gronostaj
    Jul 15 '16 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.