Freebsd fsck cannot find superblock
Julian H. Stacey
jhs at berklix.com
Fri Dec 7 23:02:15 UTC 2012
Hi,
Reference:
> From: "Vladislav Prodan" <universite at ukr.net>
> Date: Fri, 07 Dec 2012 17:25:14 +0200
> Message-id: <75249.1354893914.10573459057769119744 at 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.
More information about the freebsd-fs
mailing list