2 .\" Copyright 1998 Andries E. Brouwer (aeb@cwi.nl)
3 .\" Copyright 2007 Karel Zak <kzak@redhat.com>
5 .\" May be distributed under the GNU General Public License
6 .TH BLOCKDEV 8 "Jun 2007" ""
8 blockdev \- call block device ioctls from the command line
20 allows one to call block device ioctls from the command line.
24 Print version and exit.
35 Note that the partition StartSec is in 512-byte sectors.
45 Get read-only. Print 1 if the device is read-only, 0 otherwise.
48 Print sectorsize in bytes - usually 512.
51 Print blocksize in bytes.
59 Print device size in sectors (BLKGETSIZE). Deprecated in favor of the
64 Print device size in bytes (BLKGETSIZE64)
67 Get size in 512-byte sectors (BLKGETSIZE64 / 512).
75 Print readahead (in 512-byte sectors).
78 Set filesystem readahead (same like --setra on 2.6 kernels).
81 Get filesystem readahead.
87 Reread partition table.
89 blockdev was written by Andries E. Brouwer.
91 The blockdev command is part of the util-linux-ng package and is available from
92 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.