[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



_______________________________________________
Original home page of the RULE project: www.rule-project.org
Original Rule Development Site http://savannah.gnu.org/projects/rule/
Original RULE mailing list: Rule-list at nongnu.org, hosted at http://mail.nongnu.org/mailman/listinfo/rule-list




This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here