From owner-freebsd-fs@freebsd.org Wed Oct 9 08:05:33 2019 Return-Path: Delivered-To: freebsd-fs@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 7DC95144E86 for ; Wed, 9 Oct 2019 08:05:33 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46p6GN5k9Mz45x9 for ; Wed, 9 Oct 2019 08:05:32 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x9985PXe056397 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 9 Oct 2019 11:05:28 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x9985PXe056397 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x9985PMQ056396; Wed, 9 Oct 2019 11:05:25 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 9 Oct 2019 11:05:25 +0300 From: Konstantin Belousov To: Bob Eager Cc: freebsd-fs@freebsd.org Subject: Re: Cannot mount an older disk Message-ID: <20191009080525.GJ44691@kib.kiev.ua> References: <12475952-c412-60a8-6ff7-7ebcd5c84ed8@aldan.algebra.com> <20191009083216.39e0c903@raksha.tavi.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191009083216.39e0c903@raksha.tavi.co.uk> User-Agent: Mutt/1.12.2 (2019-09-21) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46p6GN5k9Mz45x9 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all:c]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.00)[ip: (-2.68), ipnet: 2001:470::/32(-4.57), asn: 6939(-3.40), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Oct 2019 08:05:33 -0000 On Wed, Oct 09, 2019 at 08:32:16AM +0100, Bob Eager wrote: > On Tue, 8 Oct 2019 21:35:07 -0400 > "Mikhail T." wrote: > > > Hello! > > > > Going through older hard drives, I found one that still seems to work > > and was curious, what's on it. The OS -- 12.1-STABLE -- sees it find. > > The disklabel seems sane (except for the number of partitions): > > > > # /dev/ada1: > > 8 partitions: > > #          size     offset    fstype   [fsize bsize bps/cpg] > >   b:   12582912          0      swap > >   c: 1465149168          0    unused        0     0 # "raw" part, > > don't edit > >   d: 1452566256   12582912    4.2BSD     8192 65536 52352 > > > > and there are ada1, ada1b, and ada1d entries under /dev. So far so > > good. Unfortunately, both mount and fsck tell me the same blatant > > lie, that the device does not exist: > > > > # fsck -y /dev/ada1d > > Can't open /dev/ada1d: No such file or directory > > > > # mount /dev/ada1d /mnt > > mount: /dev/ada1d: No such file or directory > > > > Any suggestions? Thank you! Yours, > > Custom kernel? If so, try booting GENERIC. Might be that a support fs > option is missing. This is most likely a stray bsd label which appeared in the first (second ?) block of the disk due to some pecularities of old partitioning tools. Note the absence of the 'sN', i.e. MBR partition, between raw disk name and bsd slice. Some time at 9 or 10 lifetime priorities changed due to switch to gpart. I do not remember how this was worked around, most likely by zeroing second block of the disk. Of course, it is better to do the experiment on a copy if the original is suspected to contain a useful information.