From owner-freebsd-fs Sat Sep 30 19:35:32 2000 Delivered-To: freebsd-fs@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 9B7F737B502; Sat, 30 Sep 2000 19:35:21 -0700 (PDT) Received: (from grog@localhost) by wantadilla.lemis.com (8.11.0/8.9.3) id e912YrT49033; Sun, 1 Oct 2000 12:04:53 +0930 (CST) (envelope-from grog) Date: Sun, 1 Oct 2000 12:04:53 +0930 From: Greg Lehey To: Terry Lambert Cc: "Karsten W. Rohrbach" , Andre Albsmeier , Marc Tardif , freebsd-fs@FreeBSD.ORG, freebsd-scsi@FreeBSD.ORG Subject: Re: ccd with other filesystems Message-ID: <20001001120453.I43885@wantadilla.lemis.com> References: <20001001114540.G43885@wantadilla.lemis.com> <200010010228.TAA18618@usr05.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200010010228.TAA18618@usr05.primenet.com>; from tlambert@primenet.com on Sun, Oct 01, 2000 at 02:28:09AM +0000 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sunday, 1 October 2000 at 2:28:09 +0000, Terry Lambert wrote: > Greg Writes: >> None of the partitions is special except for 'c'. By convention we >> put root file systems on 'a' and swap on 'b', but nothing relies on >> this convention. > > The kernel and other files loaded by the loader myst be below > the 1024 cylinder boundary on the disk, since the FrrBSD boot > loader, unlike Linux's LILO, can not read past cylinder 1024, > since it does not understand how to make LBA BIOS calls > properly. This is no longer the case. The restriction was lifted a few months back. >>> i dont quite know why it is still possible doing a newfs on a 'c' >>> partition, since the partition type is 'unused' and not >>> '4.2BSD'. newfs should check this and throw an error while providing >>> an expert-only-feature command line option to explicitly override >>> it. >> >> I think this is a bug in newfs. It should only create file systems on >> partitions of type 4.2BSD. Does anybody disagree? Otherwise I'll fix >> it. > > I have several systems, where the entirety of the disk (the "c" > partition) is mounted as a single file system. You can do it, but it's not a good idea. I'd like to see a good reason for doing this. > So long as this is done right, such that I can tell it that the "c" > partition is of type "4.2BSD", and so long as the sysinstall and > other tools do the right thing, it doesn't matter to me if you fix > it. There is no way to do this right. >>> it is a bad thing[tm] to be able to wedge every single blockdev in your >>> system by (ab)using newfs. >> >> Agreed. > > This appears to be a problem with not checking the label for > overlap, since a mounted FS should not be spam'able under any > circumstances. Protecting people from spam'ming unmounted FSs by > pounding on "c" might be a laudable goal, but provides only a tiny > amount of additional protection. This is a separate issue. Yes, disklabel should warn about a number of things, including overlapping partitions and incorrect partition types (c should be "unused", because by definition it overlaps all other partitions). Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message