Ok, I'm having this weird problem that defies mathematical logic. When I try to create an ext4 file system on a hard drive partition using 2495091104 512 byte logical sectors I get a file system with 1226836688 total 1k blocks. When I try to create a file system using 2495091103 512 byte logical sectors I get a file system with 1226798416 total 1k blocks. These total block values do not count the system overhead associated with the ext4 file systems themselves. So just how many 512 byte logical sectors do I need to use to get 1226833920 total 1k blocks as displayed by /usr/bin/df, without including the system overhead? My hard drive has a physical sector size of 4096 bytes so whatever I use must be an integer multiple of that. It is worth pointing out that the 2495091103 512 byte logical sectors do not match up with an integer number of physical sectors so I would really only be using 2495091096 512 byte logical sectors, so when I create a file system with 2495091096 512 byte logical sectors I get a total of 1226798416 1k blocks, which is the same as when I use 2495091103 512 byte logical sectors because the added logical sectors are not able to be used in the file system. One might conclude that I have found myself on the threshold of two different block sizes of file system overhead which is creating a real problem. I need an ext4 file system that lands on an exact boundary of 5 GiB in total 1k blocks not counting system overhead associated with the ext4 file system itself. I have just slightly over 1170 GiB of space left on my hard drive to be partitioned and used. This must be contained in one single partition. I need to use as much of that as I can, but it must be partitioned in 5 GiB increments, when counting total 1k blocks without counting file system overhead.
Signed,
Matthew Campbell
Signed,
Matthew Campbell