I can't believe i'm the only person who wants to do this! Am I in the
wrong group?
Allen
Quote:> I did a "newfs /dev/rfd0a floppy" on my SUN workstation to create a fs
> on my 3.5 HDD floppy. I mounted this fs successfully, and copied
> to/from it ok. When I take the floppy home to use on my FreeBSD and
> try to mount, I get the following error:
> mount failed : bogus super-block.
> This is no verbatim, but close enough. This is the advice I got from
> a co-worker:
> "Your problem with the newfs command is probably from an item in the
> superblock called the "magic number". The superblocks have undergone
> so many format changes from vendor to vendor that not all superblocks
> can be read by a particular OS. To prevent corruption from an
> "incorrectly" formatted superblock from another vendor, most vendors
> come up with a "unique" magic number for their superblock. You can
> think of the "magic number" as a serial number. If the serial number
> doesn't match, then we can't read this format.
> This is only a guess, but your simptoms match my experience. I was
> not suprised you would have problems doing this. You may be able to
> write a superblock conversion routine though. The header file for
> describing a superblock is contained in the /usr/include
> subdirectories. If the required data is compatible you could simply
> translate the Sun superblock format to a BSD superblock format and
> overwrite the Sun superblock. Then the disk could be mountable on a
> BSD system. (Some times all this translation requires is to change
> the magic number.)"
> The question is... how do I mount a SUN newfs'd file system on a BSD
> box (and vice versa)?
> Thanks,
> Allen