[ltp] True size of a hard disk?

Tino Keitel linux-thinkpad@linux-thinkpad.org
Fri, 7 Feb 2003 15:42:21 +0100


On Fri, Feb 07, 2003 at 14:23:15 +0000, Angel de Vicente wrote:
> Hi,
> 
> my installation doesn't seem to have fdisk. I tried to look at the
> package administration tool, but I couldn't find where fdisk is. How
> can I install this?

You don't need fdisk to find out the hard disk size. Type this line as
root:

echo $((cat /proc/ide/hda/capacity / 2))

It will give you the size in KBytes.

-- 
tino.keitel@innominate.com
dipl.-inf.                        Innominate Security Technologies AG
software engineer                                   networking people
tel: +49.30.6392-3308                      http://www.innominate.com/