[RULE] Slinkydetect
Vegard Munthe
vegard at copyleft.no
Sat Jun 28 19:38:55 EEST 2003
> 2. The report gives
> DISK:ATAPI/IDE:Unknown:MAXTOR 4K060H3:/dev/hdb:117255600:240:63:7755
> DISK:ATAPI/IDE:Unknown:WDC WD100BA:/dev/hda:19535040:240:63:1292
> on a machine with a 10 GB and a 56 GB Harddrive.
The format of the last four is: TOTAL:SECTORS:HEADS:CYLINDERS.
This means you can calculate the size of the disk by using the first of
the four and time it with 512 bytes (per sector).
This gives you in the above examples:
117255600 x 512 bytes per sector = 60034867200 Bytes, i.e. 55.9 GB.
19535040 x 512 bytes per sector = 10001940480 Bytes, i.e. 9.3 GB
More later.
-- Vego
_______________________________________________
Rule Project HOME PAGE: http://www.rule-project.org/en/
Rule Development Site: http://savannah.gnu.org/projects/rule/
Rule-list at nongnu.org
http://mail.nongnu.org/mailman/listinfo/rule-list
More information about the Rule-list
mailing list