I have a Virtual Machine that has 3 disks.
The third one is 150Go size, I get this with sudo fdisk -l /dev/sdc
:
/dev/sdc1 2048 314572799 157285376 83 Linux
However, df
command returns only half of this disk:
/dev/sdc1 78609980 71274061 7335919 91% /mnt/data
How is that possible?
Update
sudo fdisk -l /dev/sdc
Disk /dev/sdc: 161.1 GB, 161061273600 bytes 3 têtes, 8 secteurs/piste,
13107200 cylindres, total 314572800 secteurs Unités = secteurs de 1 * 512 =
512 octets Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets Identifiant de
disque : 0x557ee3ef
Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 2048 314572799 157285376 83 Linux
df -k /dev/sdc1
returns this:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 78609980 71279103 7330877 91% /mnt/data
df -h /dev/sdc1
gets this:
Filesystem Size Used Avail Use% Mounted on
/dev/sdc1 75G 68G 7.0G 91% /mnt/data
POSIXLY_CORRECT=1 df /dev/sdc1
gets this:
Filesystem 512B-blocks Used Available Use% Mounted on
/dev/sdc1 157219960 142558210 14661750 91% /mnt/data
Update 2
lsblk
gets this:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
sda 8:0 0 12G 0 disk
├─sda1 8:1 0 11,5G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 487M 0 part [SWAP]
sdb 8:16 0 30G 0 disk
└─sdb1 8:17 0 30G 0 part
sdc 8:32 0 150G 0 disk
└─sdc1 8:33 0 150G 0 part /mnt/data
Updtae 3
I got this running tune2fs -l
:
Inode count: 104857600
Block count: 104857600
Reserved block count: 0
/etc/fstab
:/dev/sdc1 /mnt/data ext4 user,noatime 0 2
Block size
in the output oftune2fs -l
?Block size: 1024
df
reports so little total size, this I don't know (yet).