Date: Tue, 21 Sep 2004 11:06:06 -0400 (EDT) From: Jerry McAllister <jerrymc@clunix.cl.msu.edu> To: jerrymc@clunix.cl.msu.edu (Jerry McAllister) Cc: freebsd-questions@freebsd.org Subject: Re: SCSI Shock Advice ! Message-ID: <200409211506.i8LF67c05158@clunix.cl.msu.edu> In-Reply-To: <200409211446.i8LEkER05056@clunix.cl.msu.edu> from "Jerry McAllister" at Sep 21, 2004 10:46:12 AM
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409211506.i8LF67c05158>