From owner-freebsd-current Thu Dec 7 17:45: 7 2000 From owner-freebsd-current@FreeBSD.ORG Thu Dec 7 17:45:05 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-176-64.dsl.snfc21.pacbell.net [63.202.176.64]) by hub.freebsd.org (Postfix) with ESMTP id E82F737B400 for ; Thu, 7 Dec 2000 17:45:01 -0800 (PST) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id eB81sFN00538; Thu, 7 Dec 2000 17:54:15 -0800 (PST) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200012080154.eB81sFN00538@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Matthew Thyer 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 In-reply-to: Your message of "Fri, 08 Dec 2000 11:39:38 +1030." <3A3034D2.B57C2692@dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 07 Dec 2000 17:54:15 -0800 From: Mike Smith Sender: msmith@mass.osd.bsdi.com 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. That would be something of an understatement... > Please tell me (and for the benefit of the list) as to why > I cant use /dev/da18s1c ? The 'c' device won't let you overwrite the beginning of the slice/disk, since that's where the partition information is kept. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message