Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.
$ lsblk
NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
xvda1 202:1    0   20G  0 disk /
xvda3 202:3    0  896M  0 disk [SWAP]
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/xvda1      7.9G  2.1G  5.8G  27% /
tmpfs           829M     0  829M   0% /dev/shm

Why does lsblk telling me that I have 20G disk space on xvda1, while df command is telling me I only have 8G disk space?

share|improve this question
add comment

1 Answer

I had this same issue. I used sudo resize2fs /dev/xvda1 to make the rest of the disk space available.

share|improve this answer
    
Wonderful, this is exactly what I needed. Thank you. –  Malcolm Diggs Apr 22 at 11:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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