D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Determining hard disk size in Knoppix

 

Martijn wrote:
> Hello.
> 
> I am trying to find the specifications of a number of (old-ish)
> computers: their CPU speed, the size of their RAM and the size of
> their hard disk. I boot them using a Knoppix cd, text only mode and
> then I can easily find the former two (they are in /proc/cpuinfo and
> /proc/meminfo respectively), but is there an equally simple way to
> determine the size of the hard disk(s)? I know there are other ways to
> find the hard disk size --looking into the bios, opening the computer
> and reading what it says on the disk-- but it would save me so much
> time if I could find it using a simple command.
> 
> I thought df -hT would do the job, but for some reason it always shows
> a 2GB /KNOPPIX partition on /dev/cloop and some smaller partitions.
> 
> Thanks.
> 
> Martijn.
> 

Try...

fdisk /dev/sdX or

fdisk /dev/hdX

where X is the letter associated with the hard disk (usually a i.e. sda 
or hda if it's only got one hard disk).

It should at least be able to give you a rough idea of how big the hard 
drives are and what partitions are on the drive.

Rob

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html