1BLOCKDEV(8)                 System Manager's Manual                BLOCKDEV(8)
2
3
4

NAME

6       blockdev - call block device ioctls from the command line
7

SYNOPSIS

9       blockdev [options] commands devices
10       blockdev --report [devices]
11

DESCRIPTION

13       The  utility  blockdev  allows one to call block device ioctls from the
14       command line.
15

OPTIONS

17       -V     Print version and exit.
18
19       -q     Be quiet.
20
21       -v     Be verbose.
22
23       --report
24              Print a report for devices.  Note that the partition StartSec is
25              in 512-byte sectors.
26

COMMANDS

28       --setro
29              Set read-only.
30
31       --setrw
32              Set read-write.
33
34       --getro
35              Get read-only. Print 1 if the device is read-only, 0 otherwise.
36
37       --getss
38              Print sectorsize in bytes - usually 512.
39
40       --getbsz
41              Print blocksize in bytes.
42
43       --setbsz N
44              Set blocksize to N bytes.
45
46       --getsize
47              Print  device  size in sectors (BLKGETSIZE). Deprecated in favor
48              of the --getsz option.
49
50       --getsize64
51              Print device size in bytes (BLKGETSIZE64)
52
53       --getsz
54              Get size in 512-byte sectors (BLKGETSIZE64 / 512).
55
56       --setra N
57              Set readahead to N 512-byte sectors.
58
59       --getra
60              Print readahead (in 512-byte sectors).
61
62       --setfra N
63              Set filesystem readahead (same like --setra on 2.6 kernels).
64
65       --getfra
66              Get filesystem readahead.
67
68       --flushbufs
69              Flush buffers.
70
71       --rereadpt
72              Reread partition table.
73

AUTHOR

75       blockdev was written by Andries E. Brouwer.
76

AVAILABILITY

78       The blockdev command is part of the util-linux-ng package and is availā€
79       able from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.
80
81
82
83
84                                   Jun 2007                        BLOCKDEV(8)
Impressum