]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/blockdev.8
namei: add to identify FIFO (named pipe) and update manpage
[thirdparty/util-linux.git] / disk-utils / blockdev.8
CommitLineData
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
8blockdev \- call block device ioctls from the command line
9.SH SYNOPSIS
10.B blockdev
11.RI [ options ]
12.I commands devices
13.SH DESCRIPTION
14The utility
15.B blockdev
16allows one to call block device ioctls from the command line.
17.SH OPTIONS
18.TP
19.B \-V
20Print version and exit.
21.TP
22.B \-q
23Be quiet.
24.TP
25.B \-v
26Be verbose.
27.SH COMMANDS
28.TP
29.B \--setro
30Set read-only.
31.TP
32.B \--setrw
33Set read-write.
34.TP
35.B \--getro
36Get read-only. Print 1 if the device is read-only, 0 otherwise.
37.TP
38.B \--getss
39Print sectorsize in bytes - usually 512.
40.TP
a424171c
KZ
41.B \--getbsz
42Print blocksize in bytes.
43.TP
44.BI \--setbsz " N"
45Set blocksize to
46.I N
47bytes.
48.TP
66ee8158 49.B \--getsize
a424171c
KZ
50Print device size in sectors.
51.TP
52.B \--getsize64
53Print device size in bytes.
66ee8158
KZ
54.TP
55.BI \--setra " N"
56Set readahead to
57.I N
58512-byte sectors.
59.TP
60.B \--getra
61Print readahead (in 512-byte sectors).
62.TP
c2a1e788
KZ
63.BI \--setfra " N"
64Set filesystem readahead (same like --setra on 2.6 kernels).
65.TP
66.B \--getfra
67Get filesystem readahead.
68.TP
66ee8158
KZ
69.B \--flushbufs
70Flush buffers.
71.TP
72.B \--rereadpt
73Reread partition table.
a424171c
KZ
74.SH AUTHOR
75blockdev was written by Andries E. Brouwer.
76.SH AVAILABILITY
86d62711 77The blockdev command is part of the util-linux-ng package and is available from
a424171c
KZ
78ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
79