I've recently started looking into low level bit manipulation.
and
http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetNaive
I understand the concept of how to clear/set/toggle/check etc., a bit within an integer or a byte. (Get a specific bit from byte)
I cannot however seem to find how to change the value of a bit at a specific location in my hard drive.
I would be attempting to do this in Ubuntu 14.04 LTS. I am most familiar with Python and C++ but i'll take answers in any language.