You are not logged in.
I was having trouble installing a large package the other day and I couldn't figure out what was going on. I went ahead and ran df -h to check if I had space left and it said my root partition only had 55G available and was 275G in Size which is weird because when I installed the drive I was certain I partitioned it to be 900G.
this is my output when I run the two commands:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 1.9G 0 part /boot/efi
├─sda2 8:2 0 1K 0 part
├─sda3 8:3 0 899.9G 0 part /
└─sda5 8:5 0 29.8G 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
$ df -h
Filesystem Size Used Avail Use% Mounted on
dev 3.9G 0 3.9G 0% /dev
run 3.9G 1.1M 3.9G 1% /run
/dev/sda3 275G 206G 55G 80% /
tmpfs 3.9G 18M 3.9G 1% /dev/shm
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 3.9G 56K 3.9G 1% /tmp
/dev/sda1 1.9G 380K 1.9G 1% /boot/efi
tmpfs 789M 16K 789M 1% /run/user/120
tmpfs 789M 20K 789M 1% /run/user/1000
I can't figure out what happened to the rest of the partition and I'm trying to figure out a way on getting it all back.
Last edited by Ennis-Ham (2018-05-18 12:56:30)
Offline
Did you expand it at some point? This can happen if your filesystem doesn't span the entire partition. If you use ext4 you can resize it to partition size with resize2fs most other file systems will have a similar tool
Last edited by V1del (2018-05-18 12:49:22)
Online
No I didn't do anything manual to it. When I created the partition I created it as an extended partition. But your solution seemed to work. I don't know how it happened in the first place, but I appreciate the help.
Last edited by Ennis-Ham (2018-05-18 12:55:18)
Offline