Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| freebsd_filesystems [2025/07/21 06:48] – created steve | freebsd_filesystems [2025/07/21 08:17] (current) – steve | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== FreeBSD Filesystems ====== | ====== FreeBSD Filesystems ====== | ||
| + | |||
| + | * [[FreeBSD]] | ||
| + | * [[zfs]] | ||
| + | |||
| + | In each case here, by default, the examples mount the filesystems as read-only. | ||
| + | |||
| + | ==== DVDs ==== | ||
| + | |||
| + | Mount a DVD: | ||
| + | |||
| + | < | ||
| + | mount_cd9660 -o ro /dev/cd0 /mnt/dvd | ||
| + | </ | ||
| + | |||
| + | Add to fstab, and then use '' | ||
| + | |||
| + | < | ||
| + | /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 ''/ | ||
| + | |||
| + | < | ||
| + | /dev/ada0p4 /mnt/ext2 ext2fs noauto,ro 0 0 | ||
| + | </ | ||
| + | |||
| + | Alternatively, | ||
| + | |||
| + | < | ||
| + | glabel status | grep ada0p4 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| ==== Fuse Filesystems ==== | ==== Fuse Filesystems ==== | ||
| Line 20: | Line 71: | ||
| kld_list=" | kld_list=" | ||
| </ | </ | ||
| + | |||
| + | |||
| === exFAT === | === exFAT === | ||
| Line 29: | Line 82: | ||
| </ | </ | ||
| + | Mount filesystem - in this example, I'm mounting an external USB drive: | ||
| + | < | ||
| + | mount.exfat /dev/da0p1 /mnt/usb | ||
| + | </ | ||
| + | |||
| + | Add entry in ''/ | ||
| + | |||
| + | < | ||
| + | /dev/da0p1 exfat noauto, | ||
| + | </ | ||
| + | |||
| + | Alternatively, | ||
| + | |||
| + | < | ||
| + | glabel status | grep da0p1 | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | === vfat === | ||
| + | |||
| + | vfat partitions are used for EFI installs, so will be mounting to ''/ | ||
| + | |||
| + | Mount partition: | ||
| + | |||
| + | < | ||
| + | mount -t msdos /dev/ada0p1 /efi | ||
| + | </ | ||
| + | |||
| + | Add entry in ''/ | ||
| + | |||
| + | < | ||
| + | /dev/ada0p1 /efi msdos rw 0 0 | ||
| + | </ | ||



