Move /var/svc/log to /var/log/svc
[unleashed/lotheac.git] / share / man / man8 / diskscan.8
blobcb7052f1e7c32630b364c61efb879782643995f8
1 '\" te
2 .\"  Copyright (c) 1998, Sun Microsystems, Inc.  All Rights Reserved
3 .\" 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.
4 .\" 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.
5 .\" 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]
6 .TH DISKSCAN 8 "Feb 24, 1998"
7 .SH NAME
8 diskscan \- perform surface analysis
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fBdiskscan\fR [\fB-W\fR] [\fB-n\fR] [\fB-y\fR] \fIraw_device\fR
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 \fBdiskscan\fR is used by the system administrator to perform surface analysis
19 on a portion of a hard disk. The disk portion may be a raw partition or slice;
20 it is identified using its raw device name. By default, the specified portion
21 of the disk is read (non-destructive) and errors reported on standard error. In
22 addition, a progress report is printed on standard out. The list of bad blocks
23 should be saved in a file and later fed into \fBaddbadsec\fR(8), which will
24 remap them.
25 .SH OPTIONS
26 .sp
27 .LP
28 The following options are supported:
29 .sp
30 .ne 2
31 .na
32 \fB\fB-n\fR\fR
33 .ad
34 .RS 6n
35 Causes  \fBdiskscan\fR to suppress linefeeds when printing progress information
36 on standard out.
37 .RE
39 .sp
40 .ne 2
41 .na
42 \fB\fB-W\fR\fR
43 .ad
44 .RS 6n
45 Causes \fBdiskscan\fR to perform write and read surface analysis. This type of
46 surface analysis is destructive and should be invoked with caution.
47 .RE
49 .sp
50 .ne 2
51 .na
52 \fB\fB-y\fR\fR
53 .ad
54 .RS 6n
55 Causes  \fBdiskscan\fR to suppress the warning regarding destruction of
56 existing data that is issued when  \fB-W\fR is used.
57 .RE
59 .SH OPERANDS
60 .sp
61 .LP
62 The following operands are supported:
63 .sp
64 .ne 2
65 .na
66 \fB\fIraw_device\fR\fR
67 .ad
68 .RS 14n
69 The address of the disk drive (see \fBFILES\fR).
70 .RE
72 .SH FILES
73 .sp
74 .LP
75 The raw device should be \fB/dev/rdsk/c?[t?]d?[ps]?\fR. See \fBdisks\fR(8) for
76 an explanation of \fBSCSI\fR and \fBIDE\fR device naming conventions.
77 .SH ATTRIBUTES
78 .sp
79 .LP
80 See \fBattributes\fR(5) for descriptions of the following attributes:
81 .sp
83 .sp
84 .TS
85 box;
86 c | c
87 l | l .
88 ATTRIBUTE TYPE  ATTRIBUTE VALUE
90 Architecture    x86
91 .TE
93 .SH SEE ALSO
94 .sp
95 .LP
96 \fBaddbadsec\fR(8), \fBdisks\fR(8), \fBfdisk\fR(8), \fBfmthard\fR(8),
97 \fBformat\fR(8), \fBattributes\fR(5)
98 .SH NOTES
99 .sp
101 The \fBformat\fR(8) utility is available to format, label, analyze, and repair
102 \fBSCSI\fR disks. This utility is included with the \fBdiskscan\fR,
103 \fBaddbadsec\fR(8), \fBfdisk\fR(8), and \fBfmthard\fR(8) commands available
104 for x86. To format an \fBIDE\fR disk, use the \fB DOS\fR \fBformat\fR utility;
105 however, to label, analyze, or repair \fBIDE\fR disks on x86 systems, use the
106 Solaris \fBformat\fR(8) utility.