fstyp(8)

Lars Engels lars.engels at 0x20.net
Tue Dec 9 09:04:53 UTC 2014


On Mon, Dec 08, 2014 at 05:59:17PM +0100, Edward Tomasz Napierała wrote:
> Dnia 8 gru 2014 o godz. 14:11 Lars Engels <lars.engels at 0x20.net> napisał(a):
> 
> >> On Fri, Dec 05, 2014 at 12:46:35PM +0100, Edward Tomasz Napierała wrote:
> >> I'm slowly working on making autofs suitable for mounting removable
> >> media, and one of the things required is filesystem detection.  It's
> >> kind of possible to use file(1), but it's, well, "suboptimal" for this
> >> task.  So, I went and wrote fstyp(8).
> >> 
> >> This utility, named after SVR4 command with same weird name, detects
> >> filesystems.  It's mostly based on glabel code.  The output is machine
> >> parseable, it can print out filesystem labels, and runs capsicated.
> >> 
> >> You can join the review at https://reviews.freebsd.org/D1255.
> > 
> > Will it be possible to run "mount /dev/da$foo" without specifying a file
> > system type?
> 
> No, but it's possible to run "mount -t `fstyp /dev/da$foo` /dev/da$foo
> /mnt".  Or, with upcoming "-media" autofs map, just "cd
> /media/da$foo".

Okay, that's a candidate for some shell alias then :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 603 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20141209/f0df7242/attachment.sig>


More information about the freebsd-hackers mailing list