Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

mount: unknown filesystem type 'ufs'

810 views
Skip to first unread message

bob prohaska

unread,
Jun 2, 2017, 9:38:03 PM6/2/17
to
How does one go about mounting and examining a freebsd root
filesystem on a raspberry pi 3 running Linux raspberrypi 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/Linux ?

From the man page it looks as if both mount and fsck should recognize
type ufs filesystems, but trying to look at a freebsd microSD card
on a Raspbian system produces

bob@raspberrypi:~/com $ sudo mount -t ufs -o rw /dev/sdc2 /mnt
mount: unknown filesystem type 'ufs'

When fsck is invoked with
bob@raspberrypi:~/com $ fsck -t ufs /dev/sdc2
the reply is
fsck from util-linux 2.25.2
which suggested that util-linux needed to be installed. However, it's
already up to date.

Thanks for reading and any guidance!

bob prohaska


The Natural Philosopher

unread,
Jun 2, 2017, 10:55:41 PM6/2/17
to
I think you need to recompile the kernel and add a module for UFS support.


--
If you tell a lie big enough and keep repeating it, people will
eventually come to believe it. The lie can be maintained only for such
time as the State can shield the people from the political, economic
and/or military consequences of the lie. It thus becomes vitally
important for the State to use all of its powers to repress dissent, for
the truth is the mortal enemy of the lie, and thus by extension, the
truth is the greatest enemy of the State.

Joseph Goebbels



Theo

unread,
Jun 3, 2017, 7:52:53 AM6/3/17
to
bob prohaska <b...@www.zefox.net> wrote:
> How does one go about mounting and examining a freebsd root

You need to use fuse-ufs2. Here's how to do it:
https://imil.net/blog/2014/10/31/mounting-ufs2-readwrite-on-linux/
though the github repo is now:
https://github.com/mkatiyar/fuse-ufs2

Note that UFS is not a standardised format, so there are differences between
different UNIX systems' implementations.

Theo

Rob Morley

unread,
Jun 3, 2017, 10:23:18 AM6/3/17
to
On Sat, 3 Jun 2017 03:55:40 +0100
The Natural Philosopher <t...@invalid.invalid> wrote:

> I think you need to recompile the kernel and add a module for UFS
> support.
>
Modules were introduced so you don't need to recompile the kernel.

The Natural Philosopher

unread,
Jun 3, 2017, 12:58:17 PM6/3/17
to
In general yes, but what I read online indicated that the module alone
would not work: As to why, or the accuracy of that statement, I leave to
someone more interested than I to discover.

I was just curious enough to spend 10 minutes looking up to see what te
general received wisdom was, and it seemed to be compile kernel with
support AND add the module as well.

YMMV


--
No Apple devices were knowingly used in the preparation of this post.

The Natural Philosopher

unread,
Jun 3, 2017, 1:12:06 PM6/3/17
to
More research reveals

http://gparted-forum.surf4.info/viewtopic.php?id=17517

which isn't encouraging.


Some people seem to have found a package that works and have mounted UFS
readonly.

http://unsolicitedbutoffered.blogspot.co.uk/2016/12/quick-fix-accessing-ufs-drives-using.html

Not found anyone who has mounted it with full access rights

--
Of what good are dead warriors? … Warriors are those who desire battle
more than peace. Those who seek battle despite peace. Those who thump
their spears on the ground and talk of honor. Those who leap high the
battle dance and dream of glory … The good of dead warriors, Mother, is
that they are dead.
Sheri S Tepper: The Awakeners.

The Natural Philosopher

unread,
Jun 3, 2017, 1:37:13 PM6/3/17
to
On 03/06/17 18:12, The Natural Philosopher wrote:
> On 03/06/17 17:58, The Natural Philosopher wrote:
>> On 03/06/17 15:23, Rob Morley wrote:
>>> On Sat, 3 Jun 2017 03:55:40 +0100
>>> The Natural Philosopher <t...@invalid.invalid> wrote:
>>>
>>>> I think you need to recompile the kernel and add a module for UFS
>>>> support.
>>>>
>>> Modules were introduced so you don't need to recompile the kernel.
>>>
>> In general yes, but what I read online indicated that the module alone
>> would not work: As to why, or the accuracy of that statement, I leave
>> to someone more interested than I to discover.
>>
>> I was just curious enough to spend 10 minutes looking up to see what
>> te general received wisdom was, and it seemed to be compile kernel
>> with support AND add the module as well.
>>
>> YMMV
>>
>>
> More research reveals
>
> http://gparted-forum.surf4.info/viewtopic.php?id=17517
>
> which isn't encouraging.
>
>
> Some people seem to have found a package that works and have mounted UFS
> readonly.
>
> http://unsolicitedbutoffered.blogspot.co.uk/2016/12/quick-fix-accessing-ufs-drives-using.html
>
>
> Not found anyone who has mounted it with full access rights
>
Oh this guy has, although it crashes

https://imil.net/blog/2014/10/31/mounting-ufs2-readwrite-on-linux/

elsewhere it seems that version 2-2.2 kernels needed recompiling for UFS
support.

This may be helpful

https://wiki.netbsd.org/tutorials/how_to_mount_ffs_partition_under_linux/

It assumes you have the support.

Unfortunately in my linux here (Mint 17) there is no sign of any UFS
modules on the machine or packages like that in the repository, which
suggests that debian dropped the whole thing upstream

In short, its one of those things that an enthusiast got sorta half
working and then gave up on, and its no longer supported.

Th recieved wisdom is to set up a small machine with BSD and mount the
drive in that, and use NFS to access it from the pi :-)

bob prohaska

unread,
Jun 3, 2017, 9:53:30 PM6/3/17
to
Theo <theom...@chiark.greenend.org.uk> wrote:
> https://github.com/mkatiyar/fuse-ufs2
>
> Note that UFS is not a standardised format, so there are differences between
> different UNIX systems' implementations.
>
Now I appreciate the depths of the difficulty.........

Thanks to all who replied! I did build a new kernel using
menuconfig. Didn't try the "dangerous" write option. Since the ufs
partion had crashed it was dirty, I couldn't read or fsck it so it
had to go on a freebsd box anyway.

bob prohaska

The Natural Philosopher

unread,
Jun 4, 2017, 5:03:44 AM6/4/17
to
The time I spent researching the net suggested that might be your only hope.


--
“it should be clear by now to everyone that activist environmentalism
(or environmental activism) is becoming a general ideology about humans,
about their freedom, about the relationship between the individual and
the state, and about the manipulation of people under the guise of a
'noble' idea. It is not an honest pursuit of 'sustainable development,'
a matter of elementary environmental protection, or a search for
rational mechanisms designed to achieve a healthy environment. Yet
things do occur that make you shake your head and remind yourself that
you live neither in Joseph Stalin’s Communist era, nor in the Orwellian
utopia of 1984.”

Vaclav Klaus

Big Bad Bob

unread,
Jul 8, 2017, 4:15:29 PM7/8/17
to
strange. 'dirty' shouldn't prevent reading it. normally that's caused
by not doing a complete shutdown, and doesn't actually affect file
system integrity. Well, it *could* and apparently the file system
driver is being "paranoid".

menuconfig is painful so kudos to going through the process. I usually
manually edit the files and use 'oldconfig' for kernel mods. but it's
been a while since I needed to do that [used to do a lot with
customizing Linux on wifi access points back in the day].

and a kernel build on a Pi would be equally painful...

[hopefully you have a really good cross-compile environment set up]
0 new messages