Re: How to erase all data on disks

Andrew Bacchi <[email protected]> Mon, 03 Mar 2008 12:08:10 -0500
Newsgroups gmane.linux.redhat.release.taroon.general
Message-ID <[email protected]>
You can use fdisk to erase all partitions.  Start fdisk then choose to 
delete all partitions, and then write the table to disk.

However that's not totally secure, and if you have sensitive data on the 
disk, I'd destroy the disk.

I degauss the disk which renders it totally useless and no one can 
capture the data from it. 

d.qureshi-7yFXA2EciJlaa/[email protected] wrote:
> I have a Compaq Prolianr ML370 server running Red Hat Linux release
> 7.1. The server has two local disks each 18GB and mirrored as RAID 1.
>
> How do I erase all the data on each disk?
>
> fdisk -l  displays the following file systems.
>
> # fdisk -l
>
> Disk /dev/sda: 255 heads, 63 sectors, 2213 cylinders
> Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sda1             6        71    530145   fd  Linux raid autodetect
> /dev/sda2            72       333   2104515   fd  Linux raid autodetect
> /dev/sda3             1         5     40131   12  Compaq diagnostics
> /dev/sda4           334      2213  15101100    5  Extended
> /dev/sda5           334       464   1052226   fd  Linux raid autodetect
> /dev/sda6           465       628   1317298+  fd  Linux raid autodetect
> /dev/sda7           629       890   2104483+  fd  Linux raid autodetect
> /dev/sda8           891      2213  10626966   fd  Linux raid autodetect
>
> Partition table entries are not in disk order
>
> Disk /dev/sdb: 255 heads, 63 sectors, 2213 cylinders
> Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdb1             6        71    530145   fd  Linux raid autodetect
> /dev/sdb2            72       333   2104515   fd  Linux raid autodetect
> /dev/sdb3   *         1         1      8001   12  Compaq diagnostics
> /dev/sdb4           334      2213  15101100    5  Extended
> /dev/sdb5           334       464   1052226   fd  Linux raid autodetect
> /dev/sdb6           465       628   1317298+  fd  Linux raid autodetect
> /dev/sdb7           629       890   2104483+  fd  Linux raid autodetect
> /dev/sdb8           891      2213  10626966   fd  Linux raid autodetect
>
> Partition table entries are not in disk order
>
>
> --
> Taroon-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/taroon-list
>
>   

-- 
veritatis simplex oratio est

Andrew Bacchi
Staff Systems Programmer
Rensselaer Polytechnic Institute
phone: 518 276-6415  fax: 518 276-2809

http://www.rpi.edu/~bacchi/

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list