- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Wiping Disks: more than /dev/zero ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 11:30 AM
06-25-2002 11:30 AM
Re: Wiping Disks: more than /dev/zero ...
Now that 'we' solved the /dev/one issue, now management wants a layer of random characters.
Now, I could probably use the following expression to generate random numbers, but I'm not sure how to use it as an input for 'dd':
((num=RANDOM %10 +1)); print $num
I'm sure someone with better scripting skills than I could figure some useful command line.
Thanks in advance !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2002 12:12 PM
06-25-2002 12:12 PM
Re: Wiping Disks: more than /dev/zero ...
This should blow the doors off of anything you can do in the shell:
perl -e 'srand(time() ^ $$); while (1) { print chr(int(rand() * 255)); }' | dd bs=8k of=/dev/rdsk/cXtYdZ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 05:02 AM
06-26-2002 05:02 AM
Re: Wiping Disks: more than /dev/zero ...
If you haven't already done so, then test if your proposed solution is *fast enough* (to wipe a disk)?
Why? Well, I came up with The Perfect Method (tm), which did use standard HP-UX commands, i.e. no /dev/zero with its associated problems, no 'fancy' perl, etc., *BUT*, before posting it, I actually tested it for a few megabytes of data and it was dog/too slow, 44 *seconds*/MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 05:05 AM
06-26-2002 05:05 AM
Re: Wiping Disks: more than /dev/zero ...
For each 4GB disk I was wiping, each pass of ones or zeros took 7 minutes. I am about to try the perl line Clay provided. I'll post the entire procedure and time it takes once complete.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 05:09 AM
06-26-2002 05:09 AM
Re: Wiping Disks: more than /dev/zero ...
The 44 seconds/MB 'speed' I mentioned was the 'speed' of only the data source, i.e. sending the output from the data source to /dev/null, i.e. *without* the time needed for actually writing_to/wiping the disk..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2002 06:58 AM
06-26-2002 06:58 AM
Re: Wiping Disks: more than /dev/zero ...
I wrote a shell script that requires the cXtYdZ disk indentifier as an agruement. This script assumes /dev/zero exists.
#!/bin/sh
date
echo "Starting first pass now ..."
dd if=/dev/zero of=/dev/rdsk/$1 bs=8k
date
echo "33% done"
tr '\0' '\377' < /dev/zero | dd of=/dev/rdsk/$1 bs=8k
date
echo " 66% done"
dd if=/dev/zero of=/dev/rdsk/$1 bs=8k
echo "Wipe is complete."
date
This took an average of 22 minutes to complete on 4GB drives.
I got them to back off on the random characters. Thanks anyway Clay!
Thank you "Team ITRC" !!
- « Previous
-
- 1
- 2
- Next »