From owner-freebsd-fs@FreeBSD.ORG Fri Dec 7 23:02:15 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C63F2C43 for ; Fri, 7 Dec 2012 23:02:15 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from slim.berklix.org (slim.berklix.org [94.185.90.68]) by mx1.freebsd.org (Postfix) with ESMTP id 42CB58FC0C for ; Fri, 7 Dec 2012 23:02:14 +0000 (UTC) Received: from mart.js.berklix.net (p5DCBDD8A.dip.t-dialin.net [93.203.221.138]) (authenticated bits=128) by slim.berklix.org (8.14.5/8.14.5) with ESMTP id qB7KXZTa063470; Fri, 7 Dec 2012 21:33:35 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id qB7KXWRr060983; Fri, 7 Dec 2012 21:33:32 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id qB7KXJJC082366; Fri, 7 Dec 2012 21:33:26 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201212072033.qB7KXJJC082366@fire.js.berklix.net> To: "Vladislav Prodan" Subject: Re: Freebsd fsck cannot find superblock From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Fri, 07 Dec 2012 17:25:14 +0200." <75249.1354893914.10573459057769119744@ffe17.ukr.net> Date: Fri, 07 Dec 2012 21:33:19 +0100 Sender: jhs@berklix.com Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 23:02:15 -0000 Hi, Reference: > From: "Vladislav Prodan" > Date: Fri, 07 Dec 2012 17:25:14 +0200 > Message-id: <75249.1354893914.10573459057769119744@ffe17.ukr.net> "Vladislav Prodan" wrote: > > There is an ancient system of FreeBSD 7.4. > And departed this life one partition (data). > > Screenshot is attached. > http://s017.radikal.ru/i412/1212/bd/e9a9bfd0a644.jpg > What will be thought how to save the slice? Hi, sorry, No time to look at jpg but... If your superblocks are shot (as mine were last week - half dead disk) here my notes of how I recovered all data: ------- cd /usr/ports/*/dd_rescue ; make install mount -t ufs /dev/da0s1 /mnt ; cd /mnt dd_rescue -l log -o bbfile -A -v /dev/ad0s1f image cat bbfile # 130 160 9785408 9785409 71591611 71784469 mdconfig -a -t vnode -f image (cd /usr/ports/sysutils/ffs2recov; make install) ffs2recov -s /dev/md0 superblock: 81920(byte), 160(block) superblock: 6160384(byte), 12032(block) superblock: 73351168(byte), 143264(block) superblock: 192774144(byte), 376512(block), \ cg: 192790528(byte), 376544(block), 1(nth), \ fs begin: 0(block), primary sb at: 128(block) superblock: 385466368(byte), 752864(block), \ cg: 385482752(byte), 752896(block), 2(nth), \ fs begin: 0(block), primary sb at: 128(block) superblock: 578158592(byte), 1129216(block), \ cg: 578174976(byte), 1129248(block), 3(nth), \ fs begin: 0(block), primary sb at: 128(block) superblock: 770850816(byte), 1505568(block), \ cg: 770867200(byte), 1505600(block), 4(nth), \ fs begin: 0(block), primary sb at: 128(block) superblock: 963543040(byte), 1881920(block), \ cg: 963559424(byte), 1881952(block), 5(nth), \ fs begin: 0(block), primary sb at: 128(block) superblock: 1156235264(byte), 2258272(block), \ cg: 1156251648(byte), 2258304(block), 6(nth), \ fs begin: 0(block), primary sb at: 128(block) superblock: 1348927488(byte), 2634624(block), \ cg: 1348943872(byte), 2634656(block), 7(nth), \ fs begin: 0(block), primary sb at: 128(block) ffs2recov -o 160 /dev/md0 # Failed, presumably cos of data corruption. echo The first few superblocks dont work, so I used first one showing cg: fsck_ffs -y -b 376512 /dev/md0 # Succeeded mdconfig -d -u 0 -------- Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with "> ". Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable.