Manual Reference Pages  - BLOCKDEV (8)

NAME

blockdev - call block device ioctls from the command line

CONTENTS

Synopsis
Description
Options
Commands

SYNOPSIS

blockdev [options] commands devices

DESCRIPTION

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

OPTIONS

-V Print version and exit.
-q Be quiet.
-v Be verbose.

COMMANDS

--setro Set read-only.
--setrw Set read-write.
--getro Get read-only. Print 1 if the device is read-only, 0 otherwise.
--getss Print sectorsize in bytes - usually 512.
--getsize
  Print device capacity (in 512-byte sectors).
--setra N
  Set readahead to N 512-byte sectors.
--getra Print readahead (in 512-byte sectors).
--flushbufs
  Flush buffers.
--rereadpt
  Reread partition table.
Jump to page    or go to Top of page |  Section 8 |  Main Index.


BLOCKDEV (8) May 2000
Generated by Linux Help Man Pages from /usr/share/man/man8/blockdev.8.gz using man macros.