Its able to fill a harddisk partition on linux on non file style on follow way by shred:
sudo shred -n 0 -v -z /dev/sdXX
The XX need to replaced by device name, so you get /dev/sda1 , /dev/sdb1 or so on.
shred man page: https://linux.die.net/man/1/shred
How to create and write on /dev/sdXX a 100% of disk space filling file like my_file.txt by shred ?