]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/blockdev.8
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / disk-utils / blockdev.8
CommitLineData
66ee8158
KZ
1.\" -*- nroff -*-
2.\" Copyright 1998 Andries E. Brouwer (aeb@cwi.nl)
3.\"
4.\" May be distributed under the GNU General Public License
5.TH BLOCKDEV 8 "May 2000" ""
6.SH NAME
7blockdev \- call block device ioctls from the command line
8.SH SYNOPSIS
9.B blockdev
10.RI [ options ]
11.I commands devices
12.SH DESCRIPTION
13The utility
14.B blockdev
15allows one to call block device ioctls from the command line.
16.SH OPTIONS
17.TP
18.B \-V
19Print version and exit.
20.TP
21.B \-q
22Be quiet.
23.TP
24.B \-v
25Be verbose.
26.SH COMMANDS
27.TP
28.B \--setro
29Set read-only.
30.TP
31.B \--setrw
32Set read-write.
33.TP
34.B \--getro
35Get read-only. Print 1 if the device is read-only, 0 otherwise.
36.TP
37.B \--getss
38Print sectorsize in bytes - usually 512.
39.TP
40.B \--getsize
41Print device capacity (in 512-byte sectors).
42.TP
43.BI \--setra " N"
44Set readahead to
45.I N
46512-byte sectors.
47.TP
48.B \--getra
49Print readahead (in 512-byte sectors).
50.TP
51.B \--flushbufs
52Flush buffers.
53.TP
54.B \--rereadpt
55Reread partition table.