[CentOS] disk initialize

Tue Feb 14 02:15:19 UTC 2006
Collins Richey <crichey at gmail.com>

On 2/13/06, Will McDonald <wmcdonald at gmail.com> wrote:
> On 13/02/06, Jerry Geis <geisj at pagestation.com> wrote:
> > All,
> >
> > Is there a way to "re-initialize" as disk? remove the the boot loader and
> > partions etc... make it "seem" like a brand new disk?
>
> dd if=/dev/zero of=/dev/hda bs=512 count=1
>

I have found that disks that contained an LVM setup don't get cleaned
up this way (refuse to accept a startover with LVM). I haven't done
much experimentation, but I always use

dd if=/dev/zero of=/dev/hda bs=512 count=1024

My $.02.


--
Collins Richey
      The agnostic dyslexic insomniac lies awake wondering if there is a dog.