xref: /titanic_50/usr/src/man/man1m/diskscan.1m (revision 875546ac7519c97db0e3ce165c9b9d5147e27c8d)
te
Copyright (c) 1998, 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]
DISKSCAN 1M "Feb 24, 1998"
NAME
diskscan - perform surface analysis
SYNOPSIS

diskscan [-W] [-n] [-y] raw_device
DESCRIPTION

diskscan is used by the system administrator to perform surface analysis on a portion of a hard disk. The disk portion may be a raw partition or slice; it is identified using its raw device name. By default, the specified portion of the disk is read (non-destructive) and errors reported on standard error. In addition, a progress report is printed on standard out. The list of bad blocks should be saved in a file and later fed into addbadsec(1M), which will remap them.

OPTIONS

The following options are supported: -n

Causes diskscan to suppress linefeeds when printing progress information on standard out.

-W

Causes diskscan to perform write and read surface analysis. This type of surface analysis is destructive and should be invoked with caution.

-y

Causes diskscan to suppress the warning regarding destruction of existing data that is issued when -W is used.

OPERANDS

The following operands are supported: raw_device

The address of the disk drive (see FILES).

FILES

The raw device should be /dev/rdsk/c?[t?]d?[ps]?. See disks(1M) for an explanation of SCSI and IDE device naming conventions.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Architecture x86
SEE ALSO

addbadsec(1M), disks(1M), fdisk(1M), fmthard(1M), format(1M), attributes(5)

NOTES

The format(1M) utility is available to format, label, analyze, and repair SCSI disks. This utility is included with the diskscan, addbadsec(1M), fdisk(1M), and fmthard(1M) commands available for x86. To format an IDE disk, use the DOS format utility; however, to label, analyze, or repair IDE disks on x86 systems, use the Solaris format(1M) utility.