-3

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?

Thank you!

New contributor
NotSoTuringComplete is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Using gparted on ubuntu/debian Select the USB disk and then create a partition of the size you require, then you can play with the area left over. – JohnnyVegas Jun 12 at 22:00
  • I already have the partitions created. I'm wondering how do I actually read and write to the drive directly with a programming language. – NotSoTuringComplete Jun 12 at 22:01
  • You use the appropriate libraries and hooks that have the features you need. Or you study the documentation available on the process and write your own file system drivers. – music2myear Jun 12 at 22:30

Your Answer

NotSoTuringComplete is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.