*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying to mount my FreeBSD UFS partition from linux. I created ufs filesystem support as a kernel module, modprobed it and ran the command specified in /usr/src/linux/Documentation/filesystems/ufs.txt but this is always the result:
[root@nina /root]# mount -t ufs -o ufstype=44bsd /dev/hdb3 /mnt/freebsd
mount: wrong fs type, bad option, bad superblock on /dev/hdb3,
or too many mounted file systems
I also read that freebsd's ufs is called ufs2, but that does not work either.
Also, it would appear that I can only mount an ext2 partition from FreeBSD..is there any way to mount a reiserfs partition?
By default 5.2.1 will use ufs2. Now, that does not mean that you are running ufs2 if you installed 5.0-RELEASE and upgraded to 5.2.1. When you're in Free just type 'mount' and see what the partition is. It will say ufs2 if it is. But, yeah, if you installed 5.2.1 from disk you have ufs2.
1) If you are using any kernel prior to 2.6.5-rc1 ,
then take the patches from 2.6.3 directory.
2) ufs2 read-only patch is included in 2.6.5-rc1 onwards.
However , There are still some bugs to be sorted out.
Try the patch in 2.6.5 directory on top of 2.6.5.
3) Please use CONFIG_LBD in your kernel configuration .
(Device Drivers -> Block Devices - > Support for large block devices )
This is required because ufs2 uses 64 bit block addressing .
4) The current support for UFS2 is READ-ONLY.
I will be working on write support.
5) To mount , use this command :
mount -r -t ufs -o ufstype=ufs2 <device> <mount_dir>
Your solution works, but the thing is that it only mounts the "a" partition of my slice inside ubuntu, in FreeBSD jargon, by mounting /dev/sda2, which is my FreeBSD slice, I only get ad4s4a inside ubuntu. I have my FreeBSD /usr mounted in ad4s4c for example. It seems the mount command automatically goes for the first partition of sda2 slice.
How can I mount my other partitions?