O
O
Oleg2015-06-10 12:04:15
linux
Oleg, 2015-06-10 12:04:15

Where did the free disk space go?

When switching from Windows to Linux, I transferred information between two 2TB hard drives of the same model. The source has a single partition in NTFS, the destination has an LVM partition, it is formatted in ext4.
The source had 30 GB of free space, the receiver did not even fit everything.
Judging by the output of the df command on the receiver, the size of the gigabyte partition is 30 less, but it did not fit much more. I also noticed that the formula Total = Used + Free does not work in the df output. Specifically for my case, out of 1832 GB, about 122 were missing. Used + Free = Total - 122 GB.
This disk is not a system disk - a separate hard disk is used for the system.
Is the loss of 122 GB related to the reserve of 5% under rootOr for other reasons? And how can the problem be solved?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xibir, 2015-06-10
@Batiskaf_stv

When creating a partition with default options, ext4 creates a table of inodes for several tens of millions of files, which on large partitions can take up several tens of gigabytes. For your 2 TB, I think it will be around 50GB. Well, plus the reserved 5%. The partition must be created manually with the mkfs.ext4 command, with the approximate number of files that will be on the disk.
For example:
mkfs.ext4 -N500000 -m0 /dev/sdb1

M
Maxim Moseychuk, 2015-06-10
@fshp

Was compression enabled on NTFS?

O
Oleg, 2015-06-10
@Batiskaf_stv

ldvldv
output sudo vgs:
VG #PV #LV #SN Attr VSize VFree
data 1 1 0 wz--n- 1.82t 0
system 1 2 0 wz--n- 232.88g 0
planarik
How can I see the block size? I know that the physical block size on disk is 512 bytes (/sys/block/sdb/queue/physical_block_size, logical_block_size). Extent size in LVM volume 4MB, ext4 created with default parameters. Disk made GPT; the partition on the disk created 2048 sectors (i.e. 1 MB) with an indent, otherwise parted cursed.
TheSpbra1n
The computer is at home, I'm at work now. I started looking for possible solutions - I saw mentions of a reserve under root. How to check - I do not know. It would be logical for this reserve to be only on the system drive.
fshp
No.
Most of the space is occupied by large files (movies, music). There are few files up to several kilobytes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question