benda<p>alright <a href="https://kolektiva.social/tags/mindhive" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>mindhive</span></a> <a href="https://kolektiva.social/tags/fedihelp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fedihelp</span></a> another stupid <a href="https://kolektiva.social/tags/linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>linux</span></a> question regarding <a href="https://kolektiva.social/tags/fdisk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fdisk</span></a> or worse, i can't do basic math.</p><p>i have some HDDs in a box.<br>the drives are "3 TB" each. according to lsblk 2.7T each:<br>____________<br>benda@nows2point0:~$ lsblk<br>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS<br>sda 8:0 0 2.7T 0 disk <br>sdb 8:16 0 2.7T 0 disk <br>sdc 8:32 0 2.7T 0 disk <br>sdd 8:48 0 2.7T 0 disk <br>____________<br>according to fdisk -l, they are 2.73TiB each (powers of ten, right?).<br>____________<br>Disk /dev/sda: 2.73 TiB, 3000592982016 bytes, 5860533168 sectors<br>Disk model: WDC WD30EFAX-68J<br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes</p><p>Disk /dev/sdb: 2.73 TiB, 3000592982016 bytes, 5860533168 sectors<br>Disk model: WDC WD30EFAX-68J<br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes</p><p>Disk /dev/sdd: 2.73 TiB, 3000592982016 bytes, 5860533168 sectors<br>Disk model: WDC WD30EFAX-68J<br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes</p><p>Disk /dev/sdc: 2.73 TiB, 3000592982016 bytes, 5860533168 sectors<br>Disk model: WDC WD30EFAX-68J<br>Units: sectors of 1 * 512 = 512 bytes<br>Sector size (logical/physical): 512 bytes / 4096 bytes<br>I/O size (minimum/optimal): 4096 bytes / 4096 bytes<br>______________<br>so what i want to do, is create a near total partition, leaving off 100 Mb.<br>so my math is 100Mb*1024*1024= # of bytes, and since fdisk defaults to use of sectors during partitioning, dividing that by 512 will give me 204,800 sectors for how much dead space i want at the end of the disk. <br>now i already have a problem bc fdisk says the drive has 5,860,533,168 sectors. but when i go to create the partition, it says my ending sector can be as high as 4,294,967,295. and granted it starts at 2048, but still that leaves me with 1,565,563,825 sectors missing (over 750 Mb). <br>_______________<br>Created a new DOS (MBR) disklabel with disk identifier 0x58854453.</p><p>Command (m for help): n<br>Partition type<br> p primary (0 primary, 0 extended, 4 free)<br> e extended (container for logical partitions)<br>Select (default p): p<br>Partition number (1-4, default 1): <br>First sector (2048-4294967295, default 2048): <br>Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-4294967295, default 4294967295): </p><p>Created a new partition 1 of type 'Linux' and of size 2 TiB.<br>Partition #1 contains a linux_raid_member signature.</p><p>Do you want to remove the signature? [Y]es/[N]o: <br>________________<br>where is my storage space going, what is it that i do not understand here? and thank you in advance.</p>