Blockdev
Jump to navigation
Jump to search
blockdev is a command that calls specific block-device ioctls, which perform specific tasks inside the operating system. It is useful for causing these actions from a shell script.
Synopsis
blockdev [-1] [-v] command ... device... blockdev --report device... blockdev -h|-v
Example Commands
See the manual page for a complete list.
- --getpbsz get the physical block size
- --getss get the logical sector size in bytes
- --getsz get the size in 512-byte sectors
Provided by
Most (all?) Linux distributions incorporate this from the [util-linux] project.
External Links
This article is a stub and needs to be finished. Plunge forward and help it grow!