Re: [RFC] mount can figure out fstype automatically

From: Mike Jakubik <mikej_at_rogers.com>
Date: Sat, 08 Jul 2006 18:27:10 -0400
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_at_fbsd.home.local:~# file - < /dev/ad0
/dev/stdin: x86 boot sector
root_at_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_at_fbsd.home.local:~# file - < /dev/ad0s1a
/dev/stdin: data
root_at_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_at_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_at_fbsd.home.local:~# df -h|grep ad0
/dev/ad0s1a     73G     12G     55G    18%    /
Received on Sat Jul 08 2006 - 20:27:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC