2 .\" Copyright (c) 2000,2001,2002 Søren Schmidt <sos@FreeBSD.org>
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" $FreeBSD: src/sbin/atacontrol/atacontrol.8,v 1.28 2005/11/18 10:32:09 ru Exp $
33 .Nd NATA device driver control program
50 .Ar type Oo Ar interleave Oc Ar disk0 ... diskN
74 .Ar device acoustic soundsupplevel
77 .Ar device apm apmlevel
87 utility is a control program that provides the user access and control to the
95 can cause severe system crashes and loss of data if used improperly.
97 exercise caution when using this command!
101 argument is the ATA channel device (e.g., ata0) on which to operate.
102 The following commands are supported:
103 .Bl -tag -width "rebuild"
107 Devices on the channel are probed and attached as
112 Devices on the channel are removed from the kernel,
113 and all outstanding transfers etc.\& are returned back to the system marked
118 Both devices on the channel are reset and
119 initialized to the parameters the ATA driver has stored internally.
120 Devices that have gone bad and no longer respond to the probe, or devices
121 that have physically been removed, are removed from the kernel.
122 Likewise are devices that show up during a reset, probed and attached.
136 In case the RAID has a
141 must be specified in number of sectors.
142 The RAID will be created
143 of the individual disks named
145 .Ar disk0 ... diskN .
150 driver allows for creating an ATA RAID on disks with any controller,
151 there are restrictions.
152 It is only possible to boot on an array if it is either located on a
154 ATA RAID controller like
155 the Promise or Highpoint controllers, or if the RAID declared is of
161 the partition to boot must
162 reside on the first disk in the SPAN.
164 Delete a RAID array on a RAID capable ATA controller.
166 Add a spare disk to an existing RAID.
168 Rebuild a RAID1 array on a RAID capable ATA controller.
170 Get the status of an ATA RAID.
172 Without the mode argument, the current transfer modes of the
174 If the mode argument is given, the
176 driver is asked to change the transfer mode to the one given.
179 driver will reject modes that are not supported by the hardware.
184 case does not matter.
186 Currently supported modes are:
187 .Cm PIO0 , PIO1 , PIO2 , PIO3 , PIO4 ,
202 The device name and manufacture/version strings are shown.
204 Show detailed info about the device on
207 Set disk drive features.
212 features are supported.
213 .Bl -tag -width "acoustic"
214 .It Ar acoustic soundsupplevel
215 Controls the disk drive Acoustic Management level.
220 which will turn off acoustic management,
222 to optimize for maximum performance,
224 to optimize for maximum quiet, or a numeric level
226 The higher the numeric level, the higher the
227 theoretical sound level emitted from the drive.
228 Note that few devices support this command and even fewer will allow the
229 range of levels supported.
231 Sets the disk drive Advanced Power Management (APM) level.
232 This command is generally used on laptop (notebook) hard disks to control
233 the power level consumed by the drive (at the expense of performance).
237 may be set to one of:
243 (optimize for maximum performance or minimum power, respectively), or
244 a numeric level which can be 0 to 127 inclusive indicating an increasing
245 level of performance over power savings.
246 The numeric levels may be prefixed by
248 which will allow the drive to include suspension as part of the
250 Note that not all hard drives will support the
252 command, and that the number of incremental power savings levels
253 do not typically have as wide of a range as this command will
257 Set or report timeout after which the
260 To arm the timeout the device needs at least one more request after
262 To disable spindown, set the timeout to zero.
263 No further actions are needed in this case.
265 Show info about the attached devices on the
268 Show info about all attached devices on all active controllers.
271 To get information on devices attached to a channel,
272 use the command line:
274 .Dl "natacontrol info ata0"
276 To see the devices' current access modes, use the command line:
278 .Dl "natacontrol mode ad0"
280 which results in the modes of the devices being displayed as a string
283 .Dl "current mode = UDMA100"
285 You can set the mode with
287 and a string like the above,
290 .Dl "natacontrol mode ad0 PIO4"
292 The new modes are set as soon as the
300 utility first appeared in
302 and was imported into
308 utility was written by
309 .An S\(/oren Schmidt Aq Mt sos@FreeBSD.org .
311 This manual page was written by
312 .An S\(/oren Schmidt Aq Mt sos@FreeBSD.org .