Discussion:
How to move netbsd to another drive?
(too old to reply)
Никита Степанов
2020-05-12 09:22:23 UTC
Permalink
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Thomas Mueller
2020-05-15 09:38:59 UTC
Permalink
man dd
That doesn't always work. I got an unmountable, unreadable file system when I dd'ed from a disk effectively with 512-byte sectors to a disk with 4096-byte sectors not pretending to be 512 bytes.

The latter disk was external, Micronet Fantom, but I think the same applies to external USB hard drives of other brands such as Seagate and Western Digital.

Tom


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Michael van Elst
2020-05-15 17:14:40 UTC
Permalink
Post by Thomas Mueller
man dd
That doesn't always work. I got an unmountable, unreadable file system when I dd'ed from a disk effectively with 512-byte sectors to a disk with 4096-byte sectors not pretending to be 512 bytes.
True.

First the filesystem cannot handle fragments smaller than a sector.

And second, if fragments are at least sector size you still need to
fix up the superblock, which you can do with tunefs -S,
--
--
Michael van Elst
Internet: ***@serpens.de
"A potential Snark may lurk in every tree."

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...