file system type

Kevin Kinsey kdk at
Sat Mar 19 06:54:34 PST 2005

Robert Munn wrote:

> Is there any way of detecting the type of file system on a disk,  
> specifically UFS2 or UFS1?
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe at"

You mean as an operator, or as a programmer?

Obviously, as an operator, mount(8) gives you this information
after a brief visual parsing.

I'm not a C programmer, but a quick lookup with apropos(1)
yields the following:

     getvfsbyname(3)          - get information about a file system


Kevin Kinsey

More information about the freebsd-questions mailing list