*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
Code:
[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?
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>
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.
Hi
I noticed this thread and had another question,
Is UFS/UFS2 same as the Berkeley Fast Filesystem ?
If not, is Berkeley Fast Filesystem supported by Linux ?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.