I'm currently working on an App to search file from disk. Till now what I have done is searching files by the snapshot.
I'm wondering if I can read the RAW bytes from the disk, instead of getting volumes and searching files with a high-level API directly. What I want to do is extracting partition or volumes from GPT or MBR manually, indexing files with different policies based on different type of file system, hopefully I could speed up the searching much.
I need to know how to read the RAW bytes from the disk, but unfortunately, I still don't know how to take the first step after some researches.
Could you please share me any idea about it, any help will be appreciated.
Thanks.
CodePudding user response:
So i am no expert on anything I am saying but I have some ideas here.
- On linux / Unix all devices are just files. Yes your hard drive is a file as well as your printer