Unable to write to drive

Sean Bruno sbruno at miralink.com
Thu May 22 20:09:11 UTC 2008


Marauder wrote:
> Hi all,
>
> I have a problem that is driving me crazy. Hopefully I'm submitting this question to the correct place. 
>
> My problem is... I have opened the drive /dev/ad0 with open("/dev/ad0", O_WRONLY) and it return's a valid file descriptor. The I attempt to write using the file descriptor returned. The write fails with errno=22 (EINVAL)
>
> I have attempted to first open /dev/io with READ/WRITE access to see if that help's. No luck
> I have attempted to lock the section of the drive I would like to write to with lockf. No luck
>
> If anybody has any idea's or suggestions I would greatly appreciate them.
>
> Thanx
>
>
> _______________________________________________
> freebsd-geom at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-geom
> To unsubscribe, send any mail to "freebsd-geom-unsubscribe at freebsd.org"
>   
Is the disk /dev/ad0 in any kind of geom based device?  That would keep 
you from writing I think.

Also, have you tried "O_RDWR" as well?



-- 
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199



More information about the freebsd-geom mailing list