[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: calculating disk space



Multiply them together

C * H * S * kilobytes per sector

sector size is normally 512 bytes/sector.

caffeine:~# fdisk /dev/hda
Disk /dev/hda: 255 heads, 63 sectors, 1048 cylinders
Units = cylinders of 16065 * 512 bytes

caffeine:~# bc
255*63*1048*.5
8418060.0  <-- 8ish Gb


At 11:20 PM 10/19/00 +0200, you wrote:
How can one calculate the amount of space a hard disk
provides given only the disk's CHS values?

--
Criggie



Reply to: