File: blockdev.8

package info (click to toggle)
util-linux 2.12r-19
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 8,928 kB
  • ctags: 5,101
  • sloc: ansic: 46,134; sh: 8,041; makefile: 1,111; perl: 86; csh: 62; sed: 55
file content (55 lines) | stat: -rw-r--r-- 955 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.\" -*- nroff -*-
.\" Copyright 1998 Andries E. Brouwer (aeb@cwi.nl)
.\"
.\" May be distributed under the GNU General Public License
.TH BLOCKDEV 8 "May 2000" ""
.SH NAME
blockdev \- call block device ioctls from the command line
.SH SYNOPSIS
.B blockdev
.RI [ options ]
.I commands devices
.SH DESCRIPTION
The utility
.B blockdev
allows one to call block device ioctls from the command line.
.SH OPTIONS
.TP
.B \-V
Print version and exit.
.TP
.B \-q
Be quiet.
.TP
.B \-v
Be verbose.
.SH COMMANDS
.TP
.B \--setro
Set read-only.
.TP
.B \--setrw
Set read-write.
.TP
.B \--getro
Get read-only. Print 1 if the device is read-only, 0 otherwise.
.TP
.B \--getss
Print sectorsize in bytes - usually 512.
.TP
.B \--getsize
Print device capacity (in 512-byte sectors).
.TP
.BI \--setra " N"
Set readahead to
.I N
512-byte sectors.
.TP
.B \--getra
Print readahead (in 512-byte sectors).
.TP
.B \--flushbufs
Flush buffers.
.TP
.B \--rereadpt
Reread partition table.