xref: /illumos-gate/usr/src/man/man8/devinfo.8 (revision 1da57d551424de5a9d469760be7c4b4d4f10a755)
te
Copyright 1989 AT&T Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
DEVINFO 8 "May 8, 1997"
NAME
devinfo - print device specific information
SYNOPSIS

/usr/sbin/devinfo -i device

/usr/sbin/devinfo -p device
DESCRIPTION

The devinfo command is used to print device specific information about disk devices on standard out. The command can only be used by the superuser.

OPTIONS
-i

Prints the following device information:

Device name

Software version (not supported and prints as 0)

Drive id number (not supported and prints as 0)

Device blocks per cylinder

Device bytes per block

Number of device partitions with a block size greater than zero

-p

Prints the following device partition information:

Device name

Device major and minor numbers (in hexadecimal)

Partition start block

Number of blocks allocated to the partition

Partition flag

Partition tag

This command is used by various other commands to obtain device specific information for the making of file systems and determining partition information. If the device cannot be opened, an error message is reported.

OPERANDS
device

Device name.

EXIT STATUS
0

Successful operation.

2

Operation failed.

SEE ALSO

attributes (7), prtvtoc (8)