[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Tue, 16 Sep 2008 10:31:02 +0100 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. > Hi Martijn, the df command only shows the space(s) of those filesystems that are currently mounted. For any disks that have been recognised and are accessible, you could try: #fdisk -l For example, on my desktop machine it gives: gsewell@desktop:~$ sudo fdisk -l Disk /dev/sda: 40.0 GB, 40020664320 bytes 240 heads, 63 sectors/track, 5169 cylinders Units = cylinders of 15120 * 512 = 7741440 bytes Disk identifier: 0x000a326b Device Boot Start End Blocks Id System /dev/sda1 1 5169 39077608+ 83 Linux Disk /dev/sdb: 40.0 GB, 40037760000 bytes 255 heads, 63 sectors/track, 4867 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x3f0a3f09 Device Boot Start End Blocks Id System /dev/sdb1 * 1 4662 37447483+ 83 Linux /dev/sdb2 4663 4867 1646662+ 5 Extended /dev/sdb5 4663 4867 1646631 82 Linux swap / Solaris As you can see, both disks are 40GB. Grant. -- 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