From owner-freebsd-geom@freebsd.org Fri Dec 27 05:14:00 2019 Return-Path: Delivered-To: freebsd-geom@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6F8501E33E3; Fri, 27 Dec 2019 05:14:00 +0000 (UTC) (envelope-from mi+t@aldan.algebra.com) Received: from symbion.zaytman.com (symbion.zaytman.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47kZjz2727z3Fk4; Fri, 27 Dec 2019 05:13:55 +0000 (UTC) (envelope-from mi+t@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-100-1-228-105.nwrknj.fios.verizon.net [100.1.228.105]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id xBR5Dm40071691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Dec 2019 00:13:49 -0500 (EST) (envelope-from mi+t@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-100-1-228-105.nwrknj.fios.verizon.net [100.1.228.105] claimed to be narawntapu.narawntapu Received: from aldan.narawntapu (aldan [192.168.3.13]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id xBR5Deie056602; Fri, 27 Dec 2019 00:13:40 -0500 (EST) (envelope-from mi+t@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host aldan [192.168.3.13] claimed to be aldan.narawntapu From: "Mikhail T." Subject: Recovering an old ccd To: freebsd-fs , freebsd-geom@FreeBSD.org Message-ID: Date: Fri, 27 Dec 2019 00:13:40 -0500 MIME-Version: 1.0 Content-Language: en-US X-DCC-MGTINTERNET-Metrics: narawntapu 1170; bulk rep Body=2 Fuz1=2 Fuz2=2 rep=55% X-Spam-Status: No, score=-0.9 required=23.0 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE,RATWR8_MESSID autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on narawntapu.narawntapu X-Rspamd-Queue-Id: 47kZjz2727z3Fk4 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mi@aldan.algebra.com has no SPF policy when checking 64.112.176.10) smtp.mailfrom=mi@aldan.algebra.com X-Spamd-Result: default: False [-0.54 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.75)[-0.748,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; IP_SCORE(-0.01)[country: US(-0.05)]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; HAS_XAW(0.00)[]; DMARC_NA(0.00)[algebra.com]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.68)[-0.685,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:394548, ipnet:64.112.176.0/24, country:US]; TAGGED_FROM(0.00)[t]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[105.228.1.100.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10] Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2019 05:14:00 -0000 Hello! I need to recover some data from a ccd array I used years ago (early 21st century). I have the three disks hooked up and visible to a FreeBSD-11.x machine: * /dev/da0 (36Gb) * /dev/da1 (36Gb) * /dev/da2 (72Gb) o /dev/da2s1 I used dd(1) to dump them onto my current server and can turn the dumps into devices using md(4). But I cannot remember the ccd-configuration parameters I used back then -- nor even, whether all three were part of the array, or just the first two. The presence of the da2s1 suggests it, but trying to mount the /dev/da2s1 fails with EINVAL... file(1) identifies the first two of the images as "data", but the third is more interesting: DOS/MBR boot sector MS-MBR XP english at offset 0x12c "Invalid partition table" at offset 0x144 "Error loading operating system" at offset 0x163 "Missing operating system", disk signature 0x2f392f38; partition 1 : ID=0x7, active, start-CHS (0x0,1,1), end-CHS (0x3ff,254,63), startsector 63, 143363997 sectors Using the sysutils/scan_ffs on the images, I get the old labels listed: the "last mounted as" strings make perfect sense, but the offsets/sizes do not. For example: da2: X: 134217728 1088 4.2BSD 2048 16384 0 # /tmp/meow da1: X: 25165824 7341120 4.2BSD 2048 16384 0 # /var da0: X: 125381904 8389759 4.2BSD 2048 16384 0 # /mnt Any hints/suggestions? Thank you! Yours, -mi