What I'm trying to do is basically create a hidden file system on a USB drive. To start off, I just want to practice writing to and reading from an area of the USB drive that is not part of a partition. i.e. I want to interface and edit the 'disk' directly. In order to make sure there was enough space I was going to partition the USB drive so that the primary partition does not use up the entirety of storage available, leaving my free to edit anything outside of it.
I am comfortable in Python and C (and to a lesser extent C++). And I guess a follow-up question would be: Once I know how to interface with the disk directly, how can I still where the partition begins/ends in order to not overwrite anything in it?