Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2015 20:13:50 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        freebsd-fs@FreeBSD.org, Dmitry Morozovsky <marck@rinet.ru>
Subject:   Re: mounting sun UFS file system under FreeBSD stable/10
Message-ID:  <20150228181350.GT2379@kib.kiev.ua>
In-Reply-To: <54F1FF4A.6040905@yandex.ru>
References:  <alpine.BSF.2.00.1502282012490.43738@woozle.rinet.ru> <54F1FF4A.6040905@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150228181350.GT2379>