From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 15:06:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDBDD16A4CE for ; Tue, 21 Sep 2004 15:06:11 +0000 (GMT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4058C43D2F for ; Tue, 21 Sep 2004 15:06:11 +0000 (GMT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.7p1+Sun/8.11.7) id i8LF67c05158; Tue, 21 Sep 2004 11:06:07 -0400 (EDT) From: Jerry McAllister Message-Id: <200409211506.i8LF67c05158@clunix.cl.msu.edu> To: jerrymc@clunix.cl.msu.edu (Jerry McAllister) Date: Tue, 21 Sep 2004 11:06:06 -0400 (EDT) In-Reply-To: <200409211446.i8LEkER05056@clunix.cl.msu.edu> from "Jerry McAllister" at Sep 21, 2004 10:46:12 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: Graham Bentley cc: freebsd-questions@freebsd.org Subject: Re: SCSI Shock Advice ! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2004 15:06:12 -0000 > > Hi, > > > Thanks for replies, however I need advise > > on cloning the IDE to the SCSI disc. > > > > What is the best / safest way to do > > a disk clone in this case? > > Don't use any of the cloning utilities (not even dd) because you > are not trying to make an exact byte for byte clone, but rather > a functional copy. That is quite different. > > The best thing is to create the new file systems > eg slice (fdisk) partition (disklabel or bsdlabel in 5.xxx) > and build the file system (newfs) and then mount the new file > systems to a temporary mount mount and transfer each file system > separately by running dump and restore. > > Note: To make a bootable copy you will need to put in an MBR when > you do the fdisk to create the slice and a boot block when you do t > the disklabel/bsdlabel when you do the partitioning. Don't leave > those out. > > If you have room, you can run a dump to a file in spare space > somewhere and then restore from that file. If you don't have > the extra space, you can pipe a dump of the old fs to a restore > to the new one. Make sure you cd in to the new file system > before doing the restore whichever way you are doing it. > > This is covered pretty much in the man pages of dump and restore. > But, say your SCSI is da0 and you created one slice and did the > label/partitioning ok and newfs-ed all the partitions and now you > want to put the old root on the new disk. > > cd / > mkdir newroot > mount /dev/da0s1a /newroot > cd /newroot > dump 0af - / | restore rf - > > Do the similar for each of the file systems you want/need to move over. > That probably means all of them. By the way, I notice that in the FAQ on moving to a "huge disk" it uses the 'x' switch on the restore and I think it is more appropriate to use 'r'. So, 'restore rf -' as I indicate in my post instead of 'restore xf -' as in the faq. Actually, it might work either way, but I think 'r' is more correct. ////jerry > > When you are done, the only thing left to do, besides checking things > out to make sure they look good is to modify the new copy of /etc/fstab > so the devices to mount will now be da0s1.. instead of ad0s1.. > > You can also get rid of all the 'restoresymtable' files in each > new filesystem. Restore uses those to keep track of itself and they > are no longer needed once it has successfully completed. > > You should then be able to shuffle any disks and bios you need to > to make the SCSI disk the boot device and then boot and run. > > ////jerry > > > > > Thanks again > > > > Graham > > > > > > Custom PC North West > > Open Source Solutions > > http://www.cpcnw.co.uk > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >