On 14-11-11 01:23 PM, Dave Anderson wrote:
My apologies for what seems to be a rather simple and not really OpenBSD
specific question, but searching hasn't found any good answers.
I've got an old PC running i386 OpenBSD which is dying; the disk seems
to be good, but I need to replace the rest of the hardware. Usually I'd
just move the disk to the new system, but the old system is EIDE and the
new one is SATA -- so I need to copy the old disk (which I can put in an
external enclosure and connect to the new system via USB) to the new one
(which is a different size and probably a different geometry, so the new
and old partitions probably won't be exactly the same sizes).
It's clearly possible to boot the new system from an install CD (or, if
necessary, a USB stick with a full install on it) then fdisk and
disklabel the new disk and newfs / dump|restore the partitions one by
one, followed up by installboot, editing the duids in /etc/fstab, and
fixing up /etc/hostname.*, but I'm hoping that there's a better way.
Thanks in advance for any suggestions (or confirmations that there is no
better way).
I think you've already figured out the optimal way to do it... I would
do a fresh minimal install on the target disk, then restore(8) over top
of it, to avoid having to fiddle too much with installboot(8) etc.
An easier way might be to just use an IDE-to-SATA adapter for now and
move the disk as-is into the new system.
I've used these
(http://www.startech.com/HDD/Adapters/Bi-Directional-SATA-IDE-Adapter-Converter~PATA2SATA3)
in production before, Startech has a few others with more convenient
form factors (click on "Related Products").
--
-Adam Thompson
athom...@athompso.net