I think FreeBSD uses a subsystem called
geom() to manage storage devices (e.g. disk, usb mass storage, sd card). On these devices are (can be) file systems. File systems are supported by kernel modules (drivers). E.g. to use fat* file systems, you need the msdosfs driver (see
msdosfs()). To use linux file systems, you need to install a package, and then load the relevant driver into the kernel, e.g. with
kldload
. you can check for those modules with e.g.
kldstat -v | grep msdos
, or
kldstat -v |grep ufs
.
File systems can then be mounted with
mount(). Once mounted, you can access the files of that file system.
These are the file systems that
fstyp() recognizes.
Code:
cd9660
exfat
ext2fs
geli
msdosfs
ntfs
ufs
zfs
I think a default installation uses a msdos (fat32?) file system for early boot (for compatibility?), and then either ufs2, or zfs for the rest (kernel, userland).
The file
/etc/fstab shows what file systems are mounted automatically at boot.
mount
shows what file systems are mounted at the moment.
A native FreeBSD file system is probably ufs, see:
UFS on wikipedia