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 $
27 .\" $DragonFly: src/sbin/natacontrol/natacontrol.8,v 1.1 2006/12/05 21:32:21 tgen Exp $
34 .Nd NATA device driver control program
51 .Ar type Oo Ar interleave Oc Ar disk0 ... diskN
78 utility is a control program that provides the user access and control to the
86 can cause severe system crashes and loss of data if used improperly.
88 exercise caution when using this command!
92 argument is the ATA channel device (e.g., ata0) on which to operate.
93 The following commands are supported:
94 .Bl -tag -width "rebuild"
98 Devices on the channel are probed and attached as
103 Devices on the channel are removed from the kernel,
104 and all outstanding transfers etc.\& are returned back to the system marked
109 Both devices on the channel are reset and
110 initialized to the parameters the ATA driver has stored internally.
111 Devices that have gone bad and no longer respond to the probe, or devices
112 that have physically been removed, are removed from the kernel.
113 Likewise are devices that show up during a reset, probed and attached.
127 In case the RAID has a
132 must be specified in number of sectors.
133 The RAID will be created
134 of the individual disks named
136 .Ar disk0 ... diskN .
139 Although the NATA driver allows for creating an ATA RAID on disks with any
140 controller, there are restrictions.
141 It is only possible to boot on
142 an array if it is either located on a
144 ATA RAID controller like
145 the Promise or Highpoint controllers, or if the RAID declared is of
151 the partition to boot must
152 reside on the first disk in the SPAN.
154 Delete a RAID array on a RAID capable ATA controller.
156 Add a spare disk to an existing RAID.
158 Rebuild a RAID1 array on a RAID capable ATA controller.
160 Get the status of an ATA RAID.
162 Without the mode argument, the current transfer modes of the
164 If the mode argument is given, the NATA driver
165 is asked to change the transfer mode to the one given.
167 will reject modes that are not supported by the hardware.
172 case does not matter.
174 Currently supported modes are:
175 .Cm PIO0 , PIO1 , PIO2 , PIO3 , PIO4 ,
190 The device name and manufacture/version strings are shown.
192 Show detailed info about the device on
195 Show info about the attached devices on the
198 Show info about all attached devices on all active controllers.
201 To get information on devices attached to a channel,
202 use the command line:
204 .Dl "natacontrol info ata0"
206 To see the devices' current access modes, use the command line:
208 .Dl "natacontrol mode ad0"
210 which results in the modes of the devices being displayed as a string
213 .Dl "current mode = UDMA100"
215 You can set the mode with
217 and a string like the above,
220 .Dl "natacontrol mode ad0 PIO4"
222 The new modes are set as soon as the
230 utility first appeared in
236 utility was written by
238 .Aq sos@FreeBSD.org .
240 This manual page was written by
242 .Aq sos@FreeBSD.org .