From owner-freebsd-questions Tue Sep 28 13:49:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from sargasso.cse.msu.edu (sargasso.cse.msu.edu [35.9.20.14]) by hub.freebsd.org (Postfix) with ESMTP id F1C4614FF6 for ; Tue, 28 Sep 1999 13:49:29 -0700 (PDT) (envelope-from bg@cse.msu.edu) Received: from dog.cse.msu.edu (dog.cse.msu.edu [35.9.20.45]) by sargasso.cse.msu.edu (8.8.8/8.8.8) with ESMTP id QAA21653 for ; Tue, 28 Sep 1999 16:49:23 -0400 (EDT) From: Boris Gelfand Received: (from bg@localhost) by dog.cse.msu.edu (8.9.2/8.8.8) id QAA15017 for freebsd-questions@freebsd.org; Tue, 28 Sep 1999 16:49:23 -0400 (EDT) Date: Tue, 28 Sep 1999 16:49:23 -0400 (EDT) Message-Id: <199909282049.QAA15017@dog.cse.msu.edu> To: freebsd-questions@freebsd.org Subject: cloning SCSI disk to IDE disk Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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