blockdev
Manage, query, and manipulate block devices. More information: https://manned.org/blockdev.
- Print a report for all devices:
sudo blockdev --report
- Print a report for a specific device:
sudo blockdev --report
- Get the size of a device in 512-byte sectors:
sudo blockdev --getsz
- Set read-only:
sudo blockdev --setro
- Set read-write:
sudo blockdev --setrw
- Flush buffers:
sudo blockdev --flushbufs
- Get the physical block size:
sudo blockdev --getpbsz
- Set the read-ahead value to 128 sectors:
sudo blockdev --setra 128
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
