Disk

From Linuxintro
Revision as of 10:05, 9 August 2015 by 95.114.58.43 (talk) (→‎Find out throughput)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A disk is a device to store data, e.g. a compact disk or a hard disk. See http://en.wikipedia.org/wiki/Disk. Disk related commands:

hwinfo --block
hwinfo --partition

Get information

hdparm -I /dev/hda

Find out throughput

# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   20114 MB in  2.00 seconds = 10071.18 MB/sec
 Timing buffered disk reads: 754 MB in  3.00 seconds = 251.23 MB/sec

Hibernate hard disk

hdparm -S60 /dev/hda

Standby

hdparm -y /dev/hda