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

DESCRIPTION

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

OPTIONS

16       -V     Print version and exit.
17
18       -q     Be quiet.
19
20       -v     Be verbose.
21

COMMANDS

23       --setro
24              Set read-only.
25
26       --setrw
27              Set read-write.
28
29       --getro
30              Get read-only. Print 1 if the device is read-only, 0 otherwise.
31
32       --getss
33              Print sectorsize in bytes - usually 512.
34
35       --getsize
36              Print device capacity (in 512-byte sectors).
37
38       --setra N
39              Set readahead to N 512-byte sectors.
40
41       --getra
42              Print readahead (in 512-byte sectors).
43
44       --flushbufs
45              Flush buffers.
46
47       --rereadpt
48              Reread partition table.
49
50
51
52                                   May 2000                        BLOCKDEV(8)
Impressum