Wednesday, January 19, 2011

How to Mount A Linux Partition In FreeBSD

For ext2fs filesystem  Support under FreeBSD, You  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.

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”

No comments: