Why not modify your code to make the drive Read only, unless some sort of 'unlock' sequence is executed? E.g. read last sector, N-1, n-2, n-3 then n-3 n-2 n-1 N. Something no O/S will do, but your 'unlock' program would. R hgraf wrote: > Another interesting question... > > I've created some hardware to emulate an IDE hard drive. I've connected > this emulated drive to a computer using a USB2.0-PATA bridge. > > It works well, however, due to the way things need to work it would make > my life easier if I could prevent the OS from writing to my "drive". > > Is there a way under linux (Ubuntu 7.10) to cause a USB hard drive to be > mounted read-only (it's currently being auto mounted, I don't want my > changes to have any effect on other USB drives being mounted)? Is there > something in the identify drive data that a hard drive returns that I > can set to cause the hard drive to be read only (I can change anything > there I want)? > > Again, I've googled, but haven't really come up with anything. > > Thanks for any pointers. > > TTYL -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist