From owner-freebsd-current Thu Dec 7 17:13:54 2000 From owner-freebsd-current@FreeBSD.ORG Thu Dec 7 17:13:52 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by hub.freebsd.org (Postfix) with ESMTP id B8B6137B400; Thu, 7 Dec 2000 17:13:48 -0800 (PST) Received: from dsto-ms2.dsto.defence.gov.au (dsto-ms2.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au (8.10.1/8.10.1) with ESMTP id eB81EBQ07011; Fri, 8 Dec 2000 11:44:11 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by dsto-ms2.dsto.defence.gov.au (Content Technologies SMTPRS 4.1.5) with ESMTP id ; Fri, 8 Dec 2000 11:43:06 +1030 Received: from salex001.dsto.defence.gov.au (salex001.dsto.defence.gov.au [131.185.2.9]) by muttley.dsto.defence.gov.au (8.9.3/8.9.3/8.9.3.LMD.990513) with ESMTP id LAA05282; Fri, 8 Dec 2000 11:39:10 +1030 (CST) Received: from fang.dsto.defence.gov.au ([131.185.2.5]) by salex001.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id WZWR8S5Y; Fri, 8 Dec 2000 11:39:09 +1030 Received: from dsto.defence.gov.au (fuzz.dsto.defence.gov.au [131.185.75.229]) by fang.dsto.defence.gov.au (8.9.3/8.9.3/8.9.3.LMD.990513) with ESMTP id LAA22415; Fri, 8 Dec 2000 11:39:09 +1030 (CST) Sender: thyerm@dsto.defence.gov.au Message-ID: <3A3034D2.B57C2692@dsto.defence.gov.au> Date: Fri, 08 Dec 2000 11:39:38 +1030 From: Matthew Thyer X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: "John W. De Boskey" , freebsd-current@freebsd.org Subject: Re: write(2) returns error saying read only filesystem when trying to write to a partition References: <200012080014.eB80Ew900494@mass.osd.bsdi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > The program works on Compaq True64 UNIX v 4.0d > > It also works on Solaris 7 (only tested sparc). > > > > So it seems FreeBSD is broken here. > > FreeBSD just behaves differently. If you want to write to the whole > disk, open the whole-disk device, not the 'c' partition. Thanks Mike, /dev/da18 works fine for me although I notice that /dev/da18s1 does not. There seems to be some inconcistencies in this area. Please tell me (and for the benefit of the list) as to why I cant use /dev/da18s1c ? Note that the disk has been set up with "fdisk -I da18" and then "disklabel -wr da18s1". -- Matthew Thyer Phone: +61 8 8259 7249 Science Corporate Information Systems Fax: +61 8 8259 5537 Defence Science and Technology Organisation, Salisbury PO Box 1500 Salisbury South Australia 5108 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message