1

I have a 1 TB hdd but when I run df -h my root partition is only 888G big.Parted -l shows the following

3      32.2GB  1000GB  968GB   primary               raid

mdstat shows this

md2 : active raid1 sdb3[1] sda3[0]
  945363832 blocks super 1.2 [2/2] [UU]

But when I run resizefs it reports that the filesystem is full and can't be enlarged as follows.

sudo resize2fs  /dev/md2
resize2fs 1.42.9 (4-Feb-2014)
The filesystem is already 236340958 blocks long.  Nothing to do!

Any ideas how to get around this? I really need the rest of the hdd for backups.

1 Answers1

2

There's nothing wrong here.

  • Parted shows a size of 968 gigabytes.
  • resize2fs says the filesystem is 236340958 blocks big.
  • One block is 4096 bytes
  • 236340958 * 4096 = 968052563968 So, exactly 968 gigabytes.

The confusing thing: df shows you gibibytes, not gigabytes (https://en.wikipedia.org/wiki/Gibibyte).

  • 968 GB = 901 GiB

The last 13GB can be attributed to filesystem overhead

Edit:

Dominik R
  • 289