Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory Destroying data down to the 13th level??? Post 18920 by Perderabo on Thursday 4th of April 2002 08:17:40 AM
Old 04-04-2002
Quote:
Originally posted by LivinFree
I know it would be taxing on the disk, and possibly the entire system, but for curiosity sake, would it work?
I am not sure of what urandom is, so I must pass on that. Using dd to copy /dev/zero to a disk special file will work in all cases if you use the default block sizes as you are doing.

You don't specify whether you are using a block special file or a character special file to access the disk. That cat would be expensive but would work if you use a block special file.

It is not guaranteed to work if you use a character special file, but it might depending on the disk driver, the disk hardware, and block size used for physical writes by the cat command. A raw disk device requires i/o to be aligned on a DEV_BSIZE boundary. But it's not guaranteed to fail if you don't do that.

The second smartest way to do this would be to use dd to copy /dev/zero to the raw device but using a very large block size that is a multiple of DEV_BSIZE.

But HP-UX has mediainit and SunOS has format. Instead of zeros on every pass, they use various patterns chosen by hardware experts to really test the disk. If you need more security than that, you need to use sledge hammers and blow torches.
 

4 More Discussions You Might Find Interesting

1. AIX

destroying the OS

Hi Guys I have a cool job to do and that's to destroy aix5.1 on two of my servers. I need to get rid of all information. I have thought of a way of doing this and wondered if any of you had any ideas!! Get the machine into maint mode and run the dd cmd! (7 Replies)
Discussion started by: animata
7 Replies

2. Solaris

Difference between run level & init level

what are the major Difference Between run level & init level (2 Replies)
Discussion started by: rajaramrnb
2 Replies

3. Shell Programming and Scripting

Replace a value after 13th comma in a string

Suppose b=50,0,0,40,1,0,5000,gold,0,0,0,0,32,9,2,0,10000,0,0,0,0,0,0,0,0,0,BSNL_SMS_Bundle ,null,null,null,null,null,null,null,null,null,0,0,0,0,0,0,0,0,0,0,50,0,0,0,0,0,0,0,0,0,null,null,0,0,405564245,0 c=11 After 13th comma, the value of 9 needs to be changed and to be filled by another... (4 Replies)
Discussion started by: karan23kohli
4 Replies

4. Red Hat

SSL certificate generation on OS level or application level

We have a RHEL 5.8 server at the production level and we have a Java application on this server. I know of the SSL certificate generation at the OS (RHEL) level but it is implemented on the Java application by our development team using the Java keytool. My doubt is that is the SSL generation can... (3 Replies)
Discussion started by: RHCE
3 Replies
WREN(3) 						     Library Functions Manual							   WREN(3)

NAME
wren, ata - hard disk interface SYNOPSIS
bind #H[drive] /dev bind #w[target[.lun]] /dev /dev/hd0disk /dev/hd0partition /dev/sd0disk /dev/sd0partition ... DESCRIPTION
The hard disk interfaces (wren, #w, is a SCSI disk; ata, #H, is an IDE or ATA disk) serve a one-level directory giving access to the hard disk partitions. The parameter to attach defines the numerical SCSI target and logical unit number or the IDE drive number to access. Both default to zero. Each partition name is prefixed by hd and the numeric drive identifier. The partition always exists and covers the entire disk. The size of each partition as reported by stat(2) is the number of bytes in the partition, so the size of is the size of the entire disk. The partition also always exists; it is the last block on the disk for SCSI, second to last for IDE. If it contains valid partition data, those partitions will be visible as well. Every time the device is bound, the partitions are updated to reflect any changes in the parti- tion file. The format of the partition file is the string plan9 partitions on a line, followed by partition specifications, one per line, consisting of a name and textual strings for the block start and limit for each partition on the disk. The program prep(8) writes the partition table for the disk; its use is preferred to writing it by hand. SEE ALSO
prep(8), scsi(3) SOURCE
/sys/src/9/port/devwren.c /sys/src/9/pc/devata.c WREN(3)
All times are GMT -4. The time now is 02:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy