How to lock HD

I have installed Ndure 3.0 by kingroach or somethign like that and i try putting my hd which is not stock in my xbox and try booting it, and get an error 5, which means my hd is not locked. does anybody know how i would lock it without having to buy anything.