Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
freebsd_filesystems [2025/07/21 06:54] stevefreebsd_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:
 +
 +<code>
 +mount_cd9660 -o ro /dev/cd0 /mnt/dvd
 +</code>
 +
 +Add to fstab, and then use ''mount /dev/cd0'' or ''mount /mnt/dvd'':
 +
 +<code>
 +/dev/cd0 /mnt/dvd cd9660 ro,noauto 0 0
 +</code>
 +
 +==== ext2 / ext3 / ext4 ====
 +
 +FreeBSD can mount extX filesystems natively.
 +
 +Mount device **read-only**:
 +
 +<code>
 +mount -t ext2fs -o ro /dev/ada0p4 /mnt/ext2/
 +</code>
 +
 +Mount device **read and write**:
 +
 +<code>
 +mount -t ext2fs /dev/ada0p4 /mnt/ext2/
 +</code>
 +
 +Add entry to ''/etc/fstab'':
 +
 +<code>
 +/dev/ada0p4 /mnt/ext2 ext2fs noauto,ro 0 0
 +</code>
 +
 +Alternatively, you can mount the drive in fstab by using the UUID:
 +
 +<code>
 +glabel status | grep ada0p4
 +</code>
 +
 +<code>
 +/dev/gptid/a81060a5-e5a7-44d2-bc00-75ff7dadab1d /mnt/ext2 ext2fs noauto,ro 0 0
 +</code>
  
 ==== Fuse Filesystems ==== ==== Fuse Filesystems ====
Line 20: Line 71:
 kld_list="fusefs" kld_list="fusefs"
 </code> </code>
 +
 +
  
 === exFAT === === exFAT ===
Line 49: Line 102:
 <code> <code>
 /dev/gptid/19d2a9b4-0ca4-4357-ac8c-a92f07c7faf1 /mnt/usb exfat noauto,mountprog=/usr/local/sbin/mount.exfat 0 0 /dev/gptid/19d2a9b4-0ca4-4357-ac8c-a92f07c7faf1 /mnt/usb exfat noauto,mountprog=/usr/local/sbin/mount.exfat 0 0
 +</code>
 +
 +=== vfat ===
 +
 +vfat partitions are used for EFI installs, so will be mounting to ''/efi'' here.
 +
 +Mount partition:
 +
 +<code>
 +mount -t msdos /dev/ada0p1 /efi
 +</code>
 +
 +Add entry in ''/etc/fstab'':
 +
 +<code>
 +/dev/ada0p1 /efi msdos rw 0 0
 </code> </code>

Navigation
QR Code
QR Code freebsd_filesystems (generated for current page)