BLOCKDEV(8)
๐ BLOCKDEV ๐
okay bestie, so this is the blockdev page from section 8 of the manual (that's the System Administration girlies, iykyk) โ and literally all it does is let you call block device ioctls straight from your command line. no cap. it's giving "kernel whisperer but make it cute" โจ
๐ธ NAME ๐ธ
blockdev โ call block device ioctls from the command line
โจ SYNOPSIS โจ
blockdev [-q] [-v] command [command...] device [device...]
blockdev --report [device...]
blockdev -h|-V
๐ฆ DESCRIPTION ๐ฆ
The utility blockdev allows one to call block device ioctls from the command line. that's it, that's the whole vibe ๐ซถ
๐ OPTIONS ๐
-qโ Be quiet. shhh ๐คซ-vโ Be verbose. tell me everything bestie ๐ฃ๏ธ--reportโ Print a report for the specified device. It is possible to give multiple devices. If none is given, all devices which appear in/proc/partitionsare shown. Note that the partitionStartSecis in 512-byte sectors. ๐-h,--helpโ Display help text and exit.-V,--versionโ Display version and exit.
๐ COMMANDS ๐
It is possible to give multiple devices and multiple commands. yes queen, stack them ๐ฅ
--flushbufsโ Flush buffers.--getalignoffโ Get alignment offset.--getbszโ Print the blocksize in bytes. This size does not describe device topology. It's the size used internally by the kernel and it may be modified (for example) by filesystem driver on mount. so like, not the whole story, just the kernel's internal number ๐--getdiscardzeroesโ Get discard zeroes support status.--getdiskseqโ Get disk sequence number.--getzoneszโ Get zone size in 512-byte sectors.--getfraโ Get filesystem readahead in 512-byte sectors.--getiominโ Get minimum I/O size.--getiooptโ Get optimal I/O size.--getmaxsectโ Get max sectors per request.--getpbszโ Get physical block (sector) size.--getraโ Print readahead (in 512-byte sectors).--getroโ Get read-only. Print1if the device is read-only,0otherwise. binary queen ๐--getsize64โ Print device size in bytes.--getsizeโ Print device size (32-bit!) in sectors. Deprecated in favor of the--getszoption. > lowkey retired bestie, use--getszinstead ๐ซถ--getssโ Print logical sector size in bytes - usually512.--getszโ Get size in 512-byte sectors.--rereadptโ Reread partition table. refresh bestie ๐--setbszbytes โ Set blocksize. Note that the block size is specific to the current file descriptor opening the block device, so the change of block size only persists for as long asblockdevhas the device open, and is lost onceblockdevexits. so it's giving temporary, not permanent ๐ญ--setfrasectors โ Set filesystem readahead (same as--setraon 2.6 kernels).--setrasectors โ Set readahead (in 512-byte sectors).--setroโ Set read-only. The currently active access to the device may not be affected by the change. For example, a filesystem already mounted in read-write mode will not be affected. The change applies after remount. > important bestie, this one does NOT retroactively fix a thing that's already mounted rw โ you gotta remount ๐--setrwโ Set read-write.
๐ AUTHORS ๐
blockdev was written by Andries E. Brouwer and rewritten by Karel Zak. icons only ๐โจ
๐ REPORTING BUGS ๐
For bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>. go tell them, they wanna know fr fr ๐
โญ AVAILABILITY โญ
The blockdev command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>. get you some ๐
and that's the whole page bestie!! ๐ฆ this one's from util-linux 2.42.4, dated 2026-09-21, and yeah it's the BLOCKDEV(8) girlie herself. mwah ๐๐ โจ
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms