What is the size of the drives on a Redhat computer.

Thursday, September 13th, 2012

I had to do an audit of several machines for possible inclusion to a compute farm. There was a requirement as to the physical size of the disks installed.

To find this information, you can use the fdisk command which will list the physical size and partition information. I had to use root to get this information.

# /sbin/fdisk -l

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          64      261104   83  Linux
/dev/cciss/c0d0p2              65       20624    83884800   82  Linux 
swap / Solaris
/dev/cciss/c0d0p3           20625       35132    59192640   83  Linux

Disk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d1p1   *           1       35132   143338544   83  Linux
#

As you can see in this example; there are two drives which are 146.7 GB in size.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: