RE: How to erase all data on disks

"Robert G. (Doc) Savage" <dsavage-1z/[email protected]> Sat, 22 Mar 2008 10:31:04 -0500
Newsgroups gmane.linux.redhat.release.taroon.general
Message-ID <[email protected]>
You didn't say, but since the sizes of your drives are 18GB it's safe to
assume they are SCSI-type. As such, there is an additional security step
you can take that should overwrite and obliterate any data in bad
sectors that are out of the reach of filesystem tools like dd.

It requires an ordinary (non-RAID) SCSI host adapter card. Connect both
drives to that controller jumpered to different device IDs. Early in the
boot process, during the BIOS initiation of the SCSI host adapter, you
should see a prompt to hit Ctrl-A or other keystroke combination to
configure the drives. In that configuration utility you can do a
low-level format on each drive. A low-level format will write all new
tracks on the drive with empty sectors, new sector headers, inter-sector
gaps, etc.

After a low-level format, your drives will be in exactly the same
pristine original condition (except for spindle hours) as when they were
first physically installed in your server.


On Tue, 2008-03-04 at 08:28 +0000, SAID MOKHTARI wrote:
> boot from cd or dvd with rescue mode (linux rescue)
> Then you can use dd to erase each disk=20
>=20
> # dd if=3D/dev/zero of=3D/dev/sda
> # dd if=3D/dev/zero of=3D/dev/sdb
> # sync
>=20
> bye
> -----Message d'origine-----
> De : [email protected] [mailto:taroon-list-bounces@redhat.=
com] De la part de d.qureshi-7yFXA2EciJlaa/[email protected]
> Envoy=C3=A9 : lundi 3 mars 2008 16:42
> =C3=80 : [email protected]
> Objet : How to erase all data on disks
>=20
> 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.
>=20
> How do I erase all the data on each disk?
>=20
> fdisk -l  displays the following file systems.
>=20
> # fdisk -l
>=20
> Disk /dev/sda: 255 heads, 63 sectors, 2213 cylinders
> Units =3D cylinders of 16065 * 512 bytes
>=20
>    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
>=20
> Partition table entries are not in disk order
>=20
> Disk /dev/sdb: 255 heads, 63 sectors, 2213 cylinders
> Units =3D cylinders of 16065 * 512 bytes
>=20
>    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
>=20
> Partition table entries are not in disk order
>=20
>=20
> --
> Taroon-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/taroon-list
>=20
>=20
> --
> Taroon-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/taroon-list
>=20

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