Good evening,
I am trying to setup a backup disk on my Debian server, but it is recognized as having only 96Mb of space, when it's a 2To hard disk. I let you see it by yourself :
[
This means the drive is unusable, even though it is recognized by all other utilities as having 2To of free space and enough inodes :
[
[
[
What can be wrong ?
Thanks for your help
df
utility shows the size of filesystems on the disk, whereasfdisk
shows the size of partitions. Filesystems are (usually) stored inside partitions, but for any of several reasons, the two data structures' sizes need not match. I recommend you unmount/dev/sda1
, create a fresh filesystem on it that fills the partition, and then re-mount/dev/sda1
. Also, your previous comment suggests that the filesystem is NTFS, but the partition is marked as type 0x83, which is for Linux-native filesystems, like ext2/3/4fs. You should probably use a Linux filesystem to back up Linux data.fdisk
for this; it manipulates partitions, as I said. You'd usemkfs
(in conjunction withumount
andmount
), as inumount /dev/sda1 && mkfs -t ext4 /dev/sda1 && mount /dev/sda1 /backup
. Alternatively, if you prefer a GUI tool, you can use GParted, which manipulates both partitions and filesystems. Note that creating a new filesystem (often called "formatting a partition" or something similar) deletes all existing data on the partition, so don't do this if the partition holds anything important!