util-linux に含まれる。
column | description |
---|---|
NAME | device name |
KNAME | internal kernel device name |
MAJ:MIN | major:minor device number |
FSTYPE | filesystem type |
MOUNTPOINT | where the device is mounted |
LABEL | filesystem LABEL |
UUID | filesystem UUID |
PARTTYPE | partition type UUID |
PARTLABEL | partition LABEL |
PARTUUID | partition UUID |
PARTFLAGS | partition flags |
RA | read-ahead of the device |
RO | read-only device |
RM | removable device |
HOTPLUG | removable or hotplug device (usb, pcmcia, ...) |
MODEL | device identifier |
SERIAL | disk serial number |
SIZE | size of the device |
STATE | state of the device |
OWNER | user name |
GROUP | group name |
MODE | device node permissions |
ALIGNMENT | alignment offset |
MIN-IO | minimum I/O size |
OPT-IO | optimal I/O size |
PHY-SEC | physical sector size |
LOG-SEC | logical sector size |
ROTA | rotational device |
SCHED | I/O scheduler name |
RQ-SIZE | request queue size |
TYPE | device type |
DISC-ALN | discard alignment offset |
DISC-GRAN | discard granularity |
DISC-MAX | discard max bytes |
DISC-ZERO | discard zeroes data |
WSAME | write same max bytes |
WWN | unique storage identifier |
RAND | adds randomness |
PKNAME | internal parent kernel device name |
HCTL | Host:Channel:Target:Lun for SCSI |
TRAN | device transport type |
SUBSYSTEMS | de-duplicated chain of subsystems |
REV | device revision |
VENDOR | device vendor |
option | alias |
---|---|
default | -o NAME,MAJ:MIN,RM,SIZE,RO,TYPE,MOUNTPOINT |
-f, --fs | -o NAME,FSTYPE,LABEL,UUID,MOUNTPOINT |
-m, --perms | -o NAME,SIZE,OWNER,GROUP,MODE |
-t, --topology | -o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOGSEC,ROTA,SCHED,RQ-SIZE,RA,WSAME |
ストレージの状況確認
sort すると tree format が切れるんだけど、v2.32 以降なら 2017-06-09 の commit 1d9e35c で追加された -T, --tree オプションで tree format を強制可能になっている模様。
Ubuntu 16.04.4 LTS のは lsblk from util-linux 2.27.1 だったので未対応。
lsblk -oNAME,FSTYPE,LABEL,MODEL,SERIAL,MOUNTPOINT -xNAME-x はソート用のカラム指定
sort すると tree format が切れるんだけど、v2.32 以降なら 2017-06-09 の commit 1d9e35c で追加された -T, --tree オプションで tree format を強制可能になっている模様。
Ubuntu 16.04.4 LTS のは lsblk from util-linux 2.27.1 だったので未対応。
タグ
コメントをかく