Hello friends
it is too long time I don't code :-(
I'm landed today on this cool community.
I need realize (or thank you if you want to provide one) an utility that would count how many blank sectors (blank is meant that for the given sector, each of the 512 bytes is x00) are present in an hard drive (which is obviously already used and written)
I'm wondering which is the best environment to choose (linux or windows)
I'm also wondering if it could be a bahs script in linux
I've seen some lines in Python, but I'd brand new to Python :-(
Obviously it should run at an acceptable speed, since it would parse all the sectors of an hard drive.. eg 500GB = 976 millions sectors
In linux it would be easy to identify and work directly with the given hard drive and so this would avoid an hard drive selection section. Just run the utility with an sdX /dev/sdX) parameter.
Anyway, no clue on the path to follow and honestly, no time to dedicate to study this from the scratch.
Hopefully I've been able to provide the rough idea of what am I wondering about :-)
Can you kindly hint, help or solve this?
Thank you in advance for any hint and even more thanks for any solution
Robert