[Linux-Anyway] Re: Windblows total screw up

  • From: Godwin Stewart <gstewart@xxxxxxxxxxx>
  • To: Linux-Anyway@xxxxxxxxxxxxx
  • Date: Thu, 29 Apr 2004 16:05:18 +0200

On Thu, 29 Apr 2004 15:57:17 +0100, John Richard Smith
<bagsofchoice@xxxxxxxxxxxxxxxxxxxxx> wrote:

> How do you clear out an invalid partition table and start again?

Boot into a Linux setup off a CD, then:

# dd if=/dev/zero of=/dev/hdx bs=512 count=1

Replace "hdx" with the device node of where your drive is plugged in (hda,
hdb etc...)

This will overwrite the MBR and the master partition table. Your disk will
be like the day it left the factory.

-- 
G. Stewart   --   gstewart@xxxxxxxxxxx -- gstewart@xxxxxxxxxxx
Registered Linux user #284683 (Slackware 9.0, Linux 2.6.5)
--------------------------------------------------------------
Give a man a fish and he will eat for a day. Teach him
how to fish, and he will sit in a boat and drink beer
all day.
To unsubcribe send e-mail with the word unsubscribe in the body to:   
Linux-Anyway-Request@xxxxxxxxxxxxx?body=unsubscribe

Other related posts: