Date: Wed, 09 May 2001 19:20:23 -0400 From: Walter Betancourt <walt@betan.com> To: Drew Tomlinson <drewt@writeme.com> Cc: freebsd-questions@freebsd.org Subject: RE: Use DD to make image copy of dual boot drive? Message-ID: <4.2.2.20010509191740.00bb5880@pop3.palace.net> In-Reply-To: <BA5D0CE1CBB2D411B6AA00A0CC3F02390AF9CB@ldcmsx01.lc.ca.gov> References: <4.2.2.20010509170845.00bbec70@pop3.palace.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Drew, Have not been successful in cloning to a larger drive, but here is info received from Damien, --On Wednesday, May 09, 2001 09:08:58 -0400 Walter Betancourt <walt@betan.com> wrote: Damien, Could you give me a procedure to use dump to clone a complete hard drive to a larger drive that would boot and work identical to the original > > The dumping part is easy. The more complicated part is properly partitioning and slicing the disk. I won't get into the details of that, the a good source of documentation on the process is in The Complete FreeBSD by Greg Lehey, and there is some information in the Handbook. Once you have sliced the disk the way you want it and newfs'd it (assuming ad0 is the old disk, and ad1 is the new disk), cloning a filesystem using dump can be done as follows: 1. Mount the new filesystem: # mount /dev/ad1s1a /mnt 2. Clone the filesystem using dump/restore: # cd /mnt # dump -0af - / | restore -rf - 3. Repeat for other filesystems as required: # mount /dev/ad1s1e /mnt # cd /mnt # dump -0af - /usr | restore -rf - etc... Good Luck. --- Damien Tougas Systems Administrator Carroll-Net, Inc. http://www.carroll.com Hope this helps At 03:59 PM 5/9/01 -0700, you wrote: >What is the preferred method of doing this with non-identical disks? For >example, I plan to move my system from it's current box to a different box. >I want to take the existing IDE drives and install them in the new box. >Then I want to create an exact duplicate of my current file system on a >larger SCSI drive that will be in the new box. Then I hope to remove the >IDE drives and run from the cloned SCSI drive. Is dd still the best method? > >Thanks, > >Drew > > > -----Original Message----- > > From: Walter Betancourt [mailto:walt@betan.com] > > Sent: Wednesday, May 09, 2001 2:14 PM > > To: PC Doc > > Cc: freebsd-questions@freebsd.org > > Subject: Re: Use DD to make image copy of dual boot drive? > > > > > > Having been told that dd can make a bootable identical copy > > if both drives have > > > > the same geometry, > > > > I did sucessfully dd if=/dev/ad0 of=/dev/fd1 with 2 WD > > 10.2 GB drives > > (same model) > > > > setup as master and slave. > > > > 12 hours later I had an identical system running with the > > cloned hard drive. > > > > > > > > At 01:54 PM 5/9/01 -0700, you wrote: > > >Hi, > > > > > >I have what's probably a dumb question, so please forgive my > > ignorance. > > > > > >I have a FreeBSD system (2.2.8, yes, I know it's old, it's > > getting rebuilt > > >as soon as 4.3 seems to settle down) that is dual booted > > with Windows 98 on > > >the first partition and FreeBSD 2.2.8 on the second. > > > > > >I have two seemly identical 6.4 GB drives. One is WD and the > > other is a > > >Quantum. Both show exactly the same number of cylinders, > > heads, SPT, and > > >total number of sectors. I'd like to make a complete image > > copy (roughly) of > > >the primary drive (wd0) to the second drive (wd1), which > > would include both > > >the 98 and the FreeBSD partition. > > > > > >Can I do this using DD? Assuming I could boot into an > > "emergency" shell, is > > >that a "memory" file system for root? Meaning both of the > > two file systems / > > >and /usr would be synced and closed. > > > > > >I've tried Drivecopy 4, disabling the smart sector copy so > > it should copy > > >everything, but it gets an error part of the way into the > > FreeBSD partition, > > >and I've had the system reboot when I get to a certain point > > in a tape > > >backup. Something's probably wrong either with the disk or > > the file system, > > >but I see any errors in the log (that I can recognize as errors) > > > > > >Is copying the whole disk, sector by sector doable with DD? > > What would the > > >command be? I think the 'c' partition refers to the whole > > disk so I would > > >guess something like: > > > > > >dd if=/dev/rwd0c of=/dev/rw1c bs=??? > > > > > >I'm not sure about the devices and what would be a good > > block size. Do I > > >need to use 512 bytes? The disks say: 32-bit mult-block-16 > > so that that mean > > >an "efficient" block size would be 16x512? Or would a track > > (63x512) be > > >better? > > > > > >Any clues for the clueless would be greatly appreciated. > > I'll get the hang > > >of this yet! > > > > > >Thanks, > > >Mark > > > > > > > > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > > >with "unsubscribe freebsd-questions" in the body of the message > > > > Walt > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > Walt 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?4.2.2.20010509191740.00bb5880>