mounted ext2 fs causes bad shutdown
Eric Kjeldergaard
kjelderg at gmail.com
Tue Feb 1 05:58:37 PST 2005
> > 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.
More information about the freebsd-questions
mailing list