Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/handbook/filesystems/_index.adoc
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
* Have some familiarity with crossref:disks[disks,disks], storage, and device names in FreeBSD. | * Have some familiarity with crossref:disks[disks,disks], storage, and device names in FreeBSD. | ||||
[[filesystems-linux]] | [[filesystems-linux]] | ||||
== Linux(R) File Systems | == Linux(R) File Systems | ||||
FreeBSD provides built-in support for several Linux(R) file systems. | FreeBSD provides built-in support for several Linux(R) file systems. | ||||
This section demonstrates how to load support for and how to mount the supported Linux(R) file systems. | This section demonstrates how to load support for and how to mount the supported Linux(R) file systems. | ||||
=== ext2 | === ext2 / ext3 / ext4 | ||||
Kernel support for ext2 file systems has been available since FreeBSD 2.2. | Kernel support for ext2 file systems has been available since FreeBSD 2.2. | ||||
In FreeBSD 8.x and earlier, the code is licensed under the GPL. | The man:ext2fs[5] driver allows the FreeBSD kernel to both read and write to ext2, ext3, and ext4 file systems. | ||||
Since FreeBSD 9.0, the code has been rewritten and is now BSD licensed. | |||||
The man:ext2fs[5] driver allows the FreeBSD kernel to both read and write to ext2 file systems. | |||||
[NOTE] | [NOTE] | ||||
==== | ==== | ||||
This driver can also be used to access ext3 and ext4 file systems. | Journalling and encryption are not supported yet. | ||||
The man:ext2fs[5] filesystem has full read and write support for ext4 as of FreeBSD 12.0-RELEASE. | |||||
Additionally, extended attributes and ACLs are also supported, while journalling and encryption are not. | |||||
Starting with FreeBSD 12.1-RELEASE, a DTrace provider will be available as well. | |||||
Prior versions of FreeBSD can access ext4 in read and write mode using package:sysutils/fusefs-ext2[]. | |||||
==== | ==== | ||||
To access an ext file system, first load the kernel loadable module: | To access an ext file system, mount the ext volume by specifying its FreeBSD partition name and an existing mount point. | ||||
[source,shell] | |||||
.... | |||||
# kldload ext2fs | |||||
debdrup: Isn't kldload and/or `sysrc kld_list+="ext2fs"`still required? | |||||
Done Inline ActionsNot really, the mount(8) utility does that automatically. trasz: Not really, the mount(8) utility does that automatically. | |||||
Not Done Inline Actions
Good to go then. debdrup: > Not really, the mount(8) utility does that automatically.
Good to go then. | |||||
.... | |||||
Then, mount the ext volume by specifying its FreeBSD partition name and an existing mount point. | |||||
This example mounts [.filename]#/dev/ad1s1# on [.filename]#/mnt#: | This example mounts [.filename]#/dev/ad1s1# on [.filename]#/mnt#: | ||||
[source,shell] | [source,shell] | ||||
.... | .... | ||||
# mount -t ext2fs /dev/ad1s1 /mnt | # mount -t ext2fs /dev/ad1s1 /mnt | ||||
.... | .... |
Isn't kldload and/or sysrc kld_list+="ext2fs"still required?