For this reason a lot of modern partitioning tools simply align the entire drive along a 1MB boundary, which neatly does away with the need to detect whether you have any of the many types of drive, be they 512-byte sectors, 4KB sectors, or SSD with some arbitrary block size.