From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 01:04:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D1A4106566B for ; Thu, 5 Aug 2010 01:04:09 +0000 (UTC) (envelope-from npratt@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 981B58FC0A for ; Thu, 5 Aug 2010 01:04:08 +0000 (UTC) Received: by wwa36 with SMTP id 36so6008233wwa.31 for ; Wed, 04 Aug 2010 18:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=2mieBudWZJS46L3HiVaoJBOcqM3FULJ4Zp0Bj9XnlCk=; b=kBGwogPCs3x3DbaCotu+moM5NEE2X6WDUl+1sl3HWZOkVbz9T8MYQtDuAbHvtmDaRv 7JtAmmlS5Xu0HzQE/6IRUBuGBENcmEUu5wfwZZqLL9xs5M2tYENSp991emMg7XWIji5S jhXjt+TMj/ruRoLxVgdZbY+WFXOKDkD2PtRGQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=srIebJ+wm+HbmUwXr+fAkva3pducmGhvqDgAJyLzLnoAWdj76Pt75OvUm9+pLbzEP/ p6G0diaJCHzlHYFGi12TERPV5tFWo3FzFBW9Nj6zWmb8orslbe8fLuyWdOkjRuGIv8Zu LBzddKeswkGrhuK9ZXzD5fg3X+xxJY0uH5dys= MIME-Version: 1.0 Received: by 10.216.2.129 with SMTP id 1mr2800823wef.40.1280970246843; Wed, 04 Aug 2010 18:04:06 -0700 (PDT) Received: by 10.216.50.9 with HTTP; Wed, 4 Aug 2010 18:04:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Aug 2010 18:04:06 -0700 Message-ID: From: Noah Pratt To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: mounting UFS CD-ROMs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2010 01:04:09 -0000 On Tue, Aug 3, 2010 at 8:44 PM, Michael Powell wro= te: > Noah Pratt wrote: > >> Hi, >> >> I have a whole bunch of UFS CD-ROMs, but I'm unable to mount them on >> my FreeBSD 8 system. >> I thought it would be possible. From the FAQ: >> http://www.freebsd.org/doc/en/books/faq/disks.html >> >> =A0 =A0 UFS CD-ROMs can be mounted directly on FreeBSD. Mounting disk >> partitions from Digital UNIX and other systems that support UFS may be >> more complex, depending on the details of the disk partitioning for >> the operating system in question. >> >> >> I tried the direct route: >> >> 6930p# file -s /dev/acd0t01 >> /dev/acd0: Unix Fast File system [v1] (big-endian), last mounted on > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 ^^^^^^^^^^ > [snip] >> >> 6930p# uname -a >> FreeBSD 6930p.domain.com 8.0-STABLE FreeBSD 8.0-STABLE #1: Mon May 17 >> 01:26:14 PDT 2010 >> root@6930p.domain.com:/usr/obj/usr/src/sys/GENERIC =A0amd64 >> >> >> Am I missing something that ought to be obvious? [probable] >> Is it no longer possible to mount UFS filesystems? [unlikely ;-) ] >> Is there something specific about *this* UFS filesystem that prevents >> it from working? >> > > I suspect maybe the disk was written using Solaris on SPARC, which is big= - > endian. Most PC architectures are little-endian. > > -Mike Yes, the CDs were created in Solaris on SPARC. (I think it was a Sparc 10..= .) And yes, my FreeBSD system is an Intel Core2Duo. In Linux, copying the disc and mounting the disc image via loopback worked great: ubuntu# cat /dev/cdrom > cd-image ubuntu# mount -t ufs -o ro,loop cd-image /mnt It looks like NetBSD has a kernel build option FFS_EI, to enable fsck_ffs -B to convert the byte order. (I don't have a NetBSD system to test though.) I even found a Windows program called R-Studio ( http://www.r-tt.com/ ) that was able to recover data from these discs. Can the filesystem's endianness be converted in FreeBSD? Thanks a lot! -Noah