Unfortunately the UFS support in the Linux kernel is broken. When you try to mount a UFS file system, you just get some error messages (the file system actually gets mounted, but you cannot read anything from it.)
However, there is a new (ALPHA) version of the UFS file system support for Linux 2.0.xx kernels on SunSite. It is called U2FS and the current version is
u2fs-0.4.3.tar.gz. U2FS is installed in the following way (assuming
u2fs-0.4.3.tar.gz is stored in
cd /usr/src tar xvzf u2fs-0.4.3.tar.gz patch -p0 -E < u2fs-0.4.3.patch
Now you have to build a new kernel with support for the U2FS file system and BSD disklabel. See section Installing and preparing Linux for more information on this. You can leave out UFS file system support from the kernel when you use U2FS.
When you have installed the new kernel, you can mount your UFS file systems (all the partitions in the FreeBSD slice except the swap partition) with a command like this:
mount -t u2fs /dev/hda8 /mnt
The UFS support is read-only. That is; you can read from the UFS file systems but you cannot write to them.
5.2 Mounting ext2fs file systems under FreeBSD
To mount ext2fs file systems under FreeBSD, you first have to build a new kernel with ext2fs support. Read the FreeBSD documentation to learn how to do that. Put the line
in your kernel configuration file for the new kernel.
When you have booted with the new kernel, you can mount an ext2fs file system by giving a command like:
mount -t ext2fs /dev/wd0s3 /mnt
Due to a bug in FreeBSD you will have to unmount all ext2fs file systems before you shut down FreeBSD. If you shut down FreeBSD with an ext2fs file system mounted, FreeBSD cannot sync the UFS file systems. This results in
fsck being run the next time FreeBSD is booted. This bug is reported to have been fixed in the « -current » development tree.