Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/handbook/filesystems/_index.adoc
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
[[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 | ||||
The man:ext2fs[5] driver allows the FreeBSD kernel to both read and write to ext2 file systems. | |||||
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. | In FreeBSD 8.x and earlier, the code was licensed under the GPL. | ||||
Since FreeBSD 9.0, the code has been rewritten and is now BSD licensed. | Since FreeBSD 9.0, the code has been rewritten and is now BSD licensed. | ||||
Starting with FreeBSD 12.1-RELEASE, a DTrace provider is available. | |||||
The man:ext2fs[5] driver allows the FreeBSD kernel to both read and write to ext2 file systems. | [WARNING] | ||||
[NOTE] | |||||
==== | ==== | ||||
This driver can also be used to access ext3 and ext4 file systems. | This driver can also be used to access ext3 and ext4 file systems. | ||||
The man:ext2fs[5] filesystem has full read and write support for ext4 as of FreeBSD 12.0-RELEASE. | The man:ext2fs[5] filesystem has read and write support for ext3 and ext4 as of FreeBSD 12.0-RELEASE, while prior versions of FreeBSD can access ext3 and ext4 in read-only mode using package:sysutils/fusefs-ext2[]. | ||||
Additionally, extended attributes and ACLs are also supported, while journalling and encryption are not. | Although the man:ext2fs[5] driver supports extended attributes and ACLs, journalling and encryption are not; therefore when accessing an ext3 or ext4 filesystem, it is recommended to mount the filesystem read-only. | ||||
pauamma_gundo.com: Is that warning applicable to base system support, to sysutils/fusefs-ext2, or both? (Given its… | |||||
Done Inline ActionsClarified; thanks. It's supposed to apply to both. I want to discourage people from using read-write support at all, I think. ceri: Clarified; thanks. It's supposed to apply to both. I want to discourage people from using… | |||||
pauamma_gundo.comUnsubmitted Not Done Inline ActionsI see you also removed "Starting with FreeBSD 12.1-RELEASE, a DTrace provider will be available as well." but the review summary doesn't explain why. Accidental overdeletion? pauamma_gundo.com: I see you also removed "Starting with FreeBSD 12.1-RELEASE, a DTrace provider will be available… | |||||
ceriAuthorUnsubmitted Done Inline ActionsIt wasn't appropriate for a WARNING, so I moved it higher up - see new line 89. ceri: It wasn't appropriate for a WARNING, so I moved it higher up - see new line 89. | |||||
pauamma_gundo.comUnsubmitted Done Inline ActionsOh, right, missed it. pauamma_gundo.com: Oh, right, missed it. | |||||
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, first load the kernel loadable module: | ||||
[source,shell] | [source,shell] | ||||
.... | .... | ||||
# kldload ext2fs | # kldload ext2fs | ||||
.... | .... | ||||
Then, mount the ext volume by specifying its FreeBSD partition name and an existing mount point. | 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 | ||||
.... | .... | ||||
To mount an ext volume read-only, include the `-o ro` option: | |||||
[source,shell] | |||||
.... | |||||
# mount -t ext2fs -o ro /dev/ad1s1 /mnt | |||||
.... | |||||
Is that warning applicable to base system support, to sysutils/fusefs-ext2, or both? (Given its position in the text and with no indication of scope, it reads as applicable to sysutils/fusefs-ext2 only.)