HP-UX Reference (11i v1 05/09) - 1 User Commands A-M (vol 1)

m
mediainit(1) mediainit(1)
Some applications may require that a le system be placed on the media before use.
mediainit does
not create a file system; it only prepares media for writing and reading. If such a file system is required,
other utilities such as
newfs, lifinit,or
mkfs must be invoked after running mediainit (see
newfs(1M), lifinit(1), and mkfs(1M)).
RETURN VALUE
mediainit returns one of the following values:
0 Successful completion.
1 A device-related error occurred.
2 A syntax-related error was encountered.
ERRORS
Appropriate error messages are printed on standard error during execution of
mediainit.
WARNINGS
For a device that contains multiple units on a single controller, each unit can be initialized independently
from any other unit. It should be noted, however, that
mediainit requires that there be no other
processes accessing the device before initialization begins, regardless of which unit is being initialized. If
there are accesses currently in progress,
mediainit aborts.
Aborting mediainit is likely to leave the medium in a corrupt state, even if it was previously initialized.
To recover, the initialization must be restarted.
During the initialization process,
open() rejects all other accesses to the device being initialized, produc-
ing the error
EACCES (see open(2)).
DEPENDENCIES
Series 800
Partitioning of DDS tape media (
-p option) is not supported.
AUTHOR
mediainit was developed by HP.
SEE ALSO
lifinit(1), mkfs(1M), newfs(1M).
Section 1546 Hewlett-Packard Company 3 HP-UX 11i Version 1: September 2005