Index List

19 September 2008

Mount ext2fs Filesystems Under FreeBSD

To mount ext2fs filesystems under FreeBSD, you first have to build a new kernel with ext2fs support. Put the line

options “EXT2FS”

in your kernel configuration file for the new kernel and compile.
Read the FreeBSD handbook to learn how to do that.

or

Do the following steps to enable ext2fs support in the kernel:

# cd /usr/src/sys/modules/ext2fs
# make
# make install

You can use ‘kldload‘ to load the ext2fs module in to the kernel.

# kldload ext2fs
Then you will be able to mount your linux partitions by giving a command like:

# mount -t ext2fs /dev/ad1s1 /mnt

to unload module use

# kldunload ext2fs

To load the module automatically on system startup

add the following line in to /boot/loader.conf

ext2fs_load=”YES”