From owner-freebsd-current Sat Dec 7 12:45:16 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75DCF37B401; Sat, 7 Dec 2002 12:45:15 -0800 (PST) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DFA043EC5; Sat, 7 Dec 2002 12:45:14 -0800 (PST) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA07273; Sat, 7 Dec 2002 12:34:15 -0800 (PST) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id gB7KXeFF072339; Sat, 7 Dec 2002 12:33:40 -0800 (PST) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id gB7KXddC072338; Sat, 7 Dec 2002 12:33:39 -0800 (PST) From: Archie Cobbs Message-Id: <200212072033.gB7KXddC072338@arch20m.dellroad.org> Subject: Re: backgroud fsck is still locking up system (fwd) In-Reply-To: <20021207235810.C12406-100000@gamplex.bde.org> To: Bruce Evans Date: Sat, 7 Dec 2002 12:33:39 -0800 (PST) Cc: Archie Cobbs , Kirk McKusick , Julian Elischer , freebsd-current@FreeBSD.ORG, Thomas-Henning von Kamptz X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans wrote: > > So in summary my recommendation is to add a big warning to the > > growfs(1) man page that is should not be run on the root partition, > > even if you have booted single-user mode and haven't mounted / yet. > > I.e., to grow a root partition, you must boot from a different partition. > > Er, it should be obvious that growfs can't reasonably work on the mounted > partitions. growfs.1 doesn't exist, but growfs.8 already has the warning > in a general form: > > .... Currently growfs can only enlarge unmounted file systems. Do not > try enlarging a mounted file system, your system may panic and you will > not be able to use the file system any longer... Well, I suspected that it might not work... but I would disagree that it was *obvious* that it would not work. This was before "mount" had been run, so / was supposedly mounted (?) read-only. In any case, when you're talking about the danger of destroying a filesystem it probably wouldn't hurt to have a little extra clarity in the documentation. Or better yet, should the kernel prevent raw writes to the / partition? Guess that would prevent fsck from working though. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message