How to format system drive of windows XP without cd drive

5,542

Solution 1

You can do it using USB flash drive.. Two way possible with it:

1st, you can can create a bootable USB flash disc, but it would be tricky i guess.

I'd rather the 2nd way which is copying the windows setup files to a flash disc using another computer, then install recovery console to target pc using flash disc. After that boot to recovery console and format from there...

Check out http://support.microsoft.com/kb/307654/en

Solution 2

You could bring a Linux Live USB stick to the machine, boot off that, run fdisk /dev/sda and delete the partition(s).

That would allow the system to become operational again just by recreating the partition table (which will be easy if there is only one partition). To stop that blank the drive with dd if=/dev/zero of=/dev/sda, or for a faster option just kill the start of each filesystem with dd if=/dev/zero of=/dev/sda1 bs=1024 count=1024, dd if=/dev/zero of=/dev/sda2 bs=1024 count=1024 and so on before wiping the partition table with with fdisk. ls /dev/sd* will tell you what partitions are present on the drive.

Edit: Why can't I restart in plain old DOS and do a plain old format c: /u? - You can if you have an old DOS boot floppy hidden away, but with XP there is no "plain old DOS" to boot to.

Solution 3

Formatting doesn't remove data. Use a software like DBAN.

Share:
5,542
Abel
Author by

Abel

Creator of the .NET XSLT 3.0 processor Exselt, which is currently in beta. You can reach me via Twitter (sometimes), by mail at [email protected] (be careful not to look like spam), or through my companies Exselt or Abrasoft (consultancy). I'm an invited expert of the W3C XSLT and XQuery Working Group where we develop the next version of XSLT: version 3.0. Since September 2015 the group went public, which means that most of the mail discussions can now be actively participated in. If you find a bug or other issue with the XSLT 3.0 specification, you can send a mail to [email protected], or you can visit the archives (since Sept 2015).

Updated on September 18, 2022

Comments

  • Abel
    Abel over 1 year

    My sister is giving away her old computer. The data is non-sensitive, however she'd rather give it away empty. The computer is disconnected from the internet, does not have a CD drive anymore and runs Windows XP.

    Is there a way to format the system drive regardless (all I found was that it requires the installation disk of XP, which is quite a hassle)?

    Why can't I restart in plain old DOS and do a plain old format c: /u?

  • Abel
    Abel over 12 years
    I know it doesn't. She wants it to appear empty. We don't expect the KGB to search her computer.
  • Abel
    Abel over 12 years
    Well, it is a solution, but still an extreme lot of work for such an easy task.
  • Hasan Manzak
    Hasan Manzak over 12 years
    You cannot do a dos boot without any external because of the DOS in windows XP is emulated within the OS itself. It was win98 the last one operates on top of real dos... 2nd solution, recovery console, i suggested is not an extreme but way easier solution then removing the disc and plugging to another pc...
  • kinokijuf
    kinokijuf over 12 years
    The next owner will sure inspect it for "interesting" data.
  • Abel
    Abel over 12 years
    We ended up plugging in an old cd drive and booting from it to reinstall XP. Good enough for her needs. I'd use DBAN myself, I guess. Accepted this, though I value the other answers as well, they all have merit.
  • HiFi
    HiFi over 12 years
    DBAN, one or two passes (or whatever they call it) should be fine. Anymore and your in KGB Proof area, any less and your venerable to the many "Recover my files" programs
  • kinokijuf
    kinokijuf over 12 years
    One pass should be enough.
  • Chris Nava
    Chris Nava over 12 years
    That's because it's NOT as simple as just formatting the drive. You MUST overwrite the bits and for that you need a few utilities. `FORMAT C:' is NOT enough to ensure that the person who gets the drive can't recover your files.
  • Chris Nava
    Chris Nava over 12 years
    It doesn't take much to recover data after a format. In fact, the linux bood cd (in the solution mentioned above) can do some of it without additional tools.
  • soandos
    soandos over 12 years
    Low level formatting does erase all the data. Just a note. This is not usually what people mean when they say formamting though.