Subject: Re: Mount FreeBSD under NetBSD?
To: Peter B <pb@ludd.luth.se>
From: Luke Mewburn <lukem@wasabisystems.com>
List: port-sparc
Date: 06/13/2002 15:23:59
On Thu, Jun 13, 2002 at 07:09:40AM +0200, Peter B wrote:
| Luke Mewburn wrote:
| >On Thu, Jun 13, 2002 at 06:46:53AM +0200, Peter B wrote:
| > |
| > | Is there anyway to mount a freebsd ufs (normal) filesystem under
| > | NetBSD/sparc..?
| >
| >FreeBSD/sparc or FreeBSD/intel ?
| >
| >The former should "Just Work" once you add the appropriate offsets
| >into a NetBSD disklabel.
|
| What's the formula for calculating those offsets..?
| And then there's the issue of "PC type partitions". (/dev/da0s1 s2 s3 s4)
They're physical sectors from the start of the disk on a sparc.
The NetBSD/i386 tool `mbrlabel' might help here.
| >The latter requires a kernel compiled with "FFS_EI" option to be
| >able to mount it (i386 is litte endian, sparc is big endian).
|
| So NetBSD-152/sparc (sun4c) would with a disklabel command + kernel
| recompiled with FFS_EI option be able to mount a FreeBSD4.5/i386 slice ..?
Should do. There were a bunch of ffs fixes pulled up to the
NetBSD-1-5 branch a while ago that might make that particular
functionality (compatibility with FreeBSD) more stable, but I
can't recall if that was before or after NetBSD 1.5.2 was released.
You could always try a NetBSD 1.6 beta release for the sparc available at:
ftp://releng.netbsd.org/pub/NetBSD-daily/200206110000/sparc/
(there is a minor issue with the miniroot install with that which
should be fixed when the 200206130000 release is built tomorrow).
| Btw, is 'mt status' supposed to return fileposition 0 at all times?, that
| feature works in freebsd..
It's been improved in a more recent release that NetBSD 1.5.2.
1.6 BETAs should be much better.
Luke.
--
Luke Mewburn <lukem@wasabisystems.com> http://www.wasabisystems.com
Luke Mewburn <lukem@netbsd.org> http://www.netbsd.org
Wasabi Systems - NetBSD hackers for hire
NetBSD - the world's most portable UNIX-like operating system