[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
mounted ext2 fs causes bad shutdown
- Subject: mounted ext2 fs causes bad shutdown
- From: kjelderg at gmail.com (Eric Kjeldergaard)
- Date: Tue Feb 1 05:58:41 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.
Visit your host, monkey.org