From owner-freebsd-current Fri Dec 8 7: 9:50 2000 From owner-freebsd-current@FreeBSD.ORG Fri Dec 8 07:09:46 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 1A27137B402; Fri, 8 Dec 2000 07:09:46 -0800 (PST) Received: from newsguy.com (p60-dn01kiryunisiki.gunma.ocn.ne.jp [211.0.245.61]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id AAA26149; Sat, 9 Dec 2000 00:09:35 +0900 (JST) Message-ID: <3A30F7FD.A6FA069D@newsguy.com> Date: Sat, 09 Dec 2000 00:02:21 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR MIME-Version: 1.0 To: Matthew Thyer Cc: Mike Smith , "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: <200012080154.eB81sFN00538@mass.osd.bsdi.com> <3A305227.D74011C4@dsto.defence.gov.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Thyer wrote: > > > In the grand tradition of being allowed to shoot yourself in the foot, > I would like to be able to do such things as this is clearly what I > intend. Since we dont normally hold peoples hands for other things, > why cant we allow big holes in my feet for this too ? > > Regardless /dev/da18s1 should work as for /dev/da18 > > I know... send patches... unfortunately my day job hasn't seen the > light yet so I cant work on FreeBSD at work. No, and no. You misunderstand the problem. A disk on IBM PC compatible computers has the following format: | Partition table | Data | | Slice 1 | Slice 2 | Slice 3 | Slice 4 | | Disklabel | Data | | c | |a|b|f|g| The partition table divides the data in up to four slices. Each slice may have, under FreeBSD, a disklabel and have the rest of it divided into up to seven partitions, with one partition, c, representing the total data space. So da1 represents the whole disk, including partition table. da1s1 may or may not represent the whole data part of the disk (ie, whole disk minus partition table), because that's what da1s1 *is*, etc, etc, etc. This has nothing to do with preventing the user from shooting himself in the foot. This is just how the disk is, as a matter of fact, organized. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.great.underground.bsdconpiracy.org "The bronze landed last, which canceled that method of impartial choice." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message