]>
Commit | Line | Data |
---|---|---|
66ee8158 KZ |
1 | .\" -*- nroff -*- |
2 | .\" Copyright 1998 Andries E. Brouwer (aeb@cwi.nl) | |
3 | .\" | |
4 | .\" May be distributed under the GNU General Public License | |
5 | .TH BLOCKDEV 8 "May 2000" "" | |
6 | .SH NAME | |
7 | blockdev \- call block device ioctls from the command line | |
8 | .SH SYNOPSIS | |
9 | .B blockdev | |
10 | .RI [ options ] | |
11 | .I commands devices | |
12 | .SH DESCRIPTION | |
13 | The utility | |
14 | .B blockdev | |
15 | allows one to call block device ioctls from the command line. | |
16 | .SH OPTIONS | |
17 | .TP | |
18 | .B \-V | |
19 | Print version and exit. | |
20 | .TP | |
21 | .B \-q | |
22 | Be quiet. | |
23 | .TP | |
24 | .B \-v | |
25 | Be verbose. | |
26 | .SH COMMANDS | |
27 | .TP | |
28 | .B \--setro | |
29 | Set read-only. | |
30 | .TP | |
31 | .B \--setrw | |
32 | Set read-write. | |
33 | .TP | |
34 | .B \--getro | |
35 | Get read-only. Print 1 if the device is read-only, 0 otherwise. | |
36 | .TP | |
37 | .B \--getss | |
38 | Print sectorsize in bytes - usually 512. | |
39 | .TP | |
40 | .B \--getsize | |
41 | Print device capacity (in 512-byte sectors). | |
42 | .TP | |
43 | .BI \--setra " N" | |
44 | Set readahead to | |
45 | .I N | |
46 | 512-byte sectors. | |
47 | .TP | |
48 | .B \--getra | |
49 | Print readahead (in 512-byte sectors). | |
50 | .TP | |
51 | .B \--flushbufs | |
52 | Flush buffers. | |
53 | .TP | |
54 | .B \--rereadpt | |
55 | Reread partition table. |