file(1) cannot detect UFS2?
Ivan Voras
ivoras at fer.hr
Sun Jun 10 13:55:59 UTC 2007
Wilkinson, Alex wrote:
> 0n Sun, Jun 10, 2007 at 12:41:31AM +0200, Ivan Voras wrote:
>
> >I'm trying to use file(1) to detect file system type on partitions, and
> >so far it's working for any file system I've cared to try (the usual MS
> >and Linux list) *except* UFS2.
>
> Not sure if what you're doing *has* to be done with file(1).
> However, you can what you want like so:
>
> #dumpfs ad0s1a | head -1
> magic 19540119 (UFS2) time Sun Jun 10 21:30:45 2007
So you're proposing one utility per possible file system instead of one
utility total? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070610/dfe6604f/signature.pgp
More information about the freebsd-hackers
mailing list