Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 1999 16:49:23 -0400 (EDT)
From:      Boris Gelfand <bg@cse.msu.edu>
To:        freebsd-questions@freebsd.org
Subject:   cloning SCSI disk to IDE disk
Message-ID:  <199909282049.QAA15017@dog.cse.msu.edu>

next in thread | raw e-mail | index | archive | help
Hello,

Under 3.2-R I had a tough time migrating my SCSI boot disk
to an IDE drive.  Since this was time-critical, I wound up
re-installing and merging my mods to the system, but I would
like to know what I did wrong.

My SCSI disk had with a single slice.  Within that slice was a
"/" partition where everything went as well as a swap partition.

a:  3684352        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 229*)
b:   524615  3684352      swap                        # (Cyl.  229*- 261*)
c:  4208967        0    unused        0     0         # (Cyl.    0 - 261*)

I added IDE support into my kernel, detected the IDE disk fine.
I then disklabeled the IDE disk to a single 'a' 4.2BSD part
and a 'b' swap part.  (Pretty much same as above.)  To install
the boot blocks, disklabel -B seemed to work.

I then mounted the IDE disk and did something like
     find / -depth | cpio -pd /mnt
to copy everything over.  I did an rm -rf in /mnt/proc to clean
out the new /proc, and /mnt/dev looked perfectly fine.

Looked OK, but when I booted the new disk, I got an "invalid
format" error right away on the (first-stage?) boot-loader.  I
got to the (second-stage?) boot-loader which started loading the
kernel.  After the kernel loaded, an error from /sbin/init which
popped me right into /stand/sysinstall!

I also tried the dos-fdisk-like partitioner and labeler from
/stand/sysinstall with no luck, pretty much the same exact problem.

Thoughts: perhaps cpio was wrong to use (works under Solaris and
Netbsd on sparcs) -- searching through archives suggests maybe
dump/restore would have worked?  Does disklabel -B work properly?
Could it be a geom problem on the new disk even if it successfully
finds the kernel?

Thanks and kindest regards,

Boris
bg@cse.msu.edu


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909282049.QAA15017>