Physical Disk Size
Nigel Wade
nmw at ion.le.ac.uk
Fri Dec 1 11:46:41 UTC 2006
Andrew.Bridgeman at corusgroup.com wrote:
>
> Could someone tell me a command i can run on my Redhat machines to find out
> the physical disk size of the hard disk in the machine without having to
> take the disk out and look at it , this is because i have some machines
> that are 18/36/72/73 gig and need to know which ones they are. I have run a
> fdisk to show the partitions but i am unsure if all of the machines have
> been configured to use all of the disk so there must be a command i can run
> to just check this out?
> Any help would be much appreciated.
>
Fdisk tells you the size of the disk, as well as the partitions.
# fdisk -l
Disk /dev/sda: 72.9 GB, 72999763968 bytes
255 heads, 63 sectors/track, 8875 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1288 10241437+ 82 Linux swap
/dev/sda3 1289 8875 60942577+ 8e Linux LVM
On the first line of output it says the disk is 72.9GB.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw at ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
More information about the redhat-list
mailing list