*BSD News Article 70345


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!usenet.ins.cwru.edu!agate!theos.com!riscan.riscan.com!van.istar!news-w.ans.net!newsfeeds.ans.net!chi-news.cic.net!news.bright.net!usenet.eel.ufl.edu!newsfeed.internetmci.com!news.probe.net!ariel.tummy.com!jafo
From: jafo@ariel.tummy.com (Sean Reifschneider)
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: IDE to SCSI disk dup
Date: 6 Jun 96 21:55:42 GMT
Organization: tummy.com, ltd.
Lines: 36
Message-ID: <31b753de.0@sylvia.tummy.com>
References: <4p4a85$bnd@shiva.usa.net> <4p52tj$6qm@agate.nbnet.nb.ca>
NNTP-Posting-Host: sylvia.tummy.com

In article <4p52tj$6qm@agate.nbnet.nb.ca>,
Lance Cavener <cavenerl@nbnet.nb.ca> wrote:
>steve@smallweb.com (Steve Suhre) wrote:
>>I will be upgrading a server from an IDE disk to SCSI. I would like to
>>install the SCSI drive and copy directly from disk to disk, the IDE 
> 
>first of all. Then what I usually do is tar the whole drive, and just
>move the tar file to the newly formatted SCSI disk, and untar it.
>After about 15 times doing this on various setups, it seems to work

First of all, you DON'T want to DD the discs.  At the very least, it's
a bad idea (IMHO).  You DO want to mount the discs both on the same
system, and TAR or CPIO will work.  Just be careful to specify the
command so it doesn't TAR the disc you're mounting (copying the disc
to itself).  This isn't an issue if you just create a tar, but it is
if you...

You don't have to create the TAR file on the disc.  Something like
"tar cf - /mnt ; ( cd /mnt2 ; tar xf - )" will pass one TAR to the
other and read and write at the same.  Quite quick, especially if
you don't have the disc space free to create the tar file.

I prefer to use CPIO though.  If you're copying your root disc, you'll
use something like (be sure to list all mount-points that you want
saved):

find / -xdev / /usr /var <other mountpoints> -depth -print | cpio -pdma /mnt

where "/mnt" is where the new disc is mounted...

Sean
-- 
"We just wanted to give the band a little more thrust than most other bands."
        - Donald Fagen's reply to why they chose the band name 'Steely Dan'
Sean Reifschneider, Inimitably Superfluous <jafo@tummy.com>
URL: <http://www.tummy.com/xvscan>  HP-UX/Linux/FreeBSD X11 scanning software.