From owner-freebsd-fs@FreeBSD.ORG Sat Feb 28 18:14:00 2015 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ACAA273B for ; Sat, 28 Feb 2015 18:14:00 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1DB586E9 for ; Sat, 28 Feb 2015 18:13:59 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t1SIDp39071624 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Feb 2015 20:13:51 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t1SIDp39071624 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t1SIDobl071623; Sat, 28 Feb 2015 20:13:50 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 28 Feb 2015 20:13:50 +0200 From: Konstantin Belousov To: "Andrey V. Elsukov" Subject: Re: mounting sun UFS file system under FreeBSD stable/10 Message-ID: <20150228181350.GT2379@kib.kiev.ua> References: <54F1FF4A.6040905@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54F1FF4A.6040905@yandex.ru> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: freebsd-fs@FreeBSD.org, Dmitry Morozovsky X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Feb 2015 18:14:00 -0000 On Sat, Feb 28, 2015 at 08:47:54PM +0300, Andrey V. Elsukov wrote: > On 28.02.2015 20:19, Dmitry Morozovsky wrote: > > Dear colleagues, > > > > I have (from one of my friends) block copy of dead disk apparently used at old > > Sun Solaris Server: > > > > root@moose:/ar/backup/komarov# file -s sun72g.img > > sun72g.img: Unix Fast File system [v1] (big-endian), last mounted on /, last > > written at Sun Jan 30 15:51:07 2011, clean flag 253, number of blocks 10242144, > > number of data blocks 10086988, number of cylinder groups 202, block size 8192, > > fragment size 1024, minimum percentage of free blocks 1, rotational delay 0ms, > > disk rotational speed 167rps, TIME optimization > > root@moose:/ar/backup/komarov# dd if=sun72g.img count=1 | hd > > 1+0 records in > > 1+0 records out > > 512 bytes transferred in 0.000021 secs (24403223 bytes/sec) > > 00000000 53 55 4e 37 32 47 20 63 79 6c 20 31 34 30 38 37 |SUN72G cyl 14087| > > 00000010 20 61 6c 74 20 32 20 68 64 20 32 34 20 73 65 63 | alt 2 hd 24 sec| > > 00000020 20 34 32 34 00 00 00 00 00 00 00 00 00 00 00 00 | 424............| > > 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > > * > > 00000080 00 00 00 01 00 00 00 00 00 00 00 00 00 08 00 02 |................| > > 00000090 00 00 00 03 00 01 00 05 00 00 00 00 00 00 00 04 |................| > > 000000a0 00 00 00 07 00 00 00 08 00 00 00 00 00 00 00 00 |................| > > 000000b0 00 00 00 00 00 00 00 00 00 00 00 00 60 0d de ee |............`...| > > 000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > > It looks like VTOC disklabel, try to kldload geom_part_vtoc8. > It still cannot help, note that UFS image is big-endian, while the host is most likely x86, which means little-endian. Our UFS does not perform data normalization. Also, I believe that Sun did some changes to the filesystem layout, so it is not quite likely that it would work even on right endianess machine. Best action is to use Solaris live CD to tar the volume.