15

I use df -h to see formatted size, but how to see actual?

I believe one of my disks is 3TB but formatted as 2TB but not sure which. (they're remote so I can't look!)

27

You can try lsblk.

That should list all disks including size. It will also list partitions and mount points.

| improve this answer | |
  • I don't have that cmd loaded - is there another or do I have to get that – user184342 Aug 15 '13 at 14:05
  • 1
    Strange. Both my 13.04 and 12.04 installations have it. Are you sure it's a Ubuntu box? – l3dx Aug 15 '13 at 14:45
2

You could try parted

sudo parted -l

or if you know the particular disk's block device e.g. /dev/sda

sudo parted /dev/sda print 

As well as looking at the formatted partition size(s), take note of the 'Partition Table' line - if the disk was formatted with 'Partition Table: msdos' then you may be bumping up against the intrinsic 2TB limit - the disc may need to be converted to a GPT partition table in order to access the full 3TB

| improve this answer | |
1

You can also try the following command:

sudo hdparm -I /dev/your_device |grep GB

Change your_device with a the device name (sda, sdb, etc)

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.