From owner-freebsd-arch@FreeBSD.ORG Wed Nov 12 23:14:47 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7070716A4CE for ; Wed, 12 Nov 2003 23:14:47 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 385E643FB1 for ; Wed, 12 Nov 2003 23:14:46 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.10/8.12.10) with ESMTP id hAD7EgNZ004938; Thu, 13 Nov 2003 08:14:43 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Peter Jeremy From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 13 Nov 2003 17:42:51 +1100." <20031113064251.GB39616@cirb503493.alcatel.com.au> Date: Thu, 13 Nov 2003 08:14:42 +0100 Message-ID: <4937.1068707682@critter.freebsd.dk> cc: arch@freebsd.org Subject: Re: newfs and mount vs. half-baked disks X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 07:14:47 -0000 In message <20031113064251.GB39616@cirb503493.alcatel.com.au>, Peter Jeremy wri tes: >On Wed, Nov 12, 2003 at 09:56:14AM +0100, Poul-Henning Kamp wrote: >>It might not be a bad idea to store the relevant magics in a >>/etc/ufs.conf file, but there are some details about device vs. >>media/filesystem identification in particular in context of dynanic >>devices to that must be worked out. > >How do you handle the situation when the master superblock on / is >hosed and you need to find the filesystem parameters (in >/etc/ufs.conf) before you can access /? I usually take great care to always newfs / with default parameters, because then I can use newfs -N /dev/ad0a to see where the superblocks are to be found. >If the BSD-style disklabels are going away, at least the root >parameters need to be in the boot blocks or somewhere similar. Sure, send a patch. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.