blob: 0d3de4a66908b8ef6d7bf28a87e5dbd6e2d70cfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
A rough set of notes for things that need to be implemented; patches welcome!
init scripts to run all counters on boot
file_system_reporter.sh
Add MBR and other Grub
dd if=/dev/sda of=/tmp/mbr bs=512
dd if=/dev/sda bs=512 count=1 2>/dev/null | sha1sum
Fetch S.M.A.R.T. run time
run_time_counter.sh
eg:
smartctl -A /dev/sda|grep Power_On_Hours
9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 194557723546097
Hook boot, suspend, and shutdown events
/etc/rcS.d/smartmonster - boot/startup hook
/etc/acpi or gnome-power-preferences - suspend and shutdown events
/etc/pm/sleep.d/ - probably useful for most users
|