So just for comparison, this is what happens when you run this against a disk with no partition table:
ubuntu@wildorange:~$ sudo ./storage_test sdc
/dev/sdc is a block device
Error: /dev/sdc: unrecognised disk label
Error: /dev/sdb: unrecognised disk label
Error: /dev/sdc: unrecognised disk label
Error: /dev/sdd: unrecognised disk label
/dev/sdc reports a size of 147GB.
/dev/sdc is not mounted. It must be mounted before testing.
Error: /dev/sdc: unrecognised disk label
/dev/sdc has no partition table. Test on this drive cannot proceed.
There's a lot of stderr there that makes reading the output confusing...
So just for comparison, this is what happens when you run this against a disk with no partition table: wildorange: ~$ sudo ./storage_test sdc
ubuntu@
/dev/sdc is a block device
Error: /dev/sdc: unrecognised disk label
Error: /dev/sdb: unrecognised disk label
Error: /dev/sdc: unrecognised disk label
Error: /dev/sdd: unrecognised disk label
/dev/sdc reports a size of 147GB.
/dev/sdc is not mounted. It must be mounted before testing.
Error: /dev/sdc: unrecognised disk label
/dev/sdc has no partition table. Test on this drive cannot proceed.
There's a lot of stderr there that makes reading the output confusing...