blockdev — call block device ioctls from the command line
blockdev [options] commands
devices
−−setroSet read-only.
−−setrwSet read-write.
−−getroGet read-only. Print 1 if the device is read-only, 0 otherwise.
−−getssPrint sectorsize in bytes - usually 512.
−−getsizePrint device capacity (in 512-byte sectors).
−−setra NSet readahead to N
512-byte sectors.
−−getraPrint readahead (in 512-byte sectors).
−−flushbufsFlush buffers.
−−rereadptReread partition table.
|
Copyright 1998 Andries E. Brouwer (aebcwi.nl) May be distributed under the GNU General Public License |