Table of Contents
FreeBSD Filesystems
DVDs
Mount a DVD:
mount_cd9660 -o ro /dev/cd0 /mnt/dvd
Add to fstab, and then use mount /dev/cd0
or mount /mnt/dvd
:
/dev/cd0 /mnt/dvd cd9660 ro,noauto 0 0
ext2 / ext3 / ext4
FreeBSD can mount extX filesystems natively.
Mount device read-only:
mount -t ext2fs -o ro /dev/ada0p4 /mnt/ext2/
Mount device read and write:
mount -t ext2fs /dev/ada0p4 /mnt/ext2/
Add entry to /etc/fstab
:
/dev/ada0p4 /mnt/ext2 ext2fs noauto,ro 0 0
Alternatively, you can mount the drive in fstab by using the UUID:
glabel status | grep ada0p4
/dev/gptid/a81060a5-e5a7-44d2-bc00-75ff7dadab1d /mnt/ext2 ext2fs noauto,ro 0 0
Fuse Filesystems
Install program:
pkg install fusefs-libs
Load kernel module now:
kldload fusefs
Load module on boot in /etc/rc.conf
:
kld_list="fusefs"
exFAT
Install exfat FUSE module:
pkg install fusefs-exfat
Mount filesystem - in this example, I'm mounting an external USB drive:
mount.exfat /dev/da0p1 /mnt/usb
Add entry in /etc/fstab
:
/dev/da0p1 exfat noauto,mountprog=/usr/local/sbin/mount.exfat 0 0
Alternatively, you can mount the drive in fstab by using the UUID:
glabel status | grep da0p1
/dev/gptid/19d2a9b4-0ca4-4357-ac8c-a92f07c7faf1 /mnt/usb exfat noauto,mountprog=/usr/local/sbin/mount.exfat 0 0
vfat
vfat partitions are used for EFI installs, so will be mounting to /efi
here.
Mount partition:
mount -t msdos /dev/ada0p1 /efi
Add entry in /etc/fstab
:
/dev/ada0p1 /efi msdos rw 0 0