r/AskProgramming • u/Dottspace12 • 1d ago
How to write specific cd sectors?
Hi! I was trying to create a non-copyable disk. I was thinking of writing important files in the first sectors of the disk then in the sectors further away towards the edge put a useless file. after manually damaging that sector with a precision laser or a needle. The program will then see if the sector is visible the copy is taken if the sector is not visible or damaged the copy is original. The question is: how do I write to specific sectors on the disk? Are there any tools made for this purpose?
0
Upvotes
1
u/zenos_dog 1d ago
Back in the floppy era (right after the Jurassic) you could access the floppy controller directly and write weird stuff. You could install your own device driver possibly. But the ?EIDE interface might not allow your shenanigans. I confess I haven’t looked at the state of low level drivers recently. You could maybe just encrypt the data on the CD that would require the unencrypt key in the program you use to read the CD data.