From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Copeland KCK, Rich" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: How to really kill a disk before retirement? Date: Tue, 17 Feb 2004 09:48:31 -0600 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <1A09A5E83519BF4881664BCBD9F7A18C450201@ksovepexc001.gentiva.ghsnet.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1077033026 6306 80.91.224.253 (17 Feb 2004 15:50:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 17 Feb 2004 15:50:26 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Feb 17 16:50:11 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1At7UA-0005A7-00 for ; Tue, 17 Feb 2004 16:50:11 +0100 Original-Received: (qmail 11282 invoked by uid 5); 17 Feb 2004 15:49:39 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 11267 invoked by uid 49493); 17 Feb 2004 15:49:37 -0000 Original-Received: from rich.copeland.kck@gentiva.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-4.7/5.0):. Processed in 14.11768 secs); 17 Feb 2004 15:49:37 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 17 Feb 2004 15:49:20 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HT80097QJY3BN@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 17 Feb 2004 10:49:20 -0500 (EST) Original-Received: from zixvpm02.gentiva.com (zixvpm02.gentiva-hs.com [12.108.130.45]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HT8008F7JXXS2@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 17 Feb 2004 10:49:14 -0500 (EST) Original-Received: from zixvpm02.gentiva.com (ZixVPM [127.0.0.1]) by Outbound.gentiva-hs.com (Proprietary) with ESMTP id 445B4270040 for ; Tue, 17 Feb 2004 09:49:00 -0600 (CST) Original-Received: from ksovepexc005.Gentiva.GHSNet.Com (csk.gentiva-hs.com [12.108.130.10]) by zixvpm02.gentiva.com (Proprietary) with ESMTP id DD3DD23005D for ; Tue, 17 Feb 2004 09:48:59 -0600 (CST) Original-Received: from ksovepexc004.Gentiva.GHSNet.Com ([10.170.21.5]) by ksovepexc005.Gentiva.GHSNet.Com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 17 Feb 2004 09:48:31 -0600 Original-Received: from ksovepexc001.Gentiva.GHSNet.Com ([10.170.20.34]) by ksovepexc004.Gentiva.GHSNet.Com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 17 Feb 2004 09:48:31 -0600 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.6249.0 Thread-Topic: SUMMARY: How to really kill a disk before retirement? Thread-Index: AcPyiFsLPCjTA7asSSqDNUAp5Xx60g== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 17 Feb 2004 15:48:31.0398 (UTC) FILETIME=[7E326C60:01C3F56D] Xref: main.gmane.org gmane.os.tru64.managers:6450 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6450 *** Original Message/Request *** Tru64 Admins ... your opinion please ... To fully eradicate a disk before retirement my memory wants me to think = that the command: # diskx -f /dev/disk/disk0c -w -pattern 99 will do the trick, anyone have any other ideas or will confirm this plan = please. Regards, =A0 Rich Copeland KCK Rich.Copeland.KCK@gentiva.com *** Thank you for your opinion *** Dr. Thomas Blinn Alan Rollow Rick Kelly Phillip Brown S Thangavelu John Lanier *** Solution chosen *** # man zeero Reformatting page. Please wait ... completed zeero(8) = zeero(8) NAME zeero - Zero out disks prior to rewrite. SYNOPSIS /usr/lbin/zeero [-d] [-f] device OPTIONS -d Specifies diagnostic mode. Prints the total number of writes and = the exit errno. An exit status of errno 28 indicates success; zeros = were written until the device ran out of space. -f Specifies silent mode. This option does not prompt for a = response. If the -f option is not used, the user is warned that all data will = be erased from /dev/rdisk/dsk?? and asked for an affirmative response before continuing. DESCRIPTION The zeero command writes zeros throughout a disk partition including = the disk label. You must be super user to use this command. EXAMPLES 1. In the following example, the zeero command is used to overwrite = par- tition a with zeros. /usr/lbin/zeero /dev/rdisk/dsk1a 2. In the following example, the zeero command is used to overwrite = the entire disk with zeros. /usr/lbin/zeero /dev/rdisk/dsk0c FILES /usr/lbin/zeero # # /usr/lbin/zeero -d /dev/rdisk/dsk5c ******** W A R N I N G ******** This program will completely erase all data on /dev/rdisk/dsk5c. Are you sure you want to do this (y/n): y Cleaning /dev/rdisk/dsk5c.....number of writes =3D 555544, errno =3D 28 done. # # dd if=3D/dev/rdisk/dsk5c dd: 71109623+0 records in. dd: 71109623+0 records out. # # # disklabel -r dsk5 disklabel: Disk /dev/rdisk/dsk5c is unlabeled # If I were to guess I think zeero is doing a: # dd if=3D/dev/zero of=3D/dev/rdisk/dsk5c underneath. *** Other solutions were offered; however this one seems to be adequate = for our requirements.