Date: Sat, 7 Dec 2002 12:33:39 -0800 (PST) From: Archie Cobbs <archie@dellroad.org> To: Bruce Evans <bde@zeta.org.au> Cc: Archie Cobbs <archie@dellroad.org>, Kirk McKusick <mckusick@beastie.mckusick.com>, Julian Elischer <julian@elischer.org>, freebsd-current@FreeBSD.ORG, Thomas-Henning von Kamptz <tomsoft@FreeBSD.ORG> Subject: Re: backgroud fsck is still locking up system (fwd) Message-ID: <200212072033.gB7KXddC072338@arch20m.dellroad.org> In-Reply-To: <20021207235810.C12406-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212072033.gB7KXddC072338>