12-19-2020, 05:46 AM
(12-18-2020, 07:44 AM)fChk Wrote: The code above tells us that you only have 4.8 GiB!! I took a quick look at the code and it's:
Code: (Select All)# total disk size is calculated by adding all partitions of the types listed below (after the -t flags)
TOTAL_DISK=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total -h | grep total | awk '{ print $2 }')
echo -e "Disk : $TOTAL_DISK"
So just to make sure of this, can you please post the output of these two commands run as root:
andCode: (Select All)lsblk
Code: (Select All)df -Th
thanks!
lsblk :
Code: (Select All)
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
vda 254:0 0 5G 0 disk
├─vda1 254:1 0 5G 0 part /
└─vda2 254:2 0 32M 0 part [SWAP]
df -Th :
Code: (Select All)
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs tmpfs 799M 51M 749M 7% /run
/dev/vda1 ext3 4.9G 1.4G 3.4G 29% /
tmpfs tmpfs 4.0G 0 4.0G 0% /dev/shm
tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs tmpfs 4.0G 0 4.0G 0% /sys/fs/cgroup
tmpfs tmpfs 799M 0 799M 0% /run/user/0

