Web
This Site
Unix for Beginners
Unix - Home
Unix - Getting Started
Unix - File Management
Unix - Directories
Unix - File Permission
Unix - Environment
Unix - Basic Utilities
Unix - Pipes & Filters
Unix - Processes
Unix - Communication
Unix - The vi Editor
Unix Shell Programming
Unix - What is Shell?
Unix - Using Variables
Unix - Special Variables
Unix - Using Arrays
Unix - Basic Operators
Unix - Decision Making
Unix - Shell Loops
Unix - Loop Control
Unix - Shell Substitutions
Unix - Quoting Mechanisms
Unix - IO Redirections
Unix - Shell Functions
Unix - Manpage Help
Advanced Unix
Unix - Regular Expressions
Unix - File System Basics
Unix - User Administration
Unix - System Performance
Unix - System Logging
Unix - Signals and Traps
Unix Useful References
Unix - Useful Commands
Unix - Quick Guide
Unix - Builtin Functions
Unix - System Calls
Unix - Commands List
Unix Useful Resources
Unix Useful Resources
Selected Reading
Computer Glossary
Who is Who
© 2013 TutorialsPoint.COM
Home
References
Discussion Forums
About TP
blockdev - Unix, Linux Command
Advertisements
NAME
blockdev - call block device ioctls from the command line
SYNOPSIS
blockdev
[
options
]
commands devices
DESCRIPTION
The utility
blockdev
allows one to call block device ioctls from the command line.
OPTIONS
Tag
Description
-V
Print version and exit.
-q
Be quiet.
-v
Be verbose.
COMMANDS
Tag
Description
--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.
Advertisements
Advertisements