View Single Post
  #1   (View Single Post)  
Old 15th July 2008
SimonSync SimonSync is offline
New User
 
Join Date: Jul 2008
Posts: 1
Default raw disk access on FreeBSD6 & 7

I am having problem getting write access to raw disk such as /dev/da0s1a. What i did is very simple:
fd = open("/dev/da0s1f", O_RDWR);
it always fails on bsd6 and bsd7, the errno is 1, which is Operation not permitted.

Does anybody has any idea what is going wrong?

Thanks,
Simon
Reply With Quote