*BSD News Article 40788


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!yarrina.connect.com.au!news.mira.net.au!news.netspace.net.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!ames!hookup!swrinde!howland.reston.ans.net!pipex!sunic!nic.tip.net!palantir.p.tvt.se!pp2.smc.south.telia.se!paul
From: paul@pp2.smc.south.telia.se (Paul Pries)
Subject: Re: can't mount a sunos4 cd disk using mcd0
Message-ID: <1995Jan12.183445.10711@palantir.p.tvt.se>
Sender: news@palantir.p.tvt.se (News account)
Organization: Swedish Telecom
X-Newsreader: Tin 1.1 PL4
References: <3eud5n$sbp@pdq.coe.montana.edu>
Date: Thu, 12 Jan 1995 18:34:45 GMT
Lines: 47

nate@bsd.coe.montana.edu (Nate Williams) writes:
: In article <3estq0$32t@asia.lm.com>,  <ka3ffy@telerama.lm.com> wrote:
: >hello,
: >
: >   i have some sun cd's for os 4 and greater. they are ufs format. i 
: >can't get them to mount. here is one of my tries. i run freebsd.
: >
: >mount -r -t ufs /dev/mcd0a /cdrom
: >
: >mount -r /dev/mcd0a /cdrom
: 
: The problem lies in the fact that the byte order is different from a Sun
: to a `n x86.  This means that everything looks backward to the FreeBSD
: FS.  And, the reason that byte order switching isn't done automatically
: is because of performance issues since every read/write would need to be
: checked for byte swapping.
: 
: Anyway, Thor posted about Pace Willison's FS code which did this, so if
: you can find it it might be a good place to start.
: 

Most Sun CD's I've got are in ISO-9660 format, and they mount just OK.
I have one mounted right now (the Solaris 1.1 CD):

(bambam) /home/paul 26 > sudo mount -r -t cd9660 /dev/cd0a /mnt
(bambam) /home/paul 27 > ls /mnt
_copyright*     avail_arches*   export/         patches/        sunupgrade/
(bambam) /home/paul 28 > 

If it is an UFS CD, then you got the byteswap problem. This has hit me too 
when I tried to mount a floppy newfs'ed on a Sun.

Paul.


: 
: Nate
: -- 
: nate@FreeBSD.org             |  FreeBSD core member and all around tech.
: nate@schizo.coe.montana.edu  |  weenie.
: work #: (406) 994-5980       |  Got lots of offers for work, now I need to
: home #: (406) 586-0579       |  decide which job to take. :)

--
Paul Pries
paul@pp2.smc.south.telia.se