File: blktool.8

package info (click to toggle)
blktool 4-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 512 kB
  • sloc: ansic: 2,372; sh: 791; makefile: 16
file content (321 lines) | stat: -rw-r--r-- 5,228 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
.\" -*- nroff -*-
.\" Copyright 2004 Jeff Garzik.  All Rights Reserved.
.\" This file may be copied under the terms of the GNU Public License.

.de B1
[\\fB\\$1\\fP]
..
.de B1N
[\\fB\\$1\\fP\ \\fB\\$2\\fP]
..
.de B2
[\\fB\\$1\\fP\ \\fB\\$2\\fP|\\fB\\$3\\fP]
..

.TH BLKTOOL 8 "August 2004" "blktool version 4"
.SH NAME
blktool \- Display or change block device settings
.SH SYNOPSIS

.B blktool [options]
.I device
.B1N acoustic-mgmt nnn

.B blktool [options]
.I device
.B1N block-sz nnn

.B blktool [options]
.I device
.B1 bus-id  

.B blktool [options]
.I device
.B1N bus-state nnn

.B blktool [options]
.I device
.B1 class

.B blktool [options]
.I device
.B1N cd-speed nnn

.B blktool [options]
.I device
.B2 defect-mgmt off on

.B blktool [options]
.I device
.B2 dev-keep-settings off on

.B blktool [options]
.I device
.B2 dev-read-ahead off on

.B blktool [options]
.I device
.B2 dma off on

.B blktool [options]
.I device
.B1 geometry

.B blktool [options]
.I device
.B1N i2o-rcache nnn

.B blktool [options]
.I device
.B1N i2o-wcache nnn

.B blktool [options]
.I device
.B1 id  

.B blktool [options]
.I device
.B2 keep-settings off on

.B blktool [options]
.I device
.B2 media unlock lock

.B blktool [options]
.I device
.B1N multiple-count nnn

.B blktool [options]
.I device
.B2 no-write-err off on

.B blktool [options]
.I device
.B2 pio-data 16-bit 32-bit

.B blktool [options]
.I device
.B1N pio-mode nnn

.B blktool [options]
.I device
.B1N pm-mode nnn

.B blktool [options]
.I device
.B1N queue-depth nnn

.B blktool [options]
.I device
.B1N read-ahead nnn

.B blktool [options]
.I device
.B2 readonly off on

.B blktool [options]
.I device
.B1 reread-part

.B blktool [options]
.I device
.B1 reset

.B blktool [options]
.I device
.B1 sector-sz

.B blktool [options]
.I device
.B1 sleep  

.B blktool [options]
.I device
.B1 standby

.B blktool [options]
.I device
.B2 unmask-irq off on

.B blktool [options]
.I device
.B1 version

.B blktool [options]
.B1 version

.B blktool [options]
.I device
.B2 wcache off on

.SH DESCRIPTION
.BI blktool
is used for querying and/or changing settings of a block device.

.I device
is the name of the block device to query or modify.

.SH OPTIONS

.TP
.B \-f
For a few commands, blktool will flush the buffers of the block device
out to disk, before performing the requested command.  Specify this
option, "force", disables any flushing blktool would attempt to do.

.TP
.B \-t class
where class is one of 'ide', 'ata', 'scsi', 'i2o', or 'auto' to override the
default auto-detection of device class.

.SH COMMANDS

.TP
.B acoustic-mgmt
Query or set underlying device's acoustic level.

.TP
.B block-sz
Query or set device block size.

.TP
.B bus-id  
Query device bus id.

.TP
.B bus-state
Query or set device bus state (0 off, 1 on, 2 tristate)

.TP
.B class
Query the detected (or overridden, via -t) device class.
Typically this will result in 'ATA' or 'SCSI' for most devices.
Detection is based on device major; thus your SATA device may appear as
\&'SCSI'.

.TP
.B cd-speed
Set CD-ROM device speed (in Kbytes/sec).

.TP
.B defect-mgmt
Toggle underlying device's defect management (obsolete).

.TP
.B dev-keep-settings
Toggle underlying device's revert-to-defaults-on-reset feature.

.TP
.B dev-read-ahead
Toggle underlying device's read-ahead feature.

.TP
.B dma
Toggle DMA data transfer.
Omitting the on/off argument will print the current state.

.TP
.B geometry
Query device geometry (cylinders / heads / sectors / etc.).

.TP
.B i2o-rcache
Query or set an I2O block device's read cache.

.TP
.B i2o-wcache
Query or set an I2O block device's write cache.

.TP
.B id  
Query IDENTIFY [PACKET] DEVICE data.

.TP
.B keep-settings
Keep settings across device resets.
Omitting the on/off argument will print the current state.

.TP
.B media
Lock in (or unlock) a removable device.

.TP
.B multiple-count
Set multiple count for use in READ/WRITE MULTIPLE commands.

.TP
.B no-write-err
Toggle ignore-write-errors flag.
Omitting the on/off argument will print the current state.

.TP
.B pio-data
ATA PIO data transfer via 16-bit or 32-bit I/O.
Omitting the on/off argument will print the current state.

.TP
.B pio-mode
Set underlying ATA device's PIO data transfer mode.

.TP
.B pm-mode
Set underlying device's Advanced Power Management mode.

.TP
.B queued-depth
Query or set underlying device's queue depth.

.TP
.B read-ahead
Query or set block device read-ahead (in units of sectors).

.TP
.B readonly
Toggle block device read-only setting.
Omitting the on/off argument will print the current state.

.TP
.B reread-part
Re-read partition table.

.TP
.B reset
Execute device reset.

.TP
.B sector-sz
Query device sector size.

.TP
.B sleep  
Put device to sleep immediately.

.TP
.B standby
Put device in standby mode.

.TP
.B unmask-irq
Toggle unmasked irqs.
Omitting the on/off argument will print the current state.

.TP
.B version
Print version number and exit.

.TP
.B wcache
Toggle underlying device's writeback cache.

.SH BUGS
Inevitably there are some.  Please report any you find.

.SH AUTHOR
.B blktool
was written by Jeff Garzik.

.SH AVAILABILITY
.B blktool
is available over the Web on the SourceForge site at
http://sourceforge.net/projects/gkernel/