Overview: The Next Generation Mass Storage Stack (September 2009)

Table Of Contents
Syntax:
mediainit –S [–c scrub_character] [-t scrub_count] special_file
-S Scrubs the disk. You must specify the -c and -t options with the –S option. If you do not specify
both options, the device is scrubbed three times.
-c scrub_character
Specifies the character to use to scrub the disk. You can specify any character between 0-9, a-z, or A-
Z. You must specify this option with the -S option.
-t scrub_count
Specifies the number of times to scrub the disk. You must specify this option with the -S option.
special_file
Specifies the path name of the character (raw) device special file associated with the device to be
scrubbed. The mediainit command aborts if you do not have either read or write permission to the
device special file, or if the device is currently open for any other process. The mediainit command
opens the device in exclusive mode. Note: Before a device special file is scrubbed, if any file system
is on the disk, you must unmount the file system.
Examples:
1. To scrub the disk twice with the character 0 (zero), enter:
# mediainit -S -c 0 -t 2 character_device_special_file
2. To scrub the device in the DoD 5220.22-M approved method using the user specified character 2, enter:
# mediainit -S -c 2 character_device_special_file
For optimal performance, use the following guidelines:
The mediainit command provides the DoD 5220.22-M approved method of disk scrubbing with the –S
option. Using this option scrubs the disk three times with three random characters.
In case of disk arrays, ensure that each individual physical disk drive is scrubbed separately.
In case of mirroring of disks, you must ensure that both the disks that form a mirror must be scrubbed
separately.
Ensure no other processor application is trying to access the disk while disk scrubbing is in progress.
Note: HP does not guarantee that the data scrubbed using the mediainit disk scrub is completely
irretrievable. It might still be possible to retrieve the original data using sophisticated data
retrieval techniques.
New Commands
There are four new system administration commands to manage mass storage:
iobind(1M)
iofind(1M)
io_redirect_dsf(1M)
scsimgr(1M)
23