Not sure where you got the 44G file from. There is a difference in the way that HDD vendors count and the rest of the world. They use 1000, not 1024, but nearly all software uses 1024b = 1KB. Depends on which counting is used - base 10 or base 2. https://en.wikipedia.org/wiki/Kilobyte
Also, by default, 5% of a file system is "reserved" for use by privileged processes. For an OS partition, this is VERY important. For 100% data partitions, I remove that reserved amount.
And lastly, formatting a partition puts markers down which use a few Kb.
For example:
Code:
$ sudo parted -l
Model: WD My Book 1140 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 32.3kB 2000GB 2000GB extended
5 1049kB 2000GB 2000GB logical ext4
Great. But after formatting to ext4, that 2TB becomes:
Code:
$ df -Th | grep b5
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb5 ext4 1.8T 1.4T 412G 78% /misc/2TB
We can see the count of inodes:
Code:
$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb5 117M 320K 117M 1% /misc/2TB
Those reserved blocks?
Code:
$ sudo tune2fs -l /dev/sdb5
...
Reserved block count: 0
...
File systems use something called inodes to bridge the file system -to- data locations on the disk. When the file system is created, some number of inodes are created based on the size of the disk storage. Running out of inodes can make for a terrible day. It is less common in disks over 10TB. Those inodes require storage, that's part of the "format". To learn more about inodes, the wikipedia article is good enough. https://en.wikipedia.org/wiki/Inode
I don't have a big HDD available to run ext3 format tests on right now. Sorry.
I think GUI tools are often too far from the hardware and over simplify what is actually happening. They often choose sub-optimal settings. Plus, on non-desktop systems, there isn't any GUI, so I'd need to know both the GUI and non-GUI methods. Much easier to just learn 1 for me. Plus, GUIs change every few years and non-GUI tools stay about the same for 10+ yrs, if not 20+ yrs. Anyway, that's my thought process for wanting to see CLI tools run and the output from those tools.
Bookmarks