blockdev 中文man頁面
作者:billpan
blockdev 工具允許從命令行調(diào)用區(qū)塊設(shè)備控制程序。
NAME
blockdev - 從命令行調(diào)用區(qū)塊設(shè)備控制程序
總覽(SYNOPSIS)
blockdev [options] commands devices
描述(DESCRIPTION)
blockdev 工具允許從命令行調(diào)用區(qū)塊設(shè)備控制程序。
選項(xiàng)(OPTIONS)
- -V
- 打印版本信息并退出。
- -q
- 安靜。
- -v
- 詳細(xì)信息。
命令(COMMANDS)
- --setro
- 設(shè)置只讀模式。
- --setrw
- 設(shè)置讀寫模式。
- --getro
- 只讀模式檢測(cè)。如果是只讀模式,顯示1,否則顯示0。
- --getss
- 用字節(jié)為單位打印扇區(qū)大小——一般是512字節(jié)。
- --getsize
- 顯示設(shè)備容量(使用512個(gè)字節(jié)大小的扇區(qū)為單位)
- --setra N
- 設(shè)置預(yù)讀扇區(qū)(512字節(jié))為 N 個(gè)。
- --getra
- 打印預(yù)讀扇區(qū)(512字節(jié))
- --flushbufs
- 刷新緩存。
- --rereadpt
- 重讀分區(qū)表。
#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.
責(zé)任編輯:韓亞珊
來源:
http://cmpp.linuxforum.net