From owner-freebsd-questions@FreeBSD.ORG Tue Feb 1 13:58:37 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B65016A4CE for ; Tue, 1 Feb 2005 13:58:37 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1010543D1D for ; Tue, 1 Feb 2005 13:58:37 +0000 (GMT) (envelope-from kjelderg@gmail.com) Received: by rproxy.gmail.com with SMTP id z35so1003720rne for ; Tue, 01 Feb 2005 05:58:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=G060QDA9qtbc20urD+PviVSYh328hbpQHIUb/PljM73PDm7O185Re3Yg0po53kdGo4XPwfEx2xd1gBWmPNcdlDNY3syC5ckLB2IKedhd9fiX1oncNajJnAYxHdoOW+DvlzBiKOB9U2Dchyu2/FRxiLhisbNyqFscSqBRArj/WHQ= Received: by 10.38.126.53 with SMTP id y53mr224759rnc; Tue, 01 Feb 2005 05:58:34 -0800 (PST) Received: by 10.38.101.3 with HTTP; Tue, 1 Feb 2005 05:58:34 -0800 (PST) Message-ID: Date: Tue, 1 Feb 2005 07:58:34 -0600 From: Eric Kjeldergaard To: "Loren M. Lang" In-Reply-To: <20050201112315.GH8619@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050131110432.GD8619@alzatex.com> <20050201041642.GA1733@oliverfuchs.onlinehome.de> <20050201055342.GC776@gothmog.gr> <20050201112315.GH8619@alzatex.com> cc: Giorgos Keramidas cc: FreeBSD Mailing list Subject: Re: mounted ext2 fs causes bad shutdown X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Eric Kjeldergaard List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2005 13:58:37 -0000 > > One of the many ways to do the same thing without the bugs could be: > > > > # extfs=$(mount | grep '^/.*(ext2fs,' | awk '{print $1}') > > Actually, better than that would be extfs=$(mount -t ext2fs | awk '{print $1;}') > Or even just replace the whole thing with "umount -a -t ext2fs" > While we're at it, isn't awk a bit of overkill? Seems that the following would do: extfs=$(mount -t ext2fs | cut -d ' ' -f1) Every cycle counts :p -- If I write a signature, my emails will appear more personalised.