Hi, Timothy M Butterworth wrote: > I have a 16TB drive that is working properly. I reformatted the drive to the > ext4 file system with default settings and it works great. Try to reformat > the drive especially if the current format is FAT.
Several of the shown inquiry methods did not refer to filesystems and also not to partitions alone: cat /proc/partitions lsblk gdisk -l /dev/sdb plus the line grepped from dmesg: [ 12.977869] sd 7:0:0:0: [sdb] 4294967294 512-byte logical blocks: (2.20 TB/2.00 TiB) They all consistently say that the disk has 2 exp 32 - 2 blocks of 512 bytes = 2 TiB - 1024 bytes. Only smartctl, which does not depend on the kernel's size assessment, reports a capacity of 8 TB + 1.563222016 GB. So 2 TiB is obviously a misperception of the overall disk size by the kernel. Linux hands this size to user space by ioctl(BLKGETSIZE) or ioctl(BLKGETSIZE64). gdisk uses them: https://codesearch.debian.net/search?q=package%3Agdisk+BLKGETSIZE (on amd64, "long sz" and "long long b" have the same size of 8 bytes.) util-linux, the mother of lsblk uses them: https://codesearch.debian.net/search?literal=0&q=package%3Autil-linux+ioctl.*BLKGETSIZE&page=3 (One has to go to the end of the last page to find the code which does the work. The preceding matches are i18n noise.) Have a nice day :) Thomas