]>
Commit | Line | Data |
---|---|---|
66ee8158 KZ |
1 | .\" -*- nroff -*- |
2 | .\" Copyright 1998 Andries E. Brouwer (aeb@cwi.nl) | |
a424171c | 3 | .\" Copyright 2007 Karel Zak <kzak@redhat.com> |
66ee8158 KZ |
4 | .\" |
5 | .\" May be distributed under the GNU General Public License | |
a424171c | 6 | .TH BLOCKDEV 8 "Jun 2007" "" |
66ee8158 KZ |
7 | .SH NAME |
8 | blockdev \- call block device ioctls from the command line | |
9 | .SH SYNOPSIS | |
10 | .B blockdev | |
11 | .RI [ options ] | |
12 | .I commands devices | |
13 | .SH DESCRIPTION | |
14 | The utility | |
15 | .B blockdev | |
16 | allows one to call block device ioctls from the command line. | |
17 | .SH OPTIONS | |
18 | .TP | |
19 | .B \-V | |
20 | Print version and exit. | |
21 | .TP | |
22 | .B \-q | |
23 | Be quiet. | |
24 | .TP | |
25 | .B \-v | |
26 | Be verbose. | |
27 | .SH COMMANDS | |
28 | .TP | |
29 | .B \--setro | |
30 | Set read-only. | |
31 | .TP | |
32 | .B \--setrw | |
33 | Set read-write. | |
34 | .TP | |
35 | .B \--getro | |
36 | Get read-only. Print 1 if the device is read-only, 0 otherwise. | |
37 | .TP | |
38 | .B \--getss | |
39 | Print sectorsize in bytes - usually 512. | |
40 | .TP | |
a424171c KZ |
41 | .B \--getbsz |
42 | Print blocksize in bytes. | |
43 | .TP | |
44 | .BI \--setbsz " N" | |
45 | Set blocksize to | |
46 | .I N | |
47 | bytes. | |
48 | .TP | |
66ee8158 | 49 | .B \--getsize |
a424171c KZ |
50 | Print device size in sectors. |
51 | .TP | |
52 | .B \--getsize64 | |
53 | Print device size in bytes. | |
66ee8158 KZ |
54 | .TP |
55 | .BI \--setra " N" | |
56 | Set readahead to | |
57 | .I N | |
58 | 512-byte sectors. | |
59 | .TP | |
60 | .B \--getra | |
61 | Print readahead (in 512-byte sectors). | |
62 | .TP | |
c2a1e788 KZ |
63 | .BI \--setfra " N" |
64 | Set filesystem readahead (same like --setra on 2.6 kernels). | |
65 | .TP | |
66 | .B \--getfra | |
67 | Get filesystem readahead. | |
68 | .TP | |
66ee8158 KZ |
69 | .B \--flushbufs |
70 | Flush buffers. | |
71 | .TP | |
72 | .B \--rereadpt | |
73 | Reread partition table. | |
a424171c KZ |
74 | .SH AUTHOR |
75 | blockdev was written by Andries E. Brouwer. | |
76 | .SH AVAILABILITY | |
86d62711 | 77 | The blockdev command is part of the util-linux-ng package and is available from |
a424171c KZ |
78 | ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. |
79 |