Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Feb 2005 07:58:34 -0600
From:      Eric Kjeldergaard <kjelderg@gmail.com>
To:        "Loren M. Lang" <lorenl@alzatex.com>
Cc:        FreeBSD Mailing list <freebsd-questions@freebsd.org>
Subject:   Re: mounted ext2 fs causes bad shutdown
Message-ID:  <d9175cad0502010558d0d23c6@mail.gmail.com>
In-Reply-To: <20050201112315.GH8619@alzatex.com>
References:  <20050131110432.GD8619@alzatex.com> <20050201041642.GA1733@oliverfuchs.onlinehome.de> <20050201055342.GC776@gothmog.gr> <20050201112315.GH8619@alzatex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d9175cad0502010558d0d23c6>