The Linux+FreeBSD mini-HOWTO : Mounting filesystems : Mounting ext2fs filesystems under FreeBSD
Previous: Mounting UFS filesystems under Linux
Next: Running foreign binaries

5.2. Mounting ext2fs filesystems under FreeBSD FreeBSD dualboot!mounting filesystems!ext2fs, in FreeBSD

To mount ext2fs filesystems under FreeBSD, you first have to build a new kernel with ext2fs support. Read the FreeBSD handbook to learn how to do that. Put the line

options		"EXT2FS"
in your kernel configuration file for the new kernel.

When you have booted with the new kernel, you can mount an ext2fs filesystem by giving a command like:

mount -t ext2fs /dev/wd0s3 /mnt

Due to a bug in FreeBSD 2.2.8 and earlier you will have to unmount all ext2fs filesystems before you shut down FreeBSD if you are using these any of these versions. If you shut down FreeBSD with an ext2fs filesystem mounted, FreeBSD cannot sync the UFS filesystems. This results in fsck being run the next time FreeBSD is booted. You can work around this bug by putting the line:

umount -a -t ext2fs
in the /etc/rc.shutdown file. The bug has been fixed in FreeBSD 3.x.


The Linux+FreeBSD mini-HOWTO : Mounting filesystems : Mounting ext2fs filesystems under FreeBSD
Previous: Mounting UFS filesystems under Linux
Next: Running foreign binaries