DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD6.3 upgrade to FreeBSD7.0 Ofloo FreeBSD Installation and Upgrading 16 21st February 2009 08:02 PM
Disk > 100% Weaseal FreeBSD General 3 11th February 2009 05:50 PM
Disk geometry for Seagate disk phreud FreeBSD Installation and Upgrading 5 8th November 2008 10:51 PM
GNOME/FreeBSD6 gr1M FreeBSD Installation and Upgrading 3 25th July 2008 07:12 AM
Disk I/O Throughput m4rc OpenBSD General 5 10th July 2008 02:50 AM


All times are GMT. The time now is 10:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick