*BSD News Article 32382


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!europa.eng.gtefsd.com!news.umbc.edu!haven.umd.edu!ames!purdue!mozo.cc.purdue.edu!staff.cc.purdue.edu!bj
From: bj@staff.cc.purdue.edu (Ben Jackson)
Subject: accessing big-endian BSD4.2 filesystems under FreeBSD
Sender: news@mozo.cc.purdue.edu (USENET News)
Message-ID: <CsGoKB.sFI@mozo.cc.purdue.edu>
Date: Tue, 5 Jul 1994 09:48:11 GMT
Organization: Purdue University
Lines: 17

I've been trying to mount a Sun CDROM that has a UNIX filesystem on
it.  At first I thought my `Bogus superblock' problems were related to
the fabricated disklabel created by the SCSI cd driver, but after
examining the superblock more carefully (dd if=/dev/cd0d bs=8k skip=1
count=1 | hexdump), I've discovered that the magic number (and,
presumably, the rest of the information) is in big-endian format, and
FreeBSD doesn't do byteorder conversion on filesystem accesses.

Is there an existing solution to this problem?  The only thing I've
come up with is hacking ufs to make the `nboufs' (network byte order
ufs).  I really don't want to do that.  :-)  For this particular
purpose, I'd even be happy with a user-level program which let
me copy files out of the CD's directory heirarchy.

Thanks,
--
Ben Jackson, bj@cs.purdue.edu