Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Jul 2006 18:27:10 -0400
From:      Mike Jakubik <mikej@rogers.com>
To:        Craig Rodrigues <rodrigc@crodrigues.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [RFC] mount can figure out fstype automatically
Message-ID:  <44B0313E.6010103@rogers.com>
In-Reply-To: <20060708161719.GB3871@crodrigues.org>
References:  <20060708152801.GA3671@crodrigues.org> <44AFD7DF.8090002@errno.com> <20060708161719.GB3871@crodrigues.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Craig Rodrigues wrote:
> I was thinking of doing something like that.  You can basically
> get the same info by doing something like:
>
> file - < /dev/ad0s1e
> /dev/stdin: Unix Fast File system (little-endian)
>
> file - < /dev/ad0s4
> /dev/stdin: SGI XFS filesystem
>   

This does not work on my system btw.

root@fbsd.home.local:~# file - < /dev/ad0
/dev/stdin: x86 boot sector
root@fbsd.home.local:~# file - < /dev/ad0s1
/dev/stdin: x86 boot sector, code offset 0x3c, reserved sectors 0, Media 
descriptor 0x0, reserved 0x16, dos < 4.0 BootSector (0x1f), BSD disklabel
root@fbsd.home.local:~# file - < /dev/ad0s1a
/dev/stdin: data
root@fbsd.home.local:~# file - < /dev/ad0s1b
/dev/stdin: x86 boot sector, code offset 0x3c, reserved sectors 0, Media 
descriptor 0x0, reserved 0x16, dos < 4.0 BootSector (0x1f), BSD disklabel
root@fbsd.home.local:~# file - < /dev/ad0s1c
/dev/stdin: x86 boot sector, code offset 0x3c, reserved sectors 0, Media 
descriptor 0x0, reserved 0x16, dos < 4.0 BootSector (0x1f), BSD disklabel


No mention of FS type.

root@fbsd.home.local:~# df -h|grep ad0
/dev/ad0s1a     73G     12G     55G    18%    /





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44B0313E.6010103>