From owner-freebsd-questions@freebsd.org Wed Sep 30 11:35:54 2020 Return-Path: Delivered-To: freebsd-questions@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 EB3A64251BC for ; Wed, 30 Sep 2020 11:35:54 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C1Z2K5HbYz488d for ; Wed, 30 Sep 2020 11:35:53 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.8.32.68]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1MQ5jC-1k1XIl2M4G-00M6Y3; Wed, 30 Sep 2020 13:35:51 +0200 Date: Wed, 30 Sep 2020 13:35:50 +0200 From: Polytropon To: Christoph Kukulies Cc: freebsd-questions@freebsd.org Subject: Re: concluding from dd raw dump size to disk mfgr Message-Id: <20200930133550.24c382b6.freebsd@edvax.de> In-Reply-To: <876b79ff-b781-fede-a4de-cb58becd557c@kukulies.org> References: <876b79ff-b781-fede-a4de-cb58becd557c@kukulies.org> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:wIT7cULduizSDd8JOPTfu6NjIoXF69EeU5ibYsIiAt8uka2x5ME KUgJ/2gUOAAJDuDxIcpotKyP7k2WrPN0Yc9qB2rJLgo1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ue-Id: 4C1Z2K5HbYz488d X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.74) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [2.33 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[178.8.32.68:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.30)[-0.303]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.29)[0.290]; NEURAL_HAM_LONG(-0.06)[-0.059]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[217.72.192.74:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.72.192.74:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Sep 2020 11:35:55 -0000 On Wed, 30 Sep 2020 09:40:00 +0200, Christoph Kukulies wrote: > I made a dd dump of a raw disk device the other day. The size of the=20 > dump is exactly >=20 > 500107862016 bytes in size, corresponding to 997773168=A0 sectors (512byt= es). >=20 > I would like to dump this file back to a physical device. Best would be=20 > the one which fits exactly that size. Unfortunately I presently don't=20 > know what drive mfgr./type this corresponds to. Is there a way to find ou= t? A convenient way is to use the following command: # diskinfo -v Also check the corresponding entry in the "dmesg" output. Note that AF devices might prefer a sector size of 4kB (4039 instead of 512 bytes). When you transfer data back using dd, you can often choose a better suited block size, usually in the range of several MBs. :-) --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...