concluding from dd raw dump size to disk mfgr

Polytropon freebsd at
Wed Sep 30 11:35:55 UTC 2020

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 
> dump is exactly
> 500107862016 bytes in size, corresponding to 997773168  sectors (512bytes).
> I would like to dump this file back to a physical device. Best would be 
> the one which fits exactly that size. Unfortunately I presently don't 
> know what drive mfgr./type this corresponds to. Is there a way to find out?

A convenient way is to use the following command:

	# diskinfo -v <device>

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. :-)

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list