On Sun, 2005-03-27 at 14:11 -0500, der Mouse wrote:
Maybe support
under Linux is a little broken (I know already that
ufs/sun makes assumptions about the endian-ness of the filesystem in
some places)
Yes, if the filesystem really is a SunOS 4.* filesystem, it will be
big-endian. Your Linux FFS support has to be prepared for big-endian
data structures on disk, which if you're on a little-endian
architecture like i386 it may not be.
Actually I used the Sun UFS support under Linux to mount one of the
partitions from my Tek XD88 (once I'd manage to reverse-engineer the
partition format) - that's despite the 88k CPU being big endian (I
assume!) whilst my desktop PC will be little endian. The only thing that
screwed up under Linux were the file timestamps - everything else seemed
to be OK. I assume that the spec for FFS must dictate byte-order in most
places where it's necessary...
That presumably-root partition is only some 46
megabytes. If you can
get a dd image of it to me (offlist!), I can poke at it; I've written a
bunch of tools for working with such things.
I've had a couple of offers along similar lines - I really need to check
there's no sensitive data on the machine first, though :-( *If* I can
get the 4/330 board with the broken console port itself running, then at
least I can check the data and then upload the root partition image so
people can mess with it.
(FWIW Linux doesn't support the various UFS-type systems in anything but
read-only mode; my main aim was to get a raw image of the Sun's drive
backed up - which I've done - I'm just trying to mount it out of
curiousity to see if it can be done!)
cheers
Jules