NAME
blockdev - 从命令行调用区块设备控制程序
总览(SYNOPSIS)
blockdev [options] commands devices
描述(DESCRIPTION)
blockdev 工具允许从命令行调用区块设备控制程序。
选项(OPTIONS)
- -V
- 打印版本信息并退出。
- -q
- 安静。
- -v
- 详细信息。
命令(COMMANDS)
- --setro
- 设置只读模式。
- --setrw
- 设置读写模式。
- --getro
- 只读模式检测。如果是只读模式,显示1,否则显示0。
- --getss
- 用字节为单位打印扇区大小——一般是512字节。
- --getsize
- 显示设备容量(使用512个字节大小的扇区为单位)
- --setra N
- 设置预读扇区(512字节)为 N 个。
- --getra
- 打印预读扇区(512字节)
- --flushbufs
- 刷新缓存。
- --rereadpt
- 重读分区表。
#p#
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
- -V
- Print version and exit.
- -q
- Be quiet.
- -v
- Be verbose.
COMMANDS
- --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.