Is it possible to mount OpenBSD FFS partitions in FreeBSD?

Seth Brundle cdanza335 at googlemail.com
Mon Dec 31 03:44:36 PST 2007


2007/12/31, Nikola Lečić <nikola.lecic at anthesphoria.net>:
>
> On Mon, 31 Dec 2007 12:16:50 +0100
> "Seth Brundle" <cdanza335 at googlemail.com> wrote:
>
> > 2007/12/31, Nikola Lečić <nikola.lecic at anthesphoria.net>:
> > >
> > > On Mon, 31 Dec 2007 11:58:17 +0100
> > > "Seth Brundle" <cdanza335 at googlemail.com> wrote:
> > >
> > > [...]
> > > > # mount /dev/ad8s1a /mnt/
> > > > mount: /dev/ad8s1a : No such file or directory
> > > >
> > > > (I thought that the first -- and only -- partition on OpenBSD
> > > > would show up as 'slice 1' on FreeBSD.)
> > >
> > > (The disk area occupied by OpenBSD is a slice, whilst BSD-style
> > > chunk(s) within are partitions.)
> > >
> > > Is it possible to mount it just with 'mount /dev/ad8s1 /mnt'?
> >
> >
> >
> > Thanks for your fast reply;
> >
> > # mount /dev/ad8s1 /mnt
> > mount: /dev/ad8s1 : No such file or directory
> >
> > Also tried this before, doesn't work. The main problem for me is that
> > I don't know the way the OpenBSD disc appears to FreeBSD,
> > layout-wise. A ``disklabel ad8'' to have a peek also doesn't work:
>
> Ah sorry, I misunderstood you; the ad8 is dedicated to OpenBSD in its
> entirety?


Yes. Just a big fat place to put files.

In that case I'm pretty sure that, in standard cases, it
> should be possible to mounted it as /dev/ad8. (Yes, you wrote that it's
> seen as wd2a from OpenBSD.)
>
> (Btw, what does 'ls /dev/ad*' show?)


What it should ;)

 # ls /dev/ad*
/dev/ad4        /dev/ad4s1b     /dev/ad4s1e     /dev/ad6
/dev/ad4s1      /dev/ad4s1c     /dev/ad4s1f     /dev/ad6s4
/dev/ad4s1a     /dev/ad4s1d     /dev/ad4s1g     /dev/ad8

> # disklabel ad8
> > disklabel: /dev/ad8: no valid label found
>
> This is expected, BSD labels are not compatible among BSDs:
>
>      The various BSDs all use slightly different versions of BSD labels
>      and are not generally compatible.
>
> (from bsdlabel(8) manpage).


Thanks, didn't check it yet.

That's why you can't (by default) see BSD labels created by another
> BSD. However, I know that first partition of a NetBSD slice/disk can be
> mounted from FreeBSD _without_ partition-letter addition (e.g. ad8 will
> represent what you would expect to be ad8a -- it the disk is
> "dedicated" -- and ad8s1 will represent what you would expect to be
> ad8s1a -- if the disk is sliced), but maybe OpenBSD does something
> differently.


Obviously, yes. AFAIR they have their own identifier, too (read: There's a
NetBSD identifier as well as an OpenBSD one)...

Okay, I think I'll set up another machine running OpenBSD, migrate my
workstation to FreeBSD and copy the stuff over the net... (Most convenient
way, AFAICS.)

Thanks, Nikola! :)

--
> Nikola Lečić :: Никола Лечић
>


More information about the freebsd-questions mailing list