Parted is a flexible tool for working with partition tables under Linux. Unfortunately it sometimes seems rather stupid. For example when you create a new partition you may get the warning “The resulting partition is not properly aligned for best performance”. It could then of course proceed to suggest the proper alignment, but it doesn’t, so in theory you are left to figure out the right alignment yourself.
mkpart /dev/somedevice ext4 0% 100%
It took me a while to find that one again, so I made a blog post of it, so I can easily come back to it when I need it again.