| DeviceKit-disks Reference Manual |
|---|
devkit-disksdevkit-disks — DeviceKit-disks command line tool |
devkit-disks [OPTIONS]
devkit-disks is a simple command line client for the DeviceKit-disks(7) system bus service.
|
Dump all information about all devices. Please include this when filing bugs. |
|
Lists all object paths of devices know to the daemon. |
|
Lists all device files of devices know to the daemon. |
|
Connect to the daemon and print a line every time an event happens. |
|
Like |
|
Shows information about |
|
Inhibits polling on |
|
Polls |
|
Inhibits polling on all devices. If no program is given, polling is inhibited until Ctrl+C is pressed. Otherwise the program is spawned and the polling is only inhibited until the program terminates. |
|
Mounts the device represented by |
|
Unmounts the device represented by |
|
Detaches (e.g. powering down the physical port the device
is connected to) the device represented
by |
|
Refreshes ATA SMART data for |
|
Read ATA SMART data from |
|
Inhibits clients from invoking methods on the daemon that
require authorization (all methods will return the
If no program is given, the daemon is inhibited until Ctrl+C is pressed. Otherwise the program is spawned and the daemon is only inhibited until the program terminates. |
|
Configures disk spindown timeout on If no program is given, the spindown time will be used until Ctrl+C is pressed. Otherwise the program is spawned and the the spindown timeout will only be used until the program terminates. |
|
Configures disk spindown timeout on all disks that can be spun down to If no program is given, the spindown time will be used until Ctrl+C is pressed. Otherwise the program is spawned and the the spindown timeout will only be used until the program terminates. |
|
Show help options. |
Caution should be exercised when configuring disk spin down.
Note that every time a disk is spun down, the “start-stop-count” ATA SMART attribute will increase by 1 and most disks are only good for a limited number (typically 50,000 but it varies by manufacturer and model). In addition, the drive may take as long as 30 seconds to respond to subsequent disk access – most drives are typically faster, see the “spin-up-time” ATA SMART attribute.
For maximum compatibility (since disks from WD and others won't
spin down using the “STANDBY” ATA command),
devkit-disks-daemon(8)
does all timeout handling on the host side. If a device appears
to be idle (this is determined by looking
at /sys/block/sdX/stat from time to time)
for the requested amount of time, the daemon will spin the disk
down using the “STANDBY IMMEDIATE” ATA COMMAND or
similar.
On the other hand, cautious use (e.g. using conservative timeouts) of the ability to spin down disks, can be a good way to trade power consumption (typically 8 vs 1 Watts for 3.5" drives) and heat emission for a slightly higher latency.
Please send bug reports to either the distribution or the hal mailing list, see http://lists.freedesktop.org/mailman/listinfo/hal on how to subscribe.