DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th July 2008
SimonSync SimonSync is offline
New User
 
Join Date: Jul 2008
Posts: 1
Thanked 0 Times in 0 Posts
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
  #2   (View Single Post)  
Old 15th July 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Answer 2 questions (3 technically..):

1) Are you attempting to do this as root? or do you have read/write permissions for the device node?
2) What securelevel are you at? (>=2 prevent raw disk access..)
Reply With Quote
Reply

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:28 AM.


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