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.13.2.7 2003/01/26 03:01:09 keramida Exp $
27 .\" $DragonFly: src/sbin/atacontrol/atacontrol.8,v 1.3 2004/03/11 12:28:53 hmp Exp $
34 .Nd ATA device driver control program
51 .Ar type Oo Ar interleave Oc Ar disk0 ... diskN
64 .Op Ar mastermode slavemode
79 utility is a control program that provides the user access and control to the
87 can cause severe system crashes and loss of data if used improperly.
89 exercise caution when using this command!
93 argument is the number of the ATA channel on which to operate.
94 The following commands are supported:
95 .Bl -tag -width "rebuild"
99 Devices on the channel are probed and attached as
104 Devices on the channel are removed from the kernel,
105 and all outstanding transfers etc. are returned back to the system marked
110 Both devices on the channel are reset and
111 initialized to the parameters the ATA driver has stored internally.
112 Devices that have gone bad and no longer respond to the probe, or devices
113 that have physically been removed, are removed from the kernel.
114 Likewise are devices that show up during a reset, probed and attached.
128 In case the RAID has a
133 must be specified in number of sectors.
134 The RAID will be created
135 of the individual disks named
137 .Ar disk0 ... diskN .
140 Although the ATA driver allows for creating an ATA RAID on disks with any
141 controller, there are restrictions.
142 It is only possible to boot on
143 an array if it is either located on a
145 ATA RAID controller like
146 the Promise or Highpoint controllers, or if the RAID declared is of
152 the partition to boot must
153 reside on the first disk in the SPAN.
155 Delete a RAID array on a RAID capable ATA controller.
157 Rebuild a RAID1 array on a RAID capable ATA controller.
159 Get the status of an ATA RAID.
161 Without the two mode arguments, the current transfer modes of both
163 If the mode arguments are given, the ATA driver
164 is asked to change the transfer modes to those given.
166 will reject modes that are not supported by the hardware.
171 case does not matter.
172 If one of the devices mode should not be changed, use a nonexisting mode
175 and the mode will remain unchanged.
177 Currently supported modes are:
182 .Cm PIO1 , PIO2 , PIO3 , PIO4 ,
198 Show info about the attached devices on the
200 The device name and manufacture/version strings are shown.
202 Show detailed info about the device on
204 where device is 0 for master and 1 for slave.
206 Show detailed info about the enclosure on
208 where device is 0 for master and 1 for slave.
209 Fan RPM speed, enclosure temperature, 5V and 12V levels are shown.
211 Show info about all attached devices on all active controllers.
214 To see the devices' current access modes, use the command line:
216 .Dl "atacontrol mode 0"
218 which results in the modes of the devices being displayed as a string
220 .Bd -literal -offset indent
225 This means that ata0-master is in DMA mode,
226 ata0-slave is in PIO mode,
228 You can set the mode with
230 and a string like the above,
233 .Dl "atacontrol mode 0 PIO4 PIO4"
235 The new modes are set as soon as the
243 utility first appeared in
249 utility was written by
251 .Aq sos@FreeBSD.org .
253 This manual page was written by
255 .Aq sos@FreeBSD.org .