Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2015 20:19:57 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        freebsd-fs@FreeBSD.org
Subject:   mounting sun UFS file system under FreeBSD stable/10
Message-ID:  <alpine.BSF.2.00.1502282012490.43738@woozle.rinet.ru>

next in thread | raw e-mail | index | archive | help
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  |................|
*
000001a0  00 00 00 00 27 29 37 09  00 00 00 00 00 00 00 01  |....')7.........|
000001b0  37 07 00 02 00 18 01 a8  00 00 00 00 00 00 00 00  |7...............|
000001c0  01 38 90 c0 00 00 07 dd  00 40 20 c0 00 00 00 00  |.8.......@ .....|
000001d0  08 8b 56 40 00 00 09 7a  01 38 90 c0 00 00 11 57  |..V@...z.8.....W|
000001e0  01 38 90 c0 00 00 19 34  01 38 90 c0 00 00 21 11  |.8.....4.8....!.|
000001f0  01 f4 22 c0 00 00 2d a6  01 74 cf c0 da be cc 21  |.."...-..t.....!|
00000200

however, trying to mount or fsck the image fail:

root@moose:/ar/backup/komarov# mdconfig -l -v
md0     swap      128M
md1     vnode      68G  /ar/backup/komarov/sun72g.img
root@moose:/ar/backup/komarov# fsck_ufs -n /dev/md1
** /dev/md1 (NO WRITE)
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ufs: /dev/md1: can't read disk label
root@moose:/ar/backup/komarov# mount -r /dev/md1 /mnt
mount: /dev/md1: Invalid argument

Any hints? Thanks!



-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



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